Question #60151

http://i1376.photobucket.com/albums/ah26/john1x96/3_zps6uj9z5tm.jpg

Expert's answer

Answer on Question #60151 – Math – Differential Equations

Question

Solve the following differential equation y+y=cos2xy'' + y = \cos^2 x.

Solution

The homogeneous second order linear differential equation is


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


It is a differential equation with constant coefficients.

The characteristic polynomial of the differential equation (1) is


r2+1=0.r^2 + 1 = 0.


There are two complex conjugate roots:


r1=i and r2=i.r_1 = i \text{ and } r_2 = -i.


Hence the general solution of the homogeneous equation (1) is


yh=C1cosx+C2sinx,y_h = C_1 \cos x + C_2 \sin x,


where C1,C2C_1, C_2 are arbitrary real constants.

Using power-reducing/half angle formulas cos2x=1+cos(2x)2\cos^2 x = \frac{1 + \cos(2x)}{2} equation y+y=cos2xy'' + y = \cos^2 x can be rewritten in the following form:


y+y=12+12cos(2x)y'' + y = \frac{1}{2} + \frac{1}{2} \cos(2x)


A particular solution of (2) will be sought in the form


yp=A+Bcos(2x)+Csin(2x),y_p = A + B \cos(2x) + C \sin(2x),


where A,B,CA, B, C are arbitrary real constants.

Differentiating (3) with respect to xx get


yp=2Bsin(2x)+2Ccos(2x)yp=4Bcos(2x)4Csin(2x)\begin{aligned} y_p' &= -2B \sin(2x) + 2C \cos(2x) \\ y_p'' &= -4B \cos(2x) - 4C \sin(2x) \end{aligned}


Substituting these derivatives in equation (2) get


4Bcos(2x)4Csin(2x)+A+Bcos(2x)+Csin(2x)=12+12cos(2x)-4B \cos(2x) - 4C \sin(2x) + A + B \cos(2x) + C \sin(2x) = \frac{1}{2} + \frac{1}{2} \cos(2x)


Equating the corresponding coefficients obtain


{A=123B=123C=0{A=12B=16C=0\left\{ \begin{array}{l} A = \frac{1}{2} \\ -3B = \frac{1}{2} \\ -3C = 0 \end{array} \right. \Rightarrow \left\{ \begin{array}{l} A = \frac{1}{2} \\ B = -\frac{1}{6} \\ C = 0 \end{array} \right.


Thus,


yp=1216cos(2x).y_p = \frac{1}{2} - \frac{1}{6} \cos(2x).


The general solution of the equation (2) is the sum of a particular solution ypy_p of the equation (2) and the general solution yhy_h of the homogeneous equation (1).

Therefore,


y=C1cosx+C2sinx+1216cos(2x),y = C_1 \cos x + C_2 \sin x + \frac{1}{2} - \frac{1}{6} \cos(2x),


where C1,C2C_1, C_2 are arbitrary real constants.

**Answer**: y=C1cosx+C2sinx+1216cos(2x)y = C_1 \cos x + C_2 \sin x + \frac{1}{2} - \frac{1}{6} \cos(2x).

www.AssignmentExpert.com


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