Complex Exponential Representation of Oscillations
Solve enough oscillation problems with sines and cosines and you start to feel the friction: every derivative shuffles into and back, every superposition demands a sum-to-product identity you half-remember, every phase shift spawns a page of trigonometric bookkeeping. Now watch a physicist one year further along handle the same problem. She writes , differentiates by multiplying by , divides two complex numbers, and reads off the amplitude and the phase lag from a single result — no identities, no shuffling, three lines. The machine that makes this possible is Euler's formula, , which Richard Feynman called "the most remarkable formula in mathematics." The trick is not a notational fad. The exponential is an eigenfunction of the derivative operator — differentiation merely rescales it — so any linear differential equation with constant coefficients collapses into a polynomial equation the moment you feed it exponentials. Trigonometric functions are what you get when you insist on splitting that one clean object into two real shadows. Mastering this representation buys you the entire frequency-domain worldview: phasors, impedance, transfer functions, Fourier analysis, and eventually the phases of quantum mechanics all speak this language. Damped and driven oscillators — the next articles in this track — become almost embarrassingly easy once you own it. This page builds the machine, proves it is legitimate, and shows the one place it bites.
- Linear ODEs with constant coefficients are solved most cleanly by replacing real sinusoids with complex exponentials and taking the real part at the end.
- The derivative of is just : differentiation becomes multiplication, so differential equations become algebra.
- A real oscillation is encoded by a single complex number — the phasor — which bundles amplitude and phase together.
- Because the equations are linear with real coefficients, the real and imaginary parts never mix; you may carry the full complex solution and project at the end.
- Superposing sinusoids of one frequency becomes vector addition of arrows in the complex plane — the law of cosines replaces every trig identity.
- The single trap: real parts do not survive multiplication. For energies, powers, and any nonlinear quantity, project first, multiply second.
- Key idea: differentiation of is multiplication by , so solve the complexified linear ODE algebraically and take the real part — amplitude and phase emerge automatically as the modulus and argument of one complex amplitude.
Where this lives today
Open any wireless chip shipped in 2026 — the 5G modem in a phone, a Wi-Fi 7 radio, a Bluetooth earbud — and the heart of it is a pair of signal paths labeled I and Q: in-phase and quadrature, the real and imaginary parts of a complex baseband signal. Every symbol the radio transmits is a phasor , a point in the complex plane chosen from a constellation diagram; every received symbol is demodulated by multiplying against and low-pass filtering — a hardware implementation of "factor out the rotation and freeze the phasor." Equation (3) is executed billions of times per second in your pocket. The same complex arithmetic runs the electric grid, where power engineers dispatch gigawatts by managing phasor angles between cities (with , following Steinmetz, since was taken by current), and monitor grid stability through GPS-synchronized phasor measurement units streaming thirty times a second. The deepest tenants, though, are quantum. The wavefunction of a stationary state evolves as — not as a bookkeeping convenience but as physical law; interference of those complex phases is quantum mechanics. Lock-in amplifiers pull femtovolt signals out of noise a million times larger by multiplying against a reference and time-averaging — equation (10)'s constant term, weaponized. When a gravitational-wave observatory reports a chirp, the strain data was heterodyned, filtered, and matched — every step phasor arithmetic. Euler's spinning arrow turned out to be one of the load-bearing structures of the technological world.
The physical picture
Picture a clock hand of length spinning counterclockwise in a plane, sweeping out angle at a steady radians per second. Shine a light from above and watch its shadow on the horizontal axis: the shadow oscillates back and forth, compressing near the ends, sweeping fastest through the middle — exactly simple harmonic motion. That plane is the complex plane, the spinning hand is , and the shadow is . Every sinusoid you will ever meet is the shadow of uniform circular motion — which is why simple harmonic motion and circular motion share one , and why the geometry of circles keeps solving the algebra of oscillations.
Freeze the arrow at and you hold a single complex number : its length is the amplitude, its angle is the starting phase. This frozen snapshot is called a phasor, and it is the profound bookkeeping upgrade of this whole subject — the two real numbers you used to carry separately ( and , or equivalently the coefficients of and ) fuse into one algebraic object. Multiplying by sets it spinning; multiplying by any other complex number stretches it and turns it. All the algebra of oscillations becomes the geometry of rotating arrows. Why is this so much easier than trigonometry? Because and are two functions that the derivative shuffles into each other, while is a single function that the derivative merely rescales. In the language of linear algebra: the exponential is an eigenfunction of with eigenvalue . Working in the eigenbasis of the operator that runs the whole problem diagonalizes everything — the same reason you diagonalize matrices, choose normal modes, or Fourier-transform a signal. And phase, that perennial source of sign errors, becomes something you can see: the angle of an arrow. When a driven oscillator's response lags its drive, the response phasor literally hangs at an angle behind the drive phasor, and sweeping the drive frequency rotates it smoothly from through at resonance to — a rotation that is invisible in real-trig algebra and obvious in the complex plane.
Euler's formula and the eigenfunction property
Everything rests on one identity. It deserves a slow look before we put it to work, because it is the bridge between the exponential function — the natural language of growth and decay — and the circular functions — the natural language of oscillation. The claim is that a purely imaginary exponent converts growth into rotation:
where: — the imaginary unit, ; — a real angle in radians. Read it geometrically: is the point on the unit circle at angle , with the cosine as its horizontal coordinate and the sine as its vertical coordinate. Setting gives the famous special case : half a turn lands you at minus one.
We are deriving Euler's formula (1), the identity on which the entire complex-exponential method stands. The strategy is the cleanest one available: expand in its Maclaurin series — which converges for every complex argument, so no analytic caution is needed — and watch the powers of sort the series into two real sub-series. The thing to track is the four-step cycle of the powers of : it is precisely this period-4 rhythm that carves the exponential into the period-4 derivatives of cosine and sine. No differential equations, no integrals — just term-by-term bookkeeping.
Step 1. Expand the exponential in its Maclaurin series, valid for all complex arguments:
Why this is safe: the exponential series has infinite radius of convergence, so it defines for any complex — this series is the definition being used.
Step 2. Evaluate the powers of and sort by parity. Even powers give , odd powers give :
Why the split is legal: absolutely convergent series may be rearranged freely, so grouping even and odd terms changes nothing.
Step 3. Recognize the two real series: the first is exactly the Maclaurin series of , the second of . Therefore . Verified: at both sides give 1; at the right side gives , reproducing ; differentiating both sides with respect to and multiplying by returns the original identity, confirming self-consistency.
With Euler's formula in hand, the property that powers the whole method is one differentiation away. Ask what the derivative operator does to a complex exponential of time — the answer is the reason this page exists:
where: — angular frequency (rad/s); — time. The function comes back unchanged in shape, merely multiplied by : it is an eigenfunction of . Iterating, , so an -th order linear ODE acting on becomes a degree- polynomial in — calculus has been demoted to algebra. Note the geometric meaning of the eigenvalue: multiplying by rotates a complex number by , so the velocity phasor leads the position phasor by a quarter turn and is times longer, exactly the familiar SHM relation with its quarter-period lead. The dictionary between the complex bookkeeping and the physical motion is the projection. A real oscillation is the real part of a spinning phasor:
where: — the real amplitude; — the phase offset; — the complex amplitude, or phasor. One complex number now stores what used to take two reals. In particular the initial conditions live entirely in : the real part of is , and its imaginary part is . There is a second, more symmetric way to write the projection, and it repays attention because it is the seed of Fourier analysis. Using for any complex number,
where: — the complex conjugate of . A real oscillation is the sum of two counter-rotating phasors: one spinning at , its conjugate twin at . The "negative frequency" that puzzles every student meeting a two-sided Fourier spectrum is nothing exotic — it is the clockwise-spinning half that any purely real signal must carry so that the imaginary parts cancel at every instant.
Solving equations by algebra
Now put the machine to work on the equation that owns the rest of this track. A mass on a spring of stiffness with a drag force proportional to velocity () obeys . Rather than guessing combinations of sines, cosines, and decaying envelopes, feed it the one function that differentiation cannot deform — a trial exponential with complex and unknown:
where: — the two roots of the characteristic equation ; — complex constants fixed by the initial position and velocity. Substituting turns each time-derivative into a factor of , leaving ; since an exponential never vanishes, the polynomial must. The quadratic formula then delivers the entire physics of damping in one line: . When the roots are complex, with and — a spiral in the complex plane: rotation (oscillation) at the reduced frequency, times shrinkage (decay) at rate . When both roots are real and negative — pure decay, no rotation, no oscillation. The full story of damping regimes is the story of where these two roots sit.
The same trial-exponential move solves the driven problem, and this is where the method pays its full fare. The physical equation has a cosine on the right-hand side; we complexify it, solve by division, and project back.
Go deeper · Derivation B · 2 minThe driven damped oscillator solved by complexification
The goal is the steady-state response of — the workhorse equation of resonance physics — and we want it with its amplitude and phase lag in closed form. The strategy: replace the cosine drive by the complex drive whose real part it is, solve the complexified equation with a one-term ansatz, and take the real part at the end; linearity with real coefficients guarantees the projection is legitimate. What used to be a two-page exercise in matching coefficients of and becomes a single complex division. The step to watch is the last one: the phase lag must be extracted from the argument of a complex number, and its quadrant matters — the lag runs from to , not to .
Step 1. Complexify the equation. Introduce obeying
Why this is allowed: , and the differential operator has real coefficients, so taking the real part of this entire equation reproduces the physical one — meaning solves the original problem. The imaginary part quietly solves the sine-driven twin and never contaminates our answer.
Step 2. Insert the steady-state ansatz . Why one term suffices: after transients die (they decay as , the homogeneous solutions of (5)), a linear system driven at frequency can only respond at frequency — all that is left to determine is one complex constant .
Step 3. Differentiate by multiplication. Each dot becomes a factor :
Why the exponential cancels: it is common to every term and never zero — this cancellation is the moment the differential equation officially becomes algebra.
Step 4. Solve for the phasor by one complex division:
Why this object is called a transfer function: it is the ratio of response to drive, and it depends only on the system () and the probing frequency — the entire input-output behavior of the oscillator in one complex-valued function of frequency.
Step 5. Extract modulus and argument. Multiplying numerator and denominator by the conjugate of the denominator,
Why the quadrant convention: is defined as the lag of the response behind the drive, . Below resonance the denominator's real part is positive and sits in the first quadrant; above resonance the real part flips sign and climbs into the second quadrant, approaching — take the arctangent in the correct quadrant or the high-frequency physics comes out wrong.
Step 6. Project back to the physical motion:
Why the lag is physical: the oscillator needs time to respond to the push; at resonance () the denominator is purely imaginary, exactly, and the drive force is aligned with the velocity — optimal power delivery, the fingerprint of resonance. *Verified: matches Taylor ch. 5 and Goldstein ch. 6; as with the amplitude diverges, recovering the undamped resonance catastrophe; at it reduces to the static stretch .*
For steady-state work the two payoff formulas deserve their own display. The response phasor of the driven oscillator, and its polar decomposition, are
where: — drive amplitude; — natural frequency; — damping rate; — drive frequency. One complex ratio holds the complete steady-state response at every drive frequency, and
where: — the phase lag of response behind drive. Amplitude is a modulus, phase is an argument: the resonance curve and the phase curve that fill the next articles of this track are just and read off equation (6).
Which equation answers which question
| you want | use | notes |
|---|---|---|
| turn trig into algebra | , eq. (1) | the master identity |
| differentiate a sinusoid | , eq. (2) | eigenfunction property |
| encode amplitude and phase | , eq. (3) | one phasor = two reals |
| explain negative frequency | conjugate pair, eq. (4) | real signal = two counter-rotating phasors |
| free damped motion | characteristic roots, eq. (5) | root location = damping regime |
| driven steady state | transfer function, eqs. (6)-(7) | modulus = amplitude, argument = phase lag |
| add same-frequency sinusoids | phasor sum, eq. (8) | law of cosines, no identities |
| energies and powers | product rule, eq. (9) | project FIRST, then multiply |
Adding oscillations: phasor arithmetic
Superposition is where the representation stops being a convenience and becomes a superpower. Add two oscillations of the same frequency with different amplitudes and phases — the kind of sum that appears in interference, in coupled oscillators, in AC circuit nodes — and trigonometry demands the sum-to-product identities. Phasors demand only that you add two arrows:
where: — the resultant phasor, obtained by ordinary vector addition in the complex plane. The resultant amplitude follows from the law of cosines, : constructive when the arrows align, destructive when they oppose, Pythagoras when they are perpendicular.
Go deeper · Derivation C · 1 minTwo cosines into one by adding phasors
We are deriving the superposition rule (8): two sinusoids of the same frequency combine into a single sinusoid, with the resultant amplitude and phase given by vector addition of phasors. The traditional route expands both cosines, collects the coefficients of and , and re-assembles them with a half-page of identities; the phasor route is four lines, and — more valuably — it explains why the answer is the law of cosines: because we literally are adding two arrows. Watch how the shared factor carries all the time dependence, leaving the geometry frozen at .
Step 1. Write each oscillation as the real part of a spinning phasor sharing the same :
Why the same frequency matters: only then can the two terms share one exponential factor — phasor addition is a same-frequency privilege.
Step 2. Use linearity of the real part to combine under one , and factor out the common rotation:
Why this is the whole trick: the bracket is a single complex constant — the time dependence never touched the addition.
Step 3. Compute the resultant's magnitude from :
Why the law of cosines appears: the cross terms — the phasor diagram is a triangle, and this is its third side.
Step 4. Compute the resultant's phase from the real and imaginary parts of :
Verified: setting gives (constructive); gives (destructive); the general case reproduces the classical sum-to-product result, cross-checked in Morin ch. 4.
What if the two frequencies are close but not equal? Then the two phasors rotate at slightly different rates, and their relative angle drifts slowly: the arrows alternately align and oppose, so the resultant amplitude swells and shrinks. Factoring the sum of two equal-amplitude cosines makes this audible:
where: the second factor oscillates at the average frequency, while the first is a slow envelope at half the difference frequency. Your ear hears one loudness maximum per envelope half-cycle, so the perceived beat frequency is the full difference — two guitar strings at and throb twice per second, and a tuner's job is to slow that throb to zero. One last identity carries the method's only serious danger, and it earns its own display precisely because everything up to here has encouraged you to forget the projection and compute with directly. That habit is safe for anything linear — and fatal for anything quadratic:
where: — any two complex signals. The product of real parts is not the real part of the product: writing each real part as a conjugate average and multiplying out produces cross terms that alone misses. For two phasors at the same frequency, spins at and time-averages to zero, while is constant — which yields the single most used corollary in physics: the time-averaged product of two same-frequency oscillations is , and in particular .
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| undamped free oscillation | , | roots on the imaginary axis: the phasor spins on a circle of fixed radius, forever |
| underdamped | complex roots: rotation plus shrinkage — a spiral; modulus decays as | |
| overdamped | , both real | no imaginary part, no rotation: oscillation degenerates into two pure decays |
| driven, | , | quasi-static limit: the mass tracks the force in phase, stretched by the spring law |
| driven, | , | purely imaginary denominator: response lags by a quarter period, drive feeds velocity |
| driven, | , | mass can't keep up: response opposite the drive, amplitude dying as |
| equal amplitudes, nearby frequencies | eq. (9) | beats: envelope at , heard as throbs per second |
Worked examples
1 · Two speakers, one microphone (confidence builder)
Two signals of the same frequency arrive at a microphone: one with amplitude (in suitable units) and phase , the other with and phase . Find the amplitude and phase of the combined oscillation.
Step 1. Encode each signal as a phasor: , and — one arrow along the real axis, one along the imaginary axis.
Step 2. Add the arrows: . No identities, no angle-chasing — complex addition is the entire calculation.
Step 3. Read off the amplitude as the modulus: . The law-of-cosines cross term vanished because the arrows are perpendicular — this is Pythagoras in phasor clothing, the 3-4-5 triangle of the figure above.
Step 4. Read off the phase as the argument: (first quadrant, since both components are positive). The combined signal is .
2 · A driven cart, three lines instead of two pages (exam level)
A cart of mass on a spring moves through oil giving a drag coefficient . It is driven by (SI units). Find the steady-state amplitude and phase lag, and compare the amplitude with the static stretch produced by a constant 10 N force.
Step 1. Assemble the system constants: ; ; drive , just below resonance; .
Step 2. Build the complex denominator of equation (6): real part ; imaginary part . Note the imaginary part dominates — we are deep in the resonance region.
Step 3. Amplitude = modulus: .
Step 4. Phase lag = argument: — the response trails the drive by just over a fifth of a cycle, on its way to the lag it would show exactly at .
Step 5. Compare with statics: a constant 10 N force stretches the spring by . Driving near resonance amplifies this to — a factor of , which is no accident: the quality factor of this oscillator is , and is precisely the resonant amplification of the static response. The complex division knew all of resonance physics before we asked.
Origins · 1 minLeonhard Euler and how this was discovered
Euler is the most prolific mathematician who ever lived — his collected works run past seventy volumes — and an astonishing share of the symbols on this page are his: , , , in its modern role, even and treated as functions rather than chord lengths. The identity appears in his 1748 masterpiece Introductio in analysin infinitorum, derived exactly as in this article, from the series. Euler computed on regardless of circumstance: he lost sight in one eye in his thirties and in both by 1771, then increased his output, dictating calculations — including a complete lunar theory — to assistants from memory. He worked at the St. Petersburg and Berlin academies, returned to Russia in 1766, and was calculating the orbit of the newly discovered Uranus on the afternoon he died. The formula joining growth, rotation, and oscillation into one exponential is his monument; physics has been cashing it ever since.
Going further
References. Morin, Introduction to Classical Mechanics, ch. 4 (Oscillations) · Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., ch. 6 · Landau & Lifshitz, Mechanics, 3rd ed., §21–§26 · Taylor, Classical Mechanics, ch. 5 · Feynman, Lectures on Physics, vol. I, chs. 22–24 (algebra, resonance, transients).
Provenance. Euler's formula and series expansion verifiable from any analysis text. Driven steady-state amplitude/phase match Taylor Classical Mechanics ch. 5 and Goldstein ch. 6; damped characteristic roots standard. Phasor superposition reduces to the law of cosines. A verifier should recompute the complex division for , confirm , and check the phase limits . Worked-example numbers on this page ( for the phasor sum; for the driven cart) are illustrative arithmetic recomputed from the boxed formulas.
Builds on: Simple Harmonic Motion · Amplitude, Phase, and Angular Frequency · Small Oscillations About Equilibrium. Leads to: Damped Harmonic Oscillator · Driven Oscillations · Resonance · Transient and Steady-State Response.
Is the imaginary part of the solution physically real? What is it doing there?
It is a perfectly real second solution, riding along unused. If solves the complexified equation with drive , then solves the cosine-driven problem and solves the sine-driven one — two independent physical problems processed in one calculation. Nothing about contaminates , because the equation is linear with real coefficients. Geometrically, the imaginary part is the quarter-period-shifted twin of your oscillation: the shadow of the same spinning arrow on the vertical axis instead of the horizontal one. You solve two problems and keep the one you asked for.
Why the exponential function specifically? What makes it so special for differential equations?
It is the eigenfunction of the derivative: is the only function whose derivative is a fixed multiple of itself for all time. Constant-coefficient linear ODEs are built entirely from derivatives, so exponentials pass through them intact, picking up only polynomial factors in — the differential equation becomes the characteristic polynomial. Sines and cosines fail this test individually (each differentiates into the other), but the combination passes it — and Euler's formula says that combination is an exponential. In linear-algebra language: you are diagonalizing , exactly as you would diagonalize a matrix to decouple a system.
Can I use the complex trick on a pendulum at large angles?
No — and the reason is the licensing clause. The method requires linearity: commutes with derivatives and sums, but not with nonlinear operations, so a term like in destroys the guarantee that the real part of the complex solution solves the real equation (). At small angles you linearize and the machine applies; beyond that you need the genuinely nonlinear toolkit — elliptic integrals, perturbation series — of the anharmonic pendulum article. The complex exponential is the reward for linearity, not a universal solvent.
Why do electrical engineers write j instead of i, and is their method different?
Identical method, colliding notation: was already the standard symbol for electric current, so Steinmetz's community adopted for the imaginary unit. An engineer's impedance calculation — resistor , inductor , capacitor , combined by series-parallel algebra — is precisely this article's transfer-function move: each impedance is the phasor ratio of voltage to current, i.e. the factor a component applies to . Ohm's law with complex numbers is equation (6) wearing a hard hat. When your circuits course and your mechanics course feel eerily parallel, that is because they are the same linear mathematics.
What does a negative frequency even mean in equation 4?
A direction of spin, nothing more mysterious. The phasor rotates counterclockwise; its conjugate rotates clockwise — "negative frequency" labels the second sense of rotation. A purely real signal must contain both in conjugate-balanced amounts so their imaginary parts cancel at every instant; that is exactly the content of . When you later meet a two-sided Fourier spectrum with peaks at , you are seeing the two counter-rotating halves of each real sinusoid displayed separately. Only complex-valued signals (like the I/Q stream inside a radio) can carry an unbalanced, genuinely one-sided spectrum.
My textbook writes x equals A e to the iωt and never takes a real part. Is that sloppy?
It is a convention, stated once and then suppressed: "the physical quantity is the real part of everything that follows." For any linear manipulation — solving, adding, differentiating — carrying the complex object and projecting at the very end gives identical results, so authors stop writing to reduce clutter. The convention is safe until the moment you form a product: energy, power, intensity, anything quadratic must go through the real signal or the average rule of equation (10). Good texts flag exactly that exception; good students remember it on the exam. When in doubt, write the back in and check what commutes.
Is a phasor just a vector? Why use complex numbers instead of 2D vectors?
For addition, yes — phasors add tip-to-tail exactly like plane vectors, which is why superposition becomes geometry. The upgrade is multiplication: complex numbers multiply by multiplying lengths and adding angles, an operation plane vectors simply do not have. That one extra structure is what lets a single division solve the driven oscillator — the transfer function multiplies the drive phasor to produce the response phasor, rotating it by the phase lag and rescaling it by the amplification, in one stroke. A 2D-vector formalism would need a separate rotation matrix bolted on; the complex plane has rotation built into its arithmetic. That is the entire engineering case for .
How do I get real initial conditions into the complex solution?
Through the complex constants, which hold exactly two real numbers each — that is why they are complex. For the free oscillator : expand to get and , so . Modulus and argument of that one number then hand you the amplitude and phase in a single step — the same formulas you would grind out by matching and coefficients, delivered automatically. For the damped case the same matching fixes in equation (5).