Skip to content
← All questions

Why are terms like cos⁡(2t)\cos (2t) and sin⁡(3t)\sin (3t) added when representing a square wave?

Terms like cos⁡(2t)\cos(2t) and sin⁡(3t)\sin(3t) are added because a single fundamental sine-cosine pair (a1cos⁡(t)+b1sin⁡(t)a_1\cos(t)+b_1\sin(t)) only produces a smooth sinusoidal shape. To match the sharp transitions of a square wave, the series must include higher harmonics whose frequencies are integer multiples of the base frequency.

Conditions

  • The target function is a square wave with period 2π2\pi.
  • The representation uses sine and cosine terms.

Reasoning, step by step

  1. Start with the fundamental terms a1cos⁡(t)a_1\cos(t) and b1sin⁡(t)b_1\sin(t).
  2. Observe that this combination alone looks like a very clean sinusoid, not a square wave.
  3. Recognize the need for additional components to capture the sharp corners.
  4. Add sinusoids whose frequencies are multiples of the base frequency, such as cos⁡(2t)\cos(2t) and sin⁡(3t)\sin(3t).

Example

The speaker says that a1cos⁡(t)+b1sin⁡(t)a_1\cos(t)+b_1\sin(t) by itself is not going to describe the function because it would look like a very clean sinusoid, not like a square wave, so they add sinusoids of frequencies that are multiples of these frequencies.

Common misconceptions

  • Mistaking a single fundamental sinusoid for a full square-wave representation.
  • Overlooking the effect of the coefficient inside the trigonometric argument, not realizing that cos⁡(2t)\cos(2t) has twice the frequency of cos⁡(t)\cos(t).

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.