Complex Numbers for Physics

Complex numbers, Euler's formula, modulus, and phase applied to wave physics and harmonic analysis.

What it is

A complex number is a mathematical entity of the form z=x+iyz = x + i y, where x=Re(z)x = \text{Re}(z) and y=Im(z)y = \text{Im}(z) are real numbers and ii is the imaginary unit defined by the fundamental property i2=−1i^2 = -1. Geometrically, complex numbers extend the one-dimensional real line into the two-dimensional complex plane (Argand plane), providing points (x,y)(x,y) with an algebraic structure where addition, subtraction, multiplication, and division are universally defined without algebraic limitations.

By Euler's formula, eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta, any non-zero complex number can be expressed in polar or exponential form: z=reiθz = r e^{i\theta}, where r=∣z∣=x2+y2r = |z| = \sqrt{x^2 + y^2} is the modulus (amplitude) and θ=arg⁡(z)=arctan⁡(y/x)\theta = \arg(z) = \arctan(y/x) is the argument (phase angle). This exponential representation transforms multiplications and divisions into simple angle additions and modulus scalings, providing an indispensable analytical framework for oscillatory and wave physics.

Why it appears in physics

Complex numbers appear in physics not as artificial contrivances, but as the most concise and powerful tool to package two physically coupled degrees of freedom: amplitude and phase. Instead of manipulating cumbersome trigonometric identities when solving linear differential equations, complex variables linearize the time derivative operator: each temporal derivative of a harmonic state eiωte^{i\omega t} reduces to an algebraic multiplication by iωi\omega.

They emerge ubiquitously in simple and damped harmonic oscillators, electromagnetic theory and wave optics (complex refractive index for absorbing media, wave polarization), alternating current circuits (complex impedance), acoustics, and fundamentally in quantum mechanics, where the wave function ψ(x,t)\psi(x,t) inherently populates a complex Hilbert space.

Visual or geometric idea

Visualize the Cartesian plane where the horizontal axis represents the real part and the vertical axis the imaginary part. A complex number zz is a position vector directed from (0,0)(0,0) to (x,y)(x,y). The addition of two complex numbers follows the exact parallelogram law of vector addition.

However, unlike ordinary two-dimensional vectors, complex numbers possess an intrinsic multiplication rule governed by rotation and scaling: multiplying any complex quantity by i=eiπ/2i = e^{i\pi/2} corresponds to rotating the vector counterclockwise by 90 degrees without altering its magnitude. Multiplying by reiθr e^{i\theta} scales the length by rr and rotates it by θ\theta. Consequently, a harmonic oscillation is envisioned as a constant-magnitude vector rotating with angular frequency ω\omega; the physically observed measurable variable is merely the projection of this vector onto the horizontal real axis.

Minimal symbolic language

  • Cartesian (algebraic) form: z=x+iyz = x + i y, with x=Re(z)∈Rx = \text{Re}(z) \in \mathbb{R} and y=Im(z)∈Ry = \text{Im}(z) \in \mathbb{R}.
  • Imaginary unit: i=−1i = \sqrt{-1}, satisfying i2=−1i^2 = -1, i3=−ii^3 = -i, i4=1i^4 = 1.
  • Modulus (magnitude): ∣z∣=r=x2+y2=zz∗|z| = r = \sqrt{x^2 + y^2} = \sqrt{z z^*}.
  • Argument (phase): θ=arg⁡(z)=atan2(y,x)\theta = \arg(z) = \text{atan2}(y, x).
  • Complex conjugate: z∗=x−iy=re−iθz^* = x - i y = r e^{-i\theta}; reflection across the real axis.
  • Euler's formula: eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta, featuring the famous identity eiπ+1=0e^{i\pi} + 1 = 0.
  • Multiplicative inverse: 1z=z∗∣z∣2=x−iyx2+y2\frac{1}{z} = \frac{z^*}{|z|^2} = \frac{x - i y}{x^2 + y^2}.

What the result means

When analyzing a physical problem with complex variables, the derived solution is typically expressed as Z(t)=Aei(ωt+ϕ)Z(t) = A e^{i(\omega t + \phi)}. The physical interpretation is retrieved by taking the real part: Re[Z(t)]=Acos⁡(ωt+ϕ)\text{Re}[Z(t)] = A \cos(\omega t + \phi), which represents the measurable displacement, electric field, current, or voltage in an experimental setup.

The modulus AA determines the maximum amplitude reached by the system, while the argument ϕ\phi quantifies the temporal lead or lag relative to a reference signal. If the frequency acquires an imaginary component ω=ω0+iγ\omega = \omega_0 + i\gamma, the term becomes e−γteiω0te^{-\gamma t} e^{i\omega_0 t}, indicating that the oscillation frequency is ω0\omega_0 while its amplitude undergoes exponential damping with decay rate γ\gamma.

When not to use it

Do not use complex superposition linear techniques in systems governed by nonlinear equations (such as anharmonic oscillators or nonlinear optics with higher-order susceptibility), because the real part of a product does not equal the product of the real parts: Re(z1z2)≠Re(z1)Re(z2)\text{Re}(z_1 z_2) \neq \text{Re}(z_1) \text{Re}(z_2).

Furthermore, take care when computing quadratic energetic observables: instantaneous electric power cannot be calculated by simply multiplying complex voltage and current signals. Instead, use the time-averaged formula Pavg=12Re[VI∗]P_{\text{avg}} = \frac{1}{2} \text{Re}[V I^*] or compute products strictly after extracting real parts.

Operational summary

Transform real harmonic observables Acos⁡(ωt+ϕ)A \cos(\omega t + \phi) into their complex representation AeiϕeiωtA e^{i\phi} e^{i\omega t}. Carry out all linear differential or algebraic steps in the complex domain by replacing ddt→iω\frac{d}{dt} \to i\omega and ∫dt→1iω\int dt \to \frac{1}{i\omega}. Once the general solution is obtained, take the real part to recover physical trajectories or evaluate ∣z∣2|z|^2 for probability densities and energy fluxes.

Procedure

Before calculating

Verify that the system is described by linear differential equations or harmonic signals where complex algebraic representation is valid.

Determine whether the given values are in Cartesian (x+iyx + iy) or polar (reiθr e^{i\theta}) form, and establish a uniform time sign convention (typically eiωte^{i\omega t} in classical physics and electrical engineering).

Step 1: identify the mathematical object

Classify all quantities: distinguish between real amplitudes, complex impedances, wave functions, and phasors.

Identify the angular frequency ω\omega, the peak amplitude AA, and the initial phase shift ϕ\phi.

Step 2: choose the operation

For addition or subtraction of signals at the same frequency, use Cartesian components: add real parts together and imaginary parts together: (x1+x2)+i(y1+y2)(x_1 + x_2) + i(y_1 + y_2).

For multiplication, division, or powers (such as applying generalized Ohm's law V~=Z~I~\tilde{V} = \tilde{Z}\tilde{I} or De Moivre's formula), convert terms to polar form: z1z2=r1r2ei(θ1+θ2)z_1 z_2 = r_1 r_2 e^{i(\theta_1 + \theta_2)}.

Step 3: preserve units and signs

Ensure that phase angles θ\theta are evaluated in radians when substituting into exponential or trigonometric expressions.

Remember that taking the complex conjugate strictly reverses the sign of the imaginary component (i→−ii \to -i), which inverts the relative phase orientation.

Step 4: calculate

Perform complex operations, eliminating imaginary units from denominators by multiplying numerator and denominator by the complex conjugate: wz=wz∗∣z∣2\frac{w}{z} = \frac{w z^*}{|z|^2}.

When solving linear differential equations with constant coefficients, replace time derivatives ddt\frac{d}{dt} with iωi\omega and algebraically isolate the unknown complex amplitude.

Step 5: interpret the result

Extract the modulus ∣z∣=x2+y2|z| = \sqrt{x^2 + y^2} to determine the observable physical amplitude.

Compute the net phase ϕ=atan2(y,x)\phi = \text{atan2}(y, x) and reconstruct the physical time-domain signal as s(t)=∣z∣cos⁡(ωt+ϕ)s(t) = |z| \cos(\omega t + \phi).

Self-check checklist

  • Did you correctly account for the Cartesian quadrant when computing θ=atan2(y,x)\theta = \text{atan2}(y, x)?
  • Did you multiply numerator and denominator by the conjugate of the denominator when dividing?
  • Did you extract the real part at the end to state the physically observable quantity?
  • Do the physical dimensions of the modulus match the expected units of the problem?

Guided example

Physical situation

A series RLC circuit driven by an AC voltage V(t)=V0cos⁡(ωt)V(t) = V_0 \cos(\omega t) with V0=100 VV_0 = 100\text{ V} and angular frequency ω=1000 rad/s\omega = 1000\text{ rad/s} consists of a resistor R=40  ΩR = 40\;\Omega, an inductor L=0.05 HL = 0.05\text{ H}, and a capacitor C=25  μFC = 25\;\mu\text{F}. We wish to find the steady-state current I(t)I(t).

Mathematical translation

Represent the input voltage by the complex phasor V~=V0ei0=100 V\tilde{V} = V_0 e^{i 0} = 100\text{ V}. The total complex impedance of the series circuit is Z~=R+i(ωL−1ωC)\tilde{Z} = R + i\left(\omega L - \frac{1}{\omega C}\right). The complex current phasor satisfies generalized Ohm's law: I~=V~Z~\tilde{I} = \frac{\tilde{V}}{\tilde{Z}}.

Step-by-step calculation

  1. Compute the inductive reactance: XL=ωL=1000⋅0.05=50  ΩX_L = \omega L = 1000 \cdot 0.05 = 50\;\Omega.
  2. Compute the capacitive reactance: XC=1ωC=11000⋅25×10−6=40  ΩX_C = \frac{1}{\omega C} = \frac{1}{1000 \cdot 25 \times 10^{-6}} = 40\;\Omega.
  3. Net reactance: X=XL−XC=50−40=10  ΩX = X_L - X_C = 50 - 40 = 10\;\Omega.
  4. Total complex impedance: Z~=40+10i  Ω\tilde{Z} = 40 + 10 i\;\Omega.
  5. Impedance magnitude: ∣Z~∣=402+102=1700≈41.23  Ω|\tilde{Z}| = \sqrt{40^2 + 10^2} = \sqrt{1700} \approx 41.23\;\Omega.
  6. Impedance phase angle: θZ=arctan⁡(10/40)=arctan⁡(0.25)≈0.245 rad≈14.04∘\theta_Z = \arctan(10/40) = \arctan(0.25) \approx 0.245\text{ rad} \approx 14.04^\circ.
  7. Current amplitude: I0=V0∣Z~∣=10041.23≈2.425 AI_0 = \frac{V_0}{|\tilde{Z}|} = \frac{100}{41.23} \approx 2.425\text{ A}.
  8. Current phase: ϕI=0−θZ=−0.245 rad\phi_I = 0 - \theta_Z = -0.245\text{ rad}.

Reading the result

The physical real current is I(t)=2.425cos⁡(1000t−0.245) AI(t) = 2.425 \cos(1000 t - 0.245)\text{ A}. The negative phase confirms that the current lags the voltage by 14.04∘14.04^\circ, characteristic of an inductive circuit where XL>XCX_L > X_C.

Common error avoided

We avoided summing impedances as simple scalar values (40+50+40=130  Ω40 + 50 + 40 = 130\;\Omega), which would fail to account for the ±90∘\pm 90^\circ relative phase shifts introduced by reactive components.

Inverse example

Given result

In a driven mechanical oscillator at steady state, the measured complex displacement is x~=−iF0mγω0\tilde{x} = -i \frac{F_0}{m \gamma \omega_0}.

What physical question it can answer

This expression reveals whether the driving frequency matches the resonance condition: because −i=e−iπ/2-i = e^{-i\pi/2} introduces a phase lag of exactly 90∘90^\circ relative to the driving force, the system is in exact velocity resonance, allowing one to deduce the damping factor directly from the measured response amplitude: γ=F0mω0∣x~∣\gamma = \frac{F_0}{m \omega_0 |\tilde{x}|}.

Common errors

Error 1: ignoring the quadrant when evaluating argument via arctan

It seems reasonable to compute θ=arctan⁡(y/x)\theta = \arctan(y/x) directly using a calculator function for any complex value. It fails because standard arctangent functions restrict outputs to the interval (−π/2,π/2)(-\pi/2, \pi/2), ignoring negative real parts and erroneously placing second- and third-quadrant numbers into the fourth or first quadrants. It is detected by plotting (x,y)(x,y) on the Argand plane and checking the sign of xx. It is corrected by using atan2(y,x)\text{atan2}(y, x) or adding π\pi radians whenever x<0x < 0. Mini-example: for z=−1+iz = -1 + i, arctan⁡(1/(−1))=−45∘\arctan(1/(-1)) = -45^\circ, whereas the actual physical argument is −45∘+180∘=135∘-45^\circ + 180^\circ = 135^\circ.

Error 2: distributing complex conjugation incorrectly across products and quotients

It seems reasonable to assume conjugation only affects isolated terms with explicit ii, forgetting to conjugate variables within compound fractions or products. It fails because (z1z2)∗=z1∗z2∗(z_1 z_2)^* = z_1^* z_2^* and (z1/z2)∗=z1∗/z2∗(z_1/z_2)^* = z_1^*/z_2^*; failing to conjugate either component severely corrupts the resulting phase angle. It is detected by ensuring every complex variable in the algebraic expression was systematically replaced by its conjugate. It is corrected by applying (AB)∗=A∗B∗(A B)^* = A^* B^* consistently. Mini-example: if z=11+iωz = \frac{1}{1 + i\omega}, its conjugate is z∗=11−iωz^* = \frac{1}{1 - i\omega}, not 11+iω\frac{1}{1 + i\omega}.

Error 3: evaluating nonlinear physical quantities directly with complex phasors

It seems reasonable to multiply complex phasors A~eiωt\tilde{A} e^{i\omega t} and B~eiωt\tilde{B} e^{i\omega t} to obtain instantaneous physical products such as power p(t)=v(t)i(t)p(t) = v(t) i(t). It fails because Re(A~)⋅Re(B~)≠Re(A~B~)\text{Re}(\tilde{A}) \cdot \text{Re}(\tilde{B}) \neq \text{Re}(\tilde{A} \tilde{B}); the product of raw phasors yields double-frequency complex terms that do not reflect the physical real product. It is detected when calculated energy or power expressions retain an imaginary component. It is corrected by taking real parts before multiplying or using the time-averaged phasor relation 12Re(A~B~∗)\frac{1}{2} \text{Re}(\tilde{A} \tilde{B}^*). Mini-example: for v(t)=cos⁡(ωt)v(t) = \cos(\omega t) and i(t)=cos⁡(ωt)i(t) = \cos(\omega t), the true product is cos⁡2(ωt)=12(1+cos⁡(2ωt))\cos^2(\omega t) = \frac{1}{2}(1 + \cos(2\omega t)), whereas Re(eiωteiωt)=cos⁡(2ωt)\text{Re}(e^{i\omega t} e^{i\omega t}) = \cos(2\omega t), omitting the essential constant 1/21/2 dissipation term.

Error 4: confusing temporal sign conventions across disciplines

It seems reasonable to interchange eiωte^{i\omega t} and e−iωte^{-i\omega t} arbitrarily, assuming signs are trivial aesthetic choices. It fails because altering the temporal exponential sign reverses the physical meaning of phase lead vs. lag, and turns a rightward traveling wave (ei(kx−ωt)e^{i(kx - \omega t)}) into a leftward wave unless the spatial wavevector is concurrently inverted. It is detected by verifying whether a delayed signal t−t0t - t_0 produces the expected negative phase shift. It is corrected by stating the chosen convention at the outset and strictly preserving it throughout. Mini-example: under eiωte^{i\omega t}, an inductive reactance is +iωL+i\omega L; under e−iωte^{-i\omega t}, the identical physical inductor requires −iωL-i\omega L.

Error 5: dividing complex numbers without rationalizing via the conjugate

It seems reasonable to attempt dividing x1+iy1x2+iy2\frac{x_1 + i y_1}{x_2 + i y_2} by dividing components term by term: x1x2+iy1y2\frac{x_1}{x_2} + i \frac{y_1}{y_2}. It fails because division over the field of complex numbers requires converting the denominator to a purely real scalar, which mixes Cartesian parts in cross products. It is detected whenever an imaginary unit lingers in the denominator of a final result. It is corrected by multiplying numerator and denominator by the conjugate x2−iy2x_2 - i y_2, producing the real denominator x22+y22x_2^2 + y_2^2. Mini-example: 11+i=1−i(1+i)(1−i)=1−i2=0.5−0.5i\frac{1}{1+i} = \frac{1-i}{(1+i)(1-i)} = \frac{1-i}{2} = 0.5 - 0.5i, which is completely different from 1/1+i/1=1+i1/1 + i/1 = 1 + i.

Quick detection rule

If a denominator retains an imaginary unit ii, if an energy or power dissipation calculation yields an imaginary component, or if a polar angle does not match the Cartesian quadrant of the Argand plane, there is an algebraic error in the complex formulation.

Physical applications

1. Alternating current circuits and complex impedance

It appears when analyzing electrical networks driven by sinusoidal power sources containing resistors, inductors, and capacitors. It is calculated by assigning each element its complex impedance: ZR=RZ_R = R, ZL=iωLZ_L = i\omega L, and ZC=1iωCZ_C = \frac{1}{i\omega C}, converting integro-differential loop equations into linear algebraic Ohm and Kirchhoff laws. The result provides the amplitude ratio and phase difference between driving voltage and resulting current. The dangerous error is adding reactive terms algebraically as real scalars rather than maintaining orthogonal phase quadrature. As a final check, the student must explain why an ideal inductor advances voltage by 90∘90^\circ while a capacitor delays it.

2. Damped and driven harmonic mechanical oscillators

It appears when modeling mechanical vibrations subjected to viscous friction and external periodic driving forces F(t)=F0eiωtF(t) = F_0 e^{i\omega t}. It is calculated by postulating a steady-state trial solution x(t)=x~0eiωtx(t) = \tilde{x}_0 e^{i\omega t}, transforming the second-order differential equation into an algebraic equation for the complex amplitude x~0\tilde{x}_0. The result yields the resonance response curve and the frequency-dependent phase lag between driver and displacement. The dangerous error is discarding the imaginary part of complex displacement prior to differentiating to find velocity. As a final check, the student must verify that at velocity resonance the mechanical velocity is precisely in phase with the applied force.

3. Electromagnetic waves and absorbing dielectric media

It appears when examining the propagation of light and radiofrequency waves through lossy conductors or dissipative dielectrics. It is calculated by introducing a complex refractive index n~=n+iκ\tilde{n} = n + i\kappa, where nn dictates phase velocity and κ\kappa is the extinction coefficient. The result produces a plane wave factor eik~x=e−κωcxeinωcxe^{i\tilde{k} x} = e^{-\kappa \frac{\omega}{c} x} e^{i n \frac{\omega}{c} x}, capturing both spatial phase propagation and exponential attenuation according to the Beer-Lambert law. The dangerous error is confusing the field amplitude attenuation factor with the optical power attenuation factor, which is twice as large due to squaring. As a final check, the student must relate the electrical conductivity of a metal to the imaginary part of its refractive index.

4. Wave optics and light polarization states

It appears when characterizing the polarization state (linear, circular, or elliptical) of transverse electromagnetic waves via complex Jones vectors (E0xeiϕxE0yeiϕy)\begin{pmatrix} E_{0x} e^{i\phi_x} \\ E_{0y} e^{i\phi_y} \end{pmatrix}. It is calculated by extracting the phase difference Δϕ=ϕy−ϕx\Delta\phi = \phi_y - \phi_x between orthogonal electric field vectors. The result defines the geometric trajectory traced by the electric field vector over one optical period. The dangerous error is assuming that equal orthogonal field amplitudes guarantee circular polarization without confirming that the relative phase shift is strictly ±90∘\pm 90^\circ. As a final check, the student must demonstrate why zero phase shift yields an inclined linear polarization state.

5. Quantum mechanical wavefunctions and state evolution

It appears in the time-dependent Schrödinger equation iℏ∂ψ∂t=H^ψi\hbar \frac{\partial \psi}{\partial t} = \hat{H}\psi. It is calculated by solving for stationary eigenstates ψ(x,t)=ϕ(x)e−iEt/ℏ\psi(x,t) = \phi(x) e^{-i E t/\hbar}, where the complex phase precesses at angular frequency ω=E/ℏ\omega = E/\hbar. The result yields the observable probability density via the complex conjugate product ρ(x)=ψ∗ψ=∣ψ∣2\rho(x) = \psi^* \psi = |\psi|^2. The dangerous error is treating ψ\psi itself as a directly measurable classical voltage or position, rather than recognizing that only conjugate bilinear products ψ∗ψ\psi^* \psi and operator expectation values represent measurable quantities. As a final check, the student must prove that total probability ∫∣ψ∣2dx=1\int |\psi|^2 dx = 1 is conserved over time due to the hermiticity of the Hamiltonian operator.

Practice

Level 1: recognition

Convert the following complex numbers into polar form reiθr e^{i\theta} and sketch them on the complex Argand plane: a) z1=1+iz_1 = 1 + i b) z2=−3z_2 = -3 c) z3=−2iz_3 = -2i d) z4=−3+iz_4 = -\sqrt{3} + i

Exercise: For z4z_4, confirm that the angle lies in the second quadrant by computing its principal argument in radians.

Level 2: direct application

Evaluate the following complex algebraic expressions, reducing each to standard Cartesian form x+iyx + i y: a) (3+4i)(1−2i)(3 + 4i)(1 - 2i) b) 5+5i3−4i\frac{5 + 5i}{3 - 4i} c) (1+i)8(1 + i)^8 applying Euler's formula and De Moivre's theorem.

Exercise: Determine the modulus and complex conjugate of 2+i1−3i\frac{2 + i}{1 - 3i}.

Level 3: choosing the tool

Two coherent light waves of identical frequency arrive at a photodetector with amplitudes A1A_1 and A2A_2 and relative phase difference Δϕ\Delta\phi.

Exercise: Formulate their superposition as the sum of two complex phasors E~1=A1\tilde{E}_1 = A_1 and E~2=A2eiΔϕ\tilde{E}_2 = A_2 e^{i\Delta\phi}. Prove algebraically that the resultant intensity ∣E~1+E~2∣2|\tilde{E}_1 + \tilde{E}_2|^2 yields A12+A22+2A1A2cos⁡(Δϕ)A_1^2 + A_2^2 + 2 A_1 A_2 \cos(\Delta\phi) without tedious trigonometric expansions.

Level 4: physical interpretation

In a lossy plasma or conducting medium, the electromagnetic dispersion relation yields a complex wave vector k=β+iαk = \beta + i \alpha.

Exercise: Insert kk into the spatial factor of a plane wave eikxe^{i k x} and explain physically how β\beta and α\alpha dictate the phase velocity and skin depth (penetration length) in the medium.

Level 5: intentional error

A student attempts to determine the average power dissipated in an AC load with voltage V~=100ei0\tilde{V} = 100 e^{i 0} and current I~=5e−iπ/3\tilde{I} = 5 e^{-i \pi/3} by computing: P=Re(V~⋅I~)=100⋅5cos⁡(−π/3)=250 WP = \text{Re}(\tilde{V} \cdot \tilde{I}) = 100 \cdot 5 \cos(-\pi/3) = 250\text{ W}.

Exercise: Identify why the rigorous complex power formula requires the complex conjugate of the current 12Re(V~I~∗)\frac{1}{2} \text{Re}(\tilde{V} \tilde{I}^*), correct the missing 1/21/2 factor for peak values, and explain what would happen if the voltage had a non-zero initial phase.