Did you know…
Why do supersonic planes have swept wings?
Short answer
Sweep delays and softens the drag rise around the speed of sound. Only the airflow component perpendicular to the leading edge counts for compressibility, so a swept wing sees a lower effective Mach number and its shock waves form later and weaker. At supersonic speed a leading edge kept inside the nose Mach cone also cuts wave drag.

Where the drag comes from
As an aircraft approaches the speed of sound, air over the thickest part of the wing accelerates past Mach 1 even though the aircraft itself is still subsonic. Shock waves form, the boundary layer separates behind them, and drag rises steeply: this is the transonic drag rise, and it appears from about Mach 0.75 on a straight, thick wing. Beyond Mach 1 a second penalty appears, wave drag, the energy carried away by the shock waves that the whole airframe drags along.
The sweep effect
Sweep works because only the component of the airflow perpendicular to the leading edge matters for the pressure field over the wing section. The flow parallel to the leading edge simply slides along the span and does nothing aerodynamically. A wing swept 45 degrees at Mach 0.9 therefore behaves as though the airflow were about Mach 0.64, and its critical Mach number rises accordingly. This was understood in Germany in the 1930s, from work by Adolf Busemann and Albert Betz, and the captured research shaped the F-86, the B-47 and every jet airliner since.
At supersonic speed the same idea takes a different form. The nose generates a Mach cone whose half-angle shrinks as speed increases. If the wing's leading edge lies inside that cone, the air it meets is still subsonic in the relevant direction, the leading edge can be rounded, and wave drag stays modest. This is why Concorde's ogival delta was swept so sharply near the root, and why Mach 2 fighters use deltas or sweep angles above 50 degrees. Thin sections and a smooth cross-sectional area distribution, the area rule, reduce wave drag further.
The price of sweep
A swept wing produces less lift at low speed, tends to stall at the tips first, which pitches the nose up, and is heavier and more flexible for its span. Landing speeds rise and low-speed handling worsens. Designers answer with leading-edge slats, complex flaps, or moving the sweep itself: the F-111, F-14, Tornado and B-1 pivot their wings forward for take-off and aft for high-speed flight. The trade is always the same: sweep buys speed and costs field performance.
Why not all supersonic aircraft look alike
Some supersonic types, notably the F-104 and the Bell X-1 before it, used very thin straight wings instead. A wing thin enough keeps wave drag acceptable without sweep, at the cost of poor low-speed lift and razor-like leading edges. Modern designs blend the two: moderate sweep, thin sections and careful area ruling, tuned to the speed range the aircraft will actually use.
More questions

Physics of flight
Why can't a Corsair pilot apply full power when going around after a failed carrier landing?
Because at low speed and high power the Corsair would drop its left wing suddenly and with almost no warning, due to propeller torque. If the throttle was… more…

Physics of flight
What did the phrase "banking with intent to turn" mean among F-104 pilots?
It was a joke among Canadian F-104 pilots: banking the aircraft "with intent to turn" referred to its poor low-speed turning. Its sustained turn capability… more…

Julian Herzog (Website) (CC BY), vía commons Physics of flight
What is "flight envelope protection," which the A320 pioneered?
A set of limits embedded in the flight control software: it calculates the flight envelope, adds a safety margin, and blocks pilot inputs that would take the… more…

Julian Herzog (Website) (CC BY), vía commons Physics of flight
What is the A320's SHARP package for?
SHARP (SHort AiRfield Package) improves takeoff and landing performance on short runways and is designed to increase low-speed lift. It combines aerodynamic… more…

Physics of flight
What flaw sank Vought's all-metal V-141 fighter?
It wasn't a single flaw: tests showed the V-141 still flew poorly, was prone to spinning, and also suffered tail flutter, which is why it was rejected. It… more…

Physics of flight
What wind tunnel did NACA use to study the Corsair, and how big was it?
The full-scale 30- by 60-Foot Tunnel at the Langley Research Center, in Hampton, Virginia. NACA dedicated the facility on 27 May 1931 and used it to test the… more…