Differential-Equations Β· Unit 6 Β· Video 3 Β· Interactive Practice

One Division Instead of Two Integrations by Parts: Complexifying the Integral of e^(-x) cos x

IKey Formulas

FormulaNameWhat it gives
eβˆ’xcos⁑x=Re⁑ e(βˆ’1+i)xe^{-x}\cos x = \operatorname{Re}\, e^{(-1+i)x}Complexify the integrandThe real factor eβˆ’xe^{-x} scales both parts of eix=cos⁑x+isin⁑xe^{ix} = \cos x + i\sin x
∫e(βˆ’1+i)x dx=e(βˆ’1+i)xβˆ’1+i\displaystyle\int e^{(-1+i)x}\,dx = \frac{e^{(-1+i)x}}{-1+i}Integrate the exponentialDifferentiating brings down βˆ’1+i-1+i, which cancels the denominator
1βˆ’1+i=βˆ’1βˆ’i(βˆ’1+i)(βˆ’1βˆ’i)=βˆ’1βˆ’i2\dfrac{1}{-1+i} = \dfrac{-1-i}{(-1+i)(-1-i)} = \dfrac{-1-i}{2}Divide with the conjugateThe coefficient in the form a+bia + bi: βˆ’12βˆ’12i-\tfrac12 - \tfrac12 i
∫eβˆ’xcos⁑x dx=12eβˆ’x(sin⁑xβˆ’cos⁑x)+C\displaystyle\int e^{-x}\cos x\,dx = \tfrac12 e^{-x}(\sin x - \cos x) + CTake the real partOnly (βˆ’1)cos⁑x(-1)\cos x and (βˆ’i)(isin⁑x)=sin⁑x(-i)(i\sin x) = \sin x are real

Key Insight: For any eaxcos⁑bxe^{ax}\cos bx or eaxsin⁑bxe^{ax}\sin bx, integrate e(a+ib)xe^{(a+ib)x} to get e(a+ib)xa+ib\dfrac{e^{(a+ib)x}}{a+ib}, rewrite 1a+ib=aβˆ’iba2+b2\dfrac{1}{a+ib} = \dfrac{a-ib}{a^2+b^2}, and keep the real part (for cosine) or the imaginary part (for sine).

IIThe Integrand Is the Shadow of a Spiral

e(βˆ’1+i)xe^{(-1+i)x} is an arrow of length eβˆ’xe^{-x} at angle xx; its real part is exactly eβˆ’xcos⁑xe^{-x}\cos x.

IIIOne Division: Multiply by the Conjugate

Multiplying ww by its conjugate wΛ‰\bar w gives the real number ∣w∣2|w|^2, so 1w=wΛ‰βˆ£w∣2\dfrac{1}{w} = \dfrac{\bar w}{|w|^2}.

IVChecking the Answer: Slope of F Equals f

At every xx, the slope of the antiderivative FF equals the height of the integrand ff.

VQuiz Questions

Problem 1 Β· Complexify the Integrand

Given: the integrand eβˆ’2xcos⁑3xe^{-2x}\cos 3x β€” find the complex exponential whose real part it is.

βœ… Correct! e(βˆ’2+3i)x=eβˆ’2xe3ix=eβˆ’2x(cos⁑3x+isin⁑3x)e^{(-2+3i)x} = e^{-2x}e^{3ix} = e^{-2x}(\cos 3x + i\sin 3x), and the real factor eβˆ’2xe^{-2x} scales both parts, so the real part is eβˆ’2xcos⁑3xe^{-2x}\cos 3x.
❌ The roles are swapped. e(3βˆ’2i)x=e3x(cos⁑2xβˆ’isin⁑2x)e^{(3-2i)x} = e^{3x}(\cos 2x - i\sin 2x) has real part e3xcos⁑2xe^{3x}\cos 2x. The real part of the exponent is the decay rate βˆ’2-2; the coefficient of ii is the frequency 33.
❌ The factors must multiply, not add. The real part of eβˆ’2x+e3ixe^{-2x} + e^{3ix} is eβˆ’2x+cos⁑3xe^{-2x} + \cos 3x. The integrand is a product, and eβˆ’2xβ‹…e3ix=e(βˆ’2+3i)xe^{-2x}\cdot e^{3ix} = e^{(-2+3i)x}.
❌ The ii belongs only to the frequency. e(βˆ’2+3)ix=eixe^{(-2+3)ix} = e^{ix} has real part cos⁑x\cos x. Keep βˆ’2-2 as the real part of the exponent: e(βˆ’2+3i)xe^{(-2+3i)x}.
Show solution

By Euler's definition, cos⁑3x=Re⁑ e3ix\cos 3x = \operatorname{Re}\, e^{3ix}. Multiplying by the real number eβˆ’2xe^{-2x} scales the real and imaginary parts alike:

eβˆ’2xcos⁑3x=Re⁑(eβˆ’2x(cos⁑3x+isin⁑3x))=Re⁑(eβˆ’2xe3ix)=Re⁑ e(βˆ’2+3i)x.e^{-2x}\cos 3x = \operatorname{Re}\big(e^{-2x}(\cos 3x + i\sin 3x)\big) = \operatorname{Re}\big(e^{-2x}e^{3ix}\big) = \operatorname{Re}\, e^{(-2+3i)x}.

The exponent is a+iba + ib with a=βˆ’2a = -2 (decay) and b=3b = 3 (frequency).

Problem 2 Β· The Division Step

Given: the coefficient 12+i\dfrac{1}{2+i} β€” write it in the form a+bia + bi.

βœ… Correct! (2+i)(2βˆ’i)=22+12=5(2+i)(2-i) = 2^2 + 1^2 = 5, so 12+i=2βˆ’i5\dfrac{1}{2+i} = \dfrac{2-i}{5}. Check: (2+i)β‹…2βˆ’i5=55=1(2+i)\cdot\dfrac{2-i}{5} = \dfrac{5}{5} = 1.
❌ A quotient cannot be split term by term. 12+1i=12βˆ’i\tfrac12 + \tfrac1i = \tfrac12 - i treats 12+i\dfrac{1}{2+i} as 12+1i\dfrac12 + \dfrac1i, which is false: (2+i)(12βˆ’i)=2βˆ’32iβ‰ 1(2+i)(\tfrac12 - i) = 2 - \tfrac32 i \neq 1. Multiply top and bottom by the conjugate 2βˆ’i2 - i.
❌ Check the denominator. (2+i)(2βˆ’i)=4βˆ’i2=4βˆ’(βˆ’1)=5(2+i)(2-i) = 4 - i^2 = 4 - (-1) = 5, not 4βˆ’1=34 - 1 = 3: a number times its conjugate is always a2+b2a^2 + b^2.
❌ Check the sign of the imaginary part. The numerator becomes the conjugate 2βˆ’i2 - i, so the imaginary part is βˆ’15-\tfrac15. Check: (2+i)(25+15i)=35+45iβ‰ 1(2+i)(\tfrac25 + \tfrac15 i) = \tfrac35 + \tfrac45 i \neq 1.
Show solution

Multiply top and bottom by the conjugate of the denominator, 2βˆ’i2 - i:

12+i=12+iβ‹…2βˆ’i2βˆ’i=2βˆ’i(2+i)(2βˆ’i)=2βˆ’i22+12=2βˆ’i5=25βˆ’15i.\frac{1}{2+i} = \frac{1}{2+i}\cdot\frac{2-i}{2-i} = \frac{2-i}{(2+i)(2-i)} = \frac{2-i}{2^2+1^2} = \frac{2-i}{5} = \frac25 - \frac15 i.

Real part 25\tfrac25, imaginary part βˆ’15-\tfrac15.

Problem 3 Β· The Full Method

Given: ∫e2xcos⁑x dx\displaystyle\int e^{2x}\cos x\,dx β€” find it by complexifying.

βœ… Correct! Re⁑[2βˆ’i5 e2x(cos⁑x+isin⁑x)]=15e2x(2cos⁑x+sin⁑x)\operatorname{Re}\big[\tfrac{2-i}{5}\,e^{2x}(\cos x + i\sin x)\big] = \tfrac15 e^{2x}(2\cos x + \sin x), and its derivative is 15e2x(4cos⁑x+2sin⁑xβˆ’2sin⁑x+cos⁑x)=e2xcos⁑x\tfrac15 e^{2x}(4\cos x + 2\sin x - 2\sin x + \cos x) = e^{2x}\cos x.
❌ Watch (βˆ’i)(i)(-i)(i). (βˆ’i)(isin⁑x)=βˆ’i2sin⁑x=+sin⁑x(-i)(i\sin x) = -i^2\sin x = +\sin x, because i2=βˆ’1i^2 = -1. The two real products are 2cos⁑x2\cos x and +sin⁑x+\sin x.
❌ Check the denominator. (2+i)(2βˆ’i)=22+12=5(2+i)(2-i) = 2^2 + 1^2 = 5, so the coefficient is 2βˆ’i5\tfrac{2-i}{5}, not 2βˆ’i3\tfrac{2-i}{3}.
❌ The coefficients are swapped. Differentiate to check: 15e2x(2cos⁑x+4sin⁑xβˆ’sin⁑x+2cos⁑x)=15e2x(4cos⁑x+3sin⁑x)β‰ e2xcos⁑x\tfrac15 e^{2x}(2\cos x + 4\sin x - \sin x + 2\cos x) = \tfrac15 e^{2x}(4\cos x + 3\sin x) \neq e^{2x}\cos x. The real part of (2βˆ’i)(cos⁑x+isin⁑x)(2 - i)(\cos x + i\sin x) is 2cos⁑x+sin⁑x2\cos x + \sin x.
Show solution

Complexify: e2xcos⁑x=Re⁑ e(2+i)xe^{2x}\cos x = \operatorname{Re}\, e^{(2+i)x}, so

∫e2xcos⁑x dx=Re⁑∫e(2+i)x dx=Re⁑ e(2+i)x2+i.\int e^{2x}\cos x\,dx = \operatorname{Re}\int e^{(2+i)x}\,dx = \operatorname{Re}\,\frac{e^{(2+i)x}}{2+i}.

Divide: 12+i=2βˆ’i5\dfrac{1}{2+i} = \dfrac{2-i}{5}.

Real part: the real factors 15\tfrac15 and e2xe^{2x} move outside, leaving

Re⁑[(2βˆ’i)(cos⁑x+isin⁑x)]=2cos⁑x+(βˆ’i)(isin⁑x)=2cos⁑x+sin⁑x.\operatorname{Re}\big[(2-i)(\cos x + i\sin x)\big] = 2\cos x + (-i)(i\sin x) = 2\cos x + \sin x. ∫e2xcos⁑x dx=15e2x(2cos⁑x+sin⁑x)+C.\int e^{2x}\cos x\,dx = \tfrac15 e^{2x}(2\cos x + \sin x) + C.

Check: ddx[15e2x(2cos⁑x+sin⁑x)]=15e2x(4cos⁑x+2sin⁑xβˆ’2sin⁑x+cos⁑x)=e2xcos⁑x\dfrac{d}{dx}\big[\tfrac15 e^{2x}(2\cos x + \sin x)\big] = \tfrac15 e^{2x}\big(4\cos x + 2\sin x - 2\sin x + \cos x\big) = e^{2x}\cos x βœ“

Problem 4 Β· Sine Takes the Imaginary Part

Given: ∫eβˆ’xsin⁑x dx\displaystyle\int e^{-x}\sin x\,dx, using the same coefficient 1βˆ’1+i=βˆ’1βˆ’i2\dfrac{1}{-1+i} = \dfrac{-1-i}{2} from the video β€” find the integral.

βœ… Correct! The imaginary part of (βˆ’1βˆ’i)(cos⁑x+isin⁑x)(-1-i)(\cos x + i\sin x) is βˆ’sin⁑xβˆ’cos⁑x-\sin x - \cos x, and the derivative of βˆ’12eβˆ’x(sin⁑x+cos⁑x)-\tfrac12 e^{-x}(\sin x + \cos x) is eβˆ’xsin⁑xe^{-x}\sin x.
❌ That is the cosine integral. 12eβˆ’x(sin⁑xβˆ’cos⁑x)\tfrac12 e^{-x}(\sin x - \cos x) is the real part, the answer for eβˆ’xcos⁑xe^{-x}\cos x. Since sin⁑x=Im⁑ eix\sin x = \operatorname{Im}\, e^{ix}, the sine integral is the imaginary part.
❌ Check the overall sign. Its derivative is 12eβˆ’x(βˆ’sin⁑xβˆ’cos⁑x+cos⁑xβˆ’sin⁑x)=βˆ’eβˆ’xsin⁑x\tfrac12 e^{-x}(-\sin x - \cos x + \cos x - \sin x) = -e^{-x}\sin x. Both imaginary products, (βˆ’1)(isin⁑x)(-1)(i\sin x) and (βˆ’i)(cos⁑x)(-i)(\cos x), carry a minus sign.
❌ Differentiate to check. 12eβˆ’x(cos⁑xβˆ’sin⁑x)\tfrac12 e^{-x}(\cos x - \sin x) has derivative βˆ’eβˆ’xcos⁑x-e^{-x}\cos x. Take the imaginary part of (βˆ’1βˆ’i)(cos⁑x+isin⁑x)(-1-i)(\cos x + i\sin x): βˆ’sin⁑xβˆ’cos⁑x-\sin x - \cos x.
Show solution

Since sin⁑x=Im⁑ eix\sin x = \operatorname{Im}\, e^{ix}, we have eβˆ’xsin⁑x=Im⁑ e(βˆ’1+i)xe^{-x}\sin x = \operatorname{Im}\, e^{(-1+i)x}, so

∫eβˆ’xsin⁑x dx=Im⁑ e(βˆ’1+i)xβˆ’1+i=Im⁑[βˆ’1βˆ’i2 eβˆ’x(cos⁑x+isin⁑x)].\int e^{-x}\sin x\,dx = \operatorname{Im}\,\frac{e^{(-1+i)x}}{-1+i} = \operatorname{Im}\Big[\frac{-1-i}{2}\,e^{-x}(\cos x + i\sin x)\Big].

Expand the product: (βˆ’1βˆ’i)(cos⁑x+isin⁑x)=(βˆ’cos⁑x+sin⁑x)+i(βˆ’sin⁑xβˆ’cos⁑x)(-1-i)(\cos x + i\sin x) = (-\cos x + \sin x) + i(-\sin x - \cos x). Keep the imaginary part:

∫eβˆ’xsin⁑x dx=βˆ’12eβˆ’x(sin⁑x+cos⁑x)+C.\int e^{-x}\sin x\,dx = -\tfrac12 e^{-x}(\sin x + \cos x) + C.

Check: ddx[βˆ’12eβˆ’x(sin⁑x+cos⁑x)]=βˆ’12eβˆ’x(cos⁑xβˆ’sin⁑xβˆ’sin⁑xβˆ’cos⁑x)=eβˆ’xsin⁑x\dfrac{d}{dx}\big[-\tfrac12 e^{-x}(\sin x + \cos x)\big] = -\tfrac12 e^{-x}\big(\cos x - \sin x - \sin x - \cos x\big) = e^{-x}\sin x βœ“

Solved: 0 / 4