Answer on Question#38806 - Math - Differential Calculus
Question: Solve the following Ordinary Differential Equation:
y′′+4y=2cosxcos3x
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.
Assume the solution will be proportional to eλx for some constant λ and substitute y(x)=eλx into the differential equation:
(eλx)′′+4eλx=0λ2eλx+4eλx=0
Factor out eλx:
(λ2+4)eλx=0.
Since eλx=0 for any finite λ, the zeros must come from the polynomial:
λ2+4=0.
From this, we can find λ:
λ1=2i,λ2=−2i.
These roots give us two complementary solutions:
y1(x)=c1e2ix,y2(x)=c2e−2ix,
Where c1 and c2 are arbitrary constants.
Adding these solutions, we obtain the complementary solution of our equation:
yc(x)=y1(x)+y2(x)=c1e2ix+c2e−2ix.
This solution can be written in a different way using Euler's identity ea+ib=ea(cosb+isinb):
yc(x)=c1(cos2x+isin2x)+c2(cos2x−isin2x).
Regrouping the terms, we get
yc(x)=(c1+c2)cos2x+i(c1−c2)sin2x.
Since c1 and c2 are arbitrary constants, we can redefine c1+c2 as c1 and i(c1−c2) as c2:
yc(x)=c1cos2x+c2sin2x.
Let us now find the particular solution by the method of undetermined coefficients.
To do this, note that
2cosxcos3x=2⋅21⋅cos(3x−x)+cos(3x+x)=cos2x+cos4x,
so we will be solving the equation
y′′+4y=cos2x+cos4x.
The particular solution will be the sum of particular solutions to two equations:
y′′+4y=cos2x,y′′+4y=cos4x.
These solutions are of the form
yp1(x)=x(a1cos2x+a2sin2x),yp2(x)=a3cos2x+a4sin2x,
where yp1 has been multiplied by x to account for cos2x in the complementary solution.
Summing up yp1 and yp2, we obtain the particular solution yp:
yp(x)=yp1(x)+yp2(x)=x(a1cos2x+a2sin2x)+a3cos2x+a4sin2x.
To solve this for unknown constants a1,a2,a3,a4, substitute yp into the initial equation:
yp′′+4yp=cos2x+cos4x
and simplify:
4a3cos2x−12a2cos4x−4a1sin2x−12a4sin4x=cos2x+cos4x.
Equate the coefficients of cos2x on both sides of the equation:
4a3=1
the coefficients of cos4x:
−12a2=1,
the coefficients of sin2x:
−4a1=0,
and the coefficients of sin4x:
−12a4=0.
Solving the system, we get
a1=0,a2=−121,a3=41,a4=0.
Substitute these values into yp(x):
yp(x)=−121cos4x+41xsin2x.
Thus, the solution of our equation is
y(x)=yc(x)+yp(x)=−121cos4x+41xsin2x+c1cos2x+c2sin2x.
Answer.
y(x)=yc(x)+yp(x)=−121cos4x+41xsin2x+c1cos2x+c2sin2x.