- #1
brunette15
- 58
- 0
Hi everyone, I am trying to find the general solution for the following ode: y'' +gy' + 10y = e2xcos(x)
The solution states that the answer is y = 1/145 (5cos(x) + 2sin(x))e2x + (Acos(x) + Bsin(x))e-3x
I was able to correctly find the homogeneous part of the equation as e-3x (Acos(x) + Bsin(x))
Now to find the particular solution I have guessed that the answer is yp = Csin(x) + Dcos(x)
From here,
yp' = Ccos(x) - Dsin(x)
yp'' = -Csin(x) - Dcos(x)
Substituting yp,yp',yp'' in the ODE
-Csin(x) - Dcos(x) + 6Ccos(x) - 6Dsin(x) + 10Csin(x) + 10Dcos(x) = e2xcos(x)
Gathering all sin(x)
-C-6D + 10C = 0
C = 2/3D -->equation1
Gathering all cos(x)
6C + 9D = e2x --> equation 2
Solving equation 1 and equation 2
D = e2x/13
C = e2x2/39
As you can see i have different values for C and D compared to the solution.
Can anyone see where i am going wrong or is there a chance that the solution may be incorrect?
Thanks in advance :)
The solution states that the answer is y = 1/145 (5cos(x) + 2sin(x))e2x + (Acos(x) + Bsin(x))e-3x
I was able to correctly find the homogeneous part of the equation as e-3x (Acos(x) + Bsin(x))
Now to find the particular solution I have guessed that the answer is yp = Csin(x) + Dcos(x)
From here,
yp' = Ccos(x) - Dsin(x)
yp'' = -Csin(x) - Dcos(x)
Substituting yp,yp',yp'' in the ODE
-Csin(x) - Dcos(x) + 6Ccos(x) - 6Dsin(x) + 10Csin(x) + 10Dcos(x) = e2xcos(x)
Gathering all sin(x)
-C-6D + 10C = 0
C = 2/3D -->equation1
Gathering all cos(x)
6C + 9D = e2x --> equation 2
Solving equation 1 and equation 2
D = e2x/13
C = e2x2/39
As you can see i have different values for C and D compared to the solution.
Can anyone see where i am going wrong or is there a chance that the solution may be incorrect?
Thanks in advance :)