Back to all blogs
.

Understanding I and Q - The Foundation of Signal Processing

An introduction to in-phase and quadrature signals and why this representation is useful in digital communications and signal processing.

In-phase (I) and Quadrature (Q) representation is the standard method for representing complex waveforms in Digital Signal Processing (DSP). This method decomposes a signal into two orthogonal components, allowing for precise control over amplitude and phase.

Mathematical Foundation

A standard sinusoidal signal is defined by its amplitude AA, frequency fcf_c, and phase ϕ\phi:

s(t)=Acos(2πfct+ϕ)s(t) = A \cos(2\pi f_c t + \phi)

Using the trigonometric identity cos(α+β)=cosαcosβsinαsinβ\cos(\alpha + \beta) = \cos\alpha \cos\beta - \sin\alpha \sin\beta, the expression is rewritten as:

s(t)=Acos(ϕ)cos(2πfct)Asin(ϕ)sin(2πfct)s(t) = A \cos(\phi) \cos(2\pi f_c t) - A \sin(\phi) \sin(2\pi f_c t)

From this, we define the Cartesian components:

  • In-phase (I): I=Acos(ϕ)I = A \cos(\phi)
  • Quadrature (Q): Q=Asin(ϕ)Q = A \sin(\phi)

The final composite signal is expressed as:

s(t)=Icos(2πfct)Qsin(2πfct)s(t) = I \cos(2\pi f_c t) - Q \sin(2\pi f_c t)

 

The below figure illustrates the synthesis of a bandpass signal from static In-phase (I) and Quadrature (Q) baseband components. The II and QQ DC levels scale a cosine and a negative sine carrier, respectively, creating two orthogonal waveforms. When summed, these components produce a single composite signal s(t)s(t) where the specific amplitude and phase are determined entirely by the relative magnitudes of II and QQ.

I/Q plane showing amplitude and phase

Orthogonality and the Complex Plane

The II and QQ components are mathematically orthogonal, meaning they are 9090^\circ out of phase. In DSP, these are treated as a single complex number zz:

z=I+jQz = I + jQ

Where jj is the imaginary unit (j2=1j^2 = -1). By utilizing Euler’s Formula (ejθ=cosθ+jsinθe^{j\theta} = \cos\theta + j\sin\theta), we represent the signal in the complex exponential form:

s(t)=Re{(I+jQ)ej2πfct}s(t) = \text{Re}\{ (I + jQ) e^{j2\pi f_c t} \}

I/Q in Complex Plane {100x100}

Domain Conversions

Magnitude (A)

A=I2+Q2A = \sqrt{I^2 + Q^2}

Phase (ϕ\phi)

ϕ=atan2(Q,I)\phi = \operatorname{atan2}(Q, I)

Why I/Q Representation Is Used

The I/Q framework provides several practical advantages:

  • Efficient modulation and demodulation
    Complex baseband signals can be upconverted and downconverted using simple multiplications.

  • Simplified filtering
    Filtering at baseband avoids high-frequency analog filters.

  • Robust digital processing
    Phase, frequency offset, and amplitude variations can be estimated and corrected digitally.

  • Natural fit for FFT-based systems
    Most spectral analysis and communication algorithms operate on complex-valued data.