Differential-Equations · Unit 7 · Video 3 · Interactive Practice

Solving y' + ky = k cos ωt by Complexification

IKey Formulas

FormulaNameRole
y′+ky=kcos⁡ωty' + ky = k\cos\omega tReal equation, cosine inputThe problem: find the response yy
y~′+ky~=k eiωt\tilde{y}' + k\tilde{y} = k\,e^{i\omega t}Complexified equationcos⁡ωt=Re⁡(eiωt)\cos\omega t = \operatorname{Re}(e^{i\omega t}), sin⁡ωt=Im⁡(eiωt)\sin\omega t = \operatorname{Im}(e^{i\omega t})
y~=y1+i y2\tilde{y} = y_1 + i\,y_2Real and imaginary partsy1y_1 is the response to cos⁡ωt\cos\omega t, y2y_2 the response to sin⁡ωt\sin\omega t
y~=kk+iω eiωt=eiωt1+i(ω/k)\tilde{y} = \dfrac{k}{k + i\omega}\,e^{i\omega t} = \dfrac{e^{i\omega t}}{1 + i(\omega/k)}Complex solutionIntegrating factor ekte^{kt}, no + c+\,c

Key Insight: Integrating e(k+iω)te^{(k + i\omega)t} is one division by k+iωk + i\omega, where the cosine would need integration by parts twice, and the result depends on kk and ω\omega only through ω/k\omega/k.

IIAngular Frequency and Frequency

ω\omega counts oscillations in a tt-interval of length 2π2\pi; the frequency ω/2π\omega/2\pi counts them per unit of tt.

IIIReal Part for Cosine, Imaginary Part for Sine

For y′+y=cos⁡ty' + y = \cos t (k=ω=1k = \omega = 1), the real part of y~\tilde{y} answers cos⁡t\cos t and the imaginary part answers sin⁡t\sin t.

IVOnly the Ratio ω/k Matters

The coefficient kk+iω=11+i(ω/k)\dfrac{k}{k + i\omega} = \dfrac{1}{1 + i(\omega/k)} depends on kk and ω\omega only through the ratio ω/k\omega/k.

VQuiz Questions

Problem 1 · Angular Frequency vs Frequency

Given: the input qe(t)=cos⁡3tq_e(t) = \cos 3t. Find its frequency in the everyday sense: the number of complete oscillations in a tt-interval of length 11.

✅ Correct! cos⁡3t\cos 3t makes 33 complete oscillations per interval of length 2π2\pi, so 32π≈0.477\tfrac{3}{2\pi} \approx 0.477 per unit of tt.
❌ Close, but… 33 is the angular frequency ω\omega: it counts oscillations in an interval of length 2π2\pi, not of length 11. Divide by 2π2\pi.
❌ Not quite. 2π3\tfrac{2\pi}{3} is the period, the length of one oscillation; the frequency is its reciprocal, the number of oscillations per unit length.
❌ Not quite. The frequency is ω/2π\omega/2\pi, so the 2π2\pi belongs in the denominator.
Show solution

For cos⁡ωt\cos\omega t the angular frequency is ω=3\omega = 3: three complete oscillations in a tt-interval of length 2π2\pi. One unit of tt is the fraction 12π\tfrac{1}{2\pi} of that interval, so it holds

ω2π=32π≈0.477\frac{\omega}{2\pi} = \frac{3}{2\pi} \approx 0.477

oscillations. Equivalently, the period is 2π3\tfrac{2\pi}{3} and the frequency is its reciprocal 32π\tfrac{3}{2\pi}.

Problem 2 · A Sine Input

Given: y′+2y=2sin⁡3ty' + 2y = 2\sin 3t. Which complexification produces the response yy?

✅ Correct! sin⁡3t=Im⁡(e3it)\sin 3t = \operatorname{Im}(e^{3it}), and the imaginary parts of the complex equation are exactly y2′+2y2=2sin⁡3ty_2' + 2y_2 = 2\sin 3t.
❌ Close, but… The real part of y~\tilde{y} solves y1′+2y1=2cos⁡3ty_1' + 2y_1 = 2\cos 3t, the cosine input. The sine is the imaginary part of e3ite^{3it}.
❌ Check the sign. Im⁡(e−3it)=−sin⁡3t\operatorname{Im}(e^{-3it}) = -\sin 3t, so this gives the response to −2sin⁡3t-2\sin 3t, the negative of yy.
❌ Not quite. The right side lost its factor k=2k = 2: Im⁡\operatorname{Im} of this y~\tilde{y} solves y′+2y=sin⁡3ty' + 2y = \sin 3t, so it is only half the response.
❌ Not quite. Replace 2sin⁡3t2\sin 3t by 2e3it2e^{3it}, whose imaginary part it is.
Show solution

By Euler, 2e3it=2cos⁡3t+2isin⁡3t2e^{3it} = 2\cos 3t + 2i\sin 3t. Substituting y~=y1+i y2\tilde{y} = y_1 + i\,y_2 into y~′+2y~=2e3it\tilde{y}' + 2\tilde{y} = 2e^{3it} and matching imaginary parts (k=2k = 2 is real) gives

y2′+2y2=2sin⁡3t,y_2' + 2y_2 = 2\sin 3t,

so the response is y=Im⁡y~y = \operatorname{Im}\tilde{y}. Solving with the integrating factor e2te^{2t}:

y~=22+3i e3it=4−6i13 (cos⁡3t+isin⁡3t),\tilde{y} = \frac{2}{2 + 3i}\,e^{3it} = \frac{4 - 6i}{13}\,(\cos 3t + i\sin 3t), y=Im⁡y~=4sin⁡3t−6cos⁡3t13.y = \operatorname{Im}\tilde{y} = \frac{4\sin 3t - 6\cos 3t}{13}.

Check: y′+2y=12cos⁡3t+18sin⁡3t13+8sin⁡3t−12cos⁡3t13=2sin⁡3ty' + 2y = \dfrac{12\cos 3t + 18\sin 3t}{13} + \dfrac{8\sin 3t - 12\cos 3t}{13} = 2\sin 3t ✓

Problem 3 · Taking the Real Part

Given: y′+y=cos⁡2ty' + y = \cos 2t, so k=1k = 1, ω=2\omega = 2 and y~=e2it1+2i\tilde{y} = \dfrac{e^{2it}}{1 + 2i}. Find y1=Re⁡y~y_1 = \operatorname{Re}\tilde{y}.

✅ Correct! Multiplying 1−2i5\tfrac{1 - 2i}{5} by cos⁡2t+isin⁡2t\cos 2t + i\sin 2t puts cos⁡2t+2sin⁡2t\cos 2t + 2\sin 2t in the real part.
❌ Close, but… Re⁡(c e2it)≠Re⁡(c)cos⁡2t\operatorname{Re}(c\,e^{2it}) \neq \operatorname{Re}(c)\cos 2t: the imaginary part −25i-\tfrac{2}{5}i of the coefficient times isin⁡2ti\sin 2t is real too. Multiply out first.
❌ Check the sign. 11+2i=1−2i5\tfrac{1}{1 + 2i} = \tfrac{1 - 2i}{5}, and (−2i)(isin⁡2t)=+2sin⁡2t(-2i)(i\sin 2t) = +2\sin 2t.
❌ Not quite. Multiplying top and bottom by 1−2i1 - 2i puts (1+2i)(1−2i)=5(1 + 2i)(1 - 2i) = 5 in the denominator, not 5\sqrt{5}.
❌ Not quite. Rationalize 11+2i\tfrac{1}{1 + 2i}, multiply by cos⁡2t+isin⁡2t\cos 2t + i\sin 2t, then keep the real terms.
Show solution

Step 1: rationalize the coefficient.

11+2i=1−2i(1+2i)(1−2i)=1−2i5\frac{1}{1 + 2i} = \frac{1 - 2i}{(1 + 2i)(1 - 2i)} = \frac{1 - 2i}{5}

Step 2: multiply out with e2it=cos⁡2t+isin⁡2te^{2it} = \cos 2t + i\sin 2t.

y~=15(cos⁡2t+2sin⁡2t)+i5(sin⁡2t−2cos⁡2t)\tilde{y} = \frac{1}{5}\big(\cos 2t + 2\sin 2t\big) + \frac{i}{5}\big(\sin 2t - 2\cos 2t\big)

Step 3: keep the real part: y1=15(cos⁡2t+2sin⁡2t)y_1 = \tfrac{1}{5}(\cos 2t + 2\sin 2t).

Check: y1′=15(−2sin⁡2t+4cos⁡2t)y_1' = \tfrac{1}{5}(-2\sin 2t + 4\cos 2t), so y1′+y1=15(5cos⁡2t)=cos⁡2ty_1' + y_1 = \tfrac{1}{5}(5\cos 2t) = \cos 2t ✓

Problem 4 · Same Ratio, Same Coefficient

Given: y′+2y=2cos⁡3ty' + 2y = 2\cos 3t, whose complex solution is y~=22+3i e3it\tilde{y} = \dfrac{2}{2 + 3i}\,e^{3it}. Which equation's complex solution has the same coefficient in front of its eiωte^{i\omega t}?

✅ Correct! Doubling both kk and ω\omega keeps ω/k=64=32\omega/k = \tfrac{6}{4} = \tfrac{3}{2}, so 44+6i=22+3i\tfrac{4}{4 + 6i} = \tfrac{2}{2 + 3i}.
❌ Close, but… Swapping kk and ω\omega gives ω/k=23\omega/k = \tfrac{2}{3}, not 32\tfrac{3}{2}: the coefficient becomes 33+2i\tfrac{3}{3 + 2i}.
❌ Not quite. Doubling ω\omega alone doubles the ratio to ω/k=3\omega/k = 3, giving 22+6i=11+3i\tfrac{2}{2 + 6i} = \tfrac{1}{1 + 3i}.
❌ Not quite. Doubling kk alone halves the ratio to ω/k=34\omega/k = \tfrac{3}{4}, giving 44+3i\tfrac{4}{4 + 3i}.
Show solution

Dividing top and bottom by kk, the coefficient of y′+ky=kcos⁡ωty' + ky = k\cos\omega t is

kk+iω=11+i(ω/k),\frac{k}{k + i\omega} = \frac{1}{1 + i(\omega/k)},

so two equations share it exactly when they share ω/k\omega/k. Here ω/k=32\omega/k = \tfrac{3}{2}. The options have ratios (a) 23\tfrac{2}{3}, (b) 62=3\tfrac{6}{2} = 3, (c) 34\tfrac{3}{4} and (d) 64=32\tfrac{6}{4} = \tfrac{3}{2}.

Only (d) matches: 44+6i=22+3i=4−6i13\dfrac{4}{4 + 6i} = \dfrac{2}{2 + 3i} = \dfrac{4 - 6i}{13}.

Solved: 0 / 4