Question #38806

Solve the following Ordinary Differential Equation
y''+4y=2cosXcos3X

Expert's answer

Answer on Question#38806 - Math - Differential Calculus

Question: Solve the following Ordinary Differential Equation:


y+4y=2cosxcos3xy'' + 4y = 2 \cos x \cos 3x


Solution. The solution of this equation will be the sum of the complementary solution and the particular solution.

We first find the complementary solution by solving the corresponding homogenous equation:


y+4y=0.y'' + 4y = 0.


Assume the solution will be proportional to eλxe^{\lambda x} for some constant λ\lambda and substitute y(x)=eλxy(x) = e^{\lambda x} into the differential equation:


(eλx)+4eλx=0(e^{\lambda x})'' + 4e^{\lambda x} = 0λ2eλx+4eλx=0\lambda^2 e^{\lambda x} + 4e^{\lambda x} = 0


Factor out eλxe^{\lambda x}:


(λ2+4)eλx=0.(\lambda^2 + 4)e^{\lambda x} = 0.


Since eλx0e^{\lambda x} \neq 0 for any finite λ\lambda, the zeros must come from the polynomial:


λ2+4=0.\lambda^2 + 4 = 0.


From this, we can find λ\lambda:


λ1=2i,λ2=2i.\lambda_1 = 2i, \lambda_2 = -2i.


These roots give us two complementary solutions:


y1(x)=c1e2ix,y2(x)=c2e2ix,y_1(x) = c_1 e^{2ix}, \quad y_2(x) = c_2 e^{-2ix},


Where c1c_1 and c2c_2 are arbitrary constants.

Adding these solutions, we obtain the complementary solution of our equation:


yc(x)=y1(x)+y2(x)=c1e2ix+c2e2ix.y_c(x) = y_1(x) + y_2(x) = c_1 e^{2ix} + c_2 e^{-2ix}.


This solution can be written in a different way using Euler's identity ea+ib=ea(cosb+isinb)e^{a + ib} = e^a (\cos b + i \sin b):


yc(x)=c1(cos2x+isin2x)+c2(cos2xisin2x).y_c(x) = c_1 (\cos 2x + i \sin 2x) + c_2 (\cos 2x - i \sin 2x).


Regrouping the terms, we get


yc(x)=(c1+c2)cos2x+i(c1c2)sin2x.y_c(x) = (c_1 + c_2) \cos 2x + i (c_1 - c_2) \sin 2x.


Since c1c_1 and c2c_2 are arbitrary constants, we can redefine c1+c2c_1 + c_2 as c1c_1 and i(c1c2)i(c_1 - c_2) as c2c_2:


yc(x)=c1cos2x+c2sin2x.y_c(x) = c_1 \cos 2x + c_2 \sin 2x.


Let us now find the particular solution by the method of undetermined coefficients.

To do this, note that


2cosxcos3x=212cos(3xx)+cos(3x+x)=cos2x+cos4x,2 \cos x \cos 3x = 2 \cdot \frac{1}{2} \cdot \cos(3x - x) + \cos(3x + x) = \cos 2x + \cos 4x,


so we will be solving the equation


y+4y=cos2x+cos4x.y'' + 4y = \cos 2x + \cos 4x.


The particular solution will be the sum of particular solutions to two equations:


y+4y=cos2x,y'' + 4y = \cos 2x,y+4y=cos4x.y'' + 4y = \cos 4x.


These solutions are of the form


yp1(x)=x(a1cos2x+a2sin2x),y_{p1}(x) = x(a_1 \cos 2x + a_2 \sin 2x),yp2(x)=a3cos2x+a4sin2x,y_{p2}(x) = a_3 \cos 2x + a_4 \sin 2x,


where yp1y_{p1} has been multiplied by xx to account for cos2x\cos 2x in the complementary solution.

Summing up yp1y_{p1} and yp2y_{p2}, we obtain the particular solution ypy_p:


yp(x)=yp1(x)+yp2(x)=x(a1cos2x+a2sin2x)+a3cos2x+a4sin2x.y_p(x) = y_{p1}(x) + y_{p2}(x) = x(a_1 \cos 2x + a_2 \sin 2x) + a_3 \cos 2x + a_4 \sin 2x.


To solve this for unknown constants a1,a2,a3,a4a_1, a_2, a_3, a_4, substitute ypy_p into the initial equation:


yp+4yp=cos2x+cos4xy_p'' + 4y_p = \cos 2x + \cos 4x


and simplify:


4a3cos2x12a2cos4x4a1sin2x12a4sin4x=cos2x+cos4x.4a_3 \cos 2x - 12a_2 \cos 4x - 4a_1 \sin 2x - 12a_4 \sin 4x = \cos 2x + \cos 4x.


Equate the coefficients of cos2x\cos 2x on both sides of the equation:


4a3=14a_3 = 1


the coefficients of cos4x\cos 4x:


12a2=1,-12a_2 = 1,


the coefficients of sin2x\sin 2x:


4a1=0,-4a_1 = 0,


and the coefficients of sin4x\sin 4x:


12a4=0.-12a_4 = 0.


Solving the system, we get


a1=0,a2=112,a3=14,a4=0.a_1 = 0, \qquad a_2 = -\frac{1}{12}, \qquad a_3 = \frac{1}{4}, \qquad a_4 = 0.


Substitute these values into yp(x)y_p(x):


yp(x)=112cos4x+14xsin2x.y_p(x) = -\frac{1}{12} \cos 4x + \frac{1}{4} x \sin 2x.


Thus, the solution of our equation is


y(x)=yc(x)+yp(x)=112cos4x+14xsin2x+c1cos2x+c2sin2x.y(x) = y_c(x) + y_p(x) = -\frac{1}{12} \cos 4x + \frac{1}{4} x \sin 2x + c_1 \cos 2x + c_2 \sin 2x.


Answer.


y(x)=yc(x)+yp(x)=112cos4x+14xsin2x+c1cos2x+c2sin2x.y(x) = y_c(x) + y_p(x) = -\frac{1}{12} \cos 4x + \frac{1}{4} x \sin 2x + c_1 \cos 2x + c_2 \sin 2x.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS