Problems from Linear equations of order n with constant coefficients

Solve the following equation: y+4y=4cosx+3sinx8

See development and solution

Development:

We have a non homogeneous linear ODE with constant coefficients. First of all, we solve the homogeneous part y+4y=0 We have the characteristical polynomial: p(λ)=λ2+4 that has roots:

  • λ=±2i complex root and its conjugate. The solution is then y1(x)=cos(2x) and y1(x)=sin(2x).

We look for a polynomial Q(D) that cancels f(x). To do this, we proceed the inverse way to the way we did it when computing the homogeneous solutions:

  • cos(x) comes from a complex root λ=i

  • sin(x) comes from a complex root λ=i

  • 1 comes from a simple real root λ=0

Therefore the polynomial is Q(D)=(D+Idi)(DIdi)(D0)=(D2+Id)D

We consider the new homogeneous problem Q(D)P(D)y(x)=0 Q(D)P(D)y(x)=(D2+Id)D(D2+4D)y(x)= =(D+Idi)(DIdi)D(D24Id)y(x)=0 We see that the solutions to this problem are: y(x)=C1cos(2x)+C2sin(2x)+C3+C4sin(x)+C5cos(x) Now, we take the functions that are a solution of y, but were not of yh, and look for a particular solution that is a linear combination of these solutions: yp(x)=A+Bcos(x)+Csin(x) We designate this as a solution: yp+4yp=4cos(x)+3sin(x)8yp+4yp=Bcos(x)Csin(x)+4A+4Bcos(x)+4Csin(x)==4A+3Bcos(x)+3Csin(x)} {4A=83B=43C=3{A=2B=43C=1 Finally, we see that the general solution is: y(x)=yh(x)+yp(x)=C1cos(2x)+C2sin(2x)+43cos(x)+sin(x)2

Solution:

y(x)=C1cos(2x)+C2sin(2x)+43cos(x)+sin(x)2

Hide solution and development
View theory