The general solution of (D2+4)y=cos2x is given by y=c1cos2x + c2sin2x + (1+xsin2x)/8. Lets learn how to solve (D^2+4)y=cos^2x. As D2 = d2/dx2, the differential equation (D2+4)y=cos2x can also be written as follows: d2y/dx2 + 4y = cos2x.
Solve (D2+4)y=cos^2x
Question: Solve the equation $\dfrac{d^2y}{dx^2} + 4y = \cos^2x$.
Solution:
Letting D2 = d2/dx2, we can rewrite the given differential equation as follows:
(D2+4)y = cos2x
[Complementary Function (CF)]:
The auxiliary equation is given by the solution of (D2+4)y = 0.
Let y=emx be a solution.
Then Dy = dy/dx = memx and D2y = d2y/dx2 = m2emx
So from (D2+4)y = 0, we obtain that
(m2+4)emx = 0
As emx is never 0, we must have that
m2+4 = 0
⇒ m2 = -4
Taking square root on both sides,
m = $\pm \sqrt{-4}$
⇒ m = $\pm 2i$
Therefore, CF = c1cos2x + c2sin2x where c1 and c2 are arbitrary constants.
[Particular Integral (PI)]:
Using the following trigonometric identity 2cos2x = 1+cos2x ⇒ cos2x = $\dfrac{1+\cos 2x}{2}$, the particular integral is given by
$\dfrac{1}{D^2+4}\cos^2x$
= $\dfrac{1}{2} \dfrac{1}{D^2+4}(1+\cos2x)$
= $\dfrac{1}{2} \dfrac{1}{D^2+4} 1+ \dfrac{1}{2} \dfrac{1}{D^2+4} \cos2x$
Note: Replacing D2 = -a2 = -22, we have D2+4 = -22+4 = 0. Thus we cannot compute 1/(D2+4) cos2x by usual method. |
= $\dfrac{1}{2\cdot 4} \left( 1+\dfrac{D^2}{4} \right)^{-1} 1$ $+ \dfrac{1}{2} \cdot x \dfrac{1}{\frac{d}{dD}(D^2+4)} \cos2x$
= $\dfrac{1}{8} \left( 1-\dfrac{D^2}{4}+(\dfrac{D^2}{4})^2-\cdots \right) 1$ $+ \dfrac{1}{2} \cdot x\dfrac{1}{2D} \cos2x$
= $\dfrac{1}{8}+ \dfrac{x}{4}\dfrac{1}{D} \cos2x$
= $\dfrac{1}{8} + \dfrac{x}{4}\displaystyle \int \cos2x~dx$
= $\dfrac{1}{8} + \dfrac{x \sin 2x}{8}$
= $\dfrac{1}{8} + \dfrac{x \sin 2x}{8}$
∴ Particular Integral of (D2+4)y=cos2x is equal to PI = $\dfrac{1}{8} + \dfrac{x \sin 2x}{8}$.
General Solution: So the general solution of (D2+4)y=cos2x is given by
y = CF + PI
⇒ y = c1cos2x + c2sin2x $+ \dfrac{1+x \sin 2x}{8}$.
Hence, y=c1cos2x + c2sin2x + (1+xsin2x)/8 is the solution of (D2+4)y=cos2x, where c1 and c2 are arbitrary constants of integrals.
Also Study:
Solve (D2+4)y=sin2x | Solve (D2+4)y=sin2x |
Solve (D2+4)y=cos2x | Solve dy/dx = ex+y |
Solve dy/dx = sin(x+y) | Solve dy/dx = cos(x+y) |
FAQs
Q1: What is the solution of d2y/dx2 + 4y = sin^2x?
Answer: The general solution of d2y/dx2 + 4y = sin^2x is equal to y=c1cos2x + c2sin2x + (1+xsin2x)/8 where c1 and c2 are arbitrary constants.