A Second-Order Initial-Value Problem with Complex Roots
A public differential equations question that solves a constant-coefficient initial-value problem whose characteristic roots are complex, including the product rule needed for the second condition.
Question
Solve y′′−4y′+13y=0 with y(0)=2 and y′(0)=1.
a.y=e2x(2cos3x+31sin3x)
b.y=e2x(2cos3x−sin3x)
c.y=21e5x+23e−x
d.y=e3x(2cos2x−25sin2x)
Correct answer
B. y=e2x(2cos3x−sin3x)
Full reasoning
1The equation has constant coefficients, so substitute y=erx to get the characteristic equation r2−4r+13=0.
2Solve it: r=24±16−52=24±−36=24±6i=2±3i, so α=2 and β=3.
3The complex-root case gives the general solution y=e2x(Acos3x+Bsin3x).
4Apply y(0)=2: at x=0 the expression is 1⋅(A⋅1+B⋅0)=A, so A=2.
5Differentiate with the product rule: y′=e2x[(2A+3B)cos3x+(2B−3A)sin3x], so y′(0)=2A+3B.
6Apply y′(0)=1: 2(2)+3B=1 gives 3B=−3, so B=−1 and y=e2x(2cos3x−sin3x).
Why each choice is right or wrong
Choice A
This differentiates e2x(Acos3x+Bsin3x) without the product rule, using y′(0)=3B instead of y′(0)=2A+3B. The exponential factor contributes 2A to y′(0) and cannot be ignored.
Choice B
Correct. The roots are 2±3i, so y=e2x(Acos3x+Bsin3x); y(0)=A=2 and y′(0)=2A+3B=1 give B=−1.
Choice C
This reads −36 as 6 instead of 6i, producing the fictitious real roots r=2±3. The discriminant 16−52=−36 is negative, so the roots are complex and the solution oscillates.
Choice D
This swaps the real and imaginary parts of the root, using 3±2i instead of 2±3i. The real part is the exponential growth rate and the imaginary part is the oscillation frequency, so the two are not interchangeable.
Related formula
Complex-root case of the characteristic equation
r=α±βi⟹y=eαx(c1cosβx+c2sinβx)
Assumptions: The equation is homogeneous with constant coefficients and the discriminant is negative. Differentiating this form requires the product rule, so y'(0) = alpha*c1 + beta*c2.
Every source cited on this page was checked on the date shown, and we update the page when a source changes. If something looks wrong, tell us and we'll recheck it.