Solveeit Logo

Question

Question: Solve the differential equation by using CF and PI. \[\left( {{D^2} - D - 2} \right)y = \cos 2x\]...

Solve the differential equation by using CF and PI.
(D2D2)y=cos2x\left( {{D^2} - D - 2} \right)y = \cos 2x

Explanation

Solution

In this particular question, we will use the concept that the solution of any differential equation is the sum of complementary function and particular integral i.e., y=CF+PIy = CF + PI .The standard approach is to find a solution yy of the homogeneous equation is first find CF by looking at the Auxiliary equation, which is the quadratic equation that is obtained from the differential equation by replacing DD by mm and equate it to zero .After that find PI and then substitute the value of CF and PI in y=CF+PIy = CF + PI and hence we get the required solution.
When we have differential equation as
(Dn+a1Dn1+.....+an)y=X\left( {{D^n} + {a_1}{D^{n - 1}} + ..... + {a_n}} \right)y = X
The general solution of the complementary function is written as,
CF=c1em1x+c2em2xCF = {c_1}{e^{{m_1}x}} + {c_2}{e^{{m_2}x}} where m1{m_1} and m2{m_2} are the roots of the auxiliary equation.
The general solution of the particular integral is written as,
PI=Xf(D)PI = \dfrac{X}{{f\left( D \right)}}

Complete answer:
We have given a second order differential equation as,
(D2D2)y=cos2x\left( {{D^2} - D - 2} \right)y = \cos 2x
where D=ddx (a)D = \dfrac{d}{{dx}}{\text{ }} - - - \left( a \right)
Now first of all, we will write the auxiliary equation of the given equation
For this replace DD by mm and equate to zero
Therefore, we get
m2m2=0{m^2} - m - 2 = 0
(m+1)(m2)=0\Rightarrow \left( {m + 1} \right)\left( {m - 2} \right) = 0
m=1, m=2\Rightarrow m = - 1,{\text{ }}m = 2
Now we will find complementary function
We know that
CF=c1em1x+c2em2xCF = {c_1}{e^{{m_1}x}} + {c_2}{e^{{m_2}x}} where m1{m_1} and m2{m_2} are the roots of the auxiliary equation.
Thus, CF=c1e1x+c2e2xCF = {c_1}{e^{ - 1x}} + {c_2}{e^{2x}}
CF=c1ex+c2e2x (i)CF = {c_1}{e^{ - x}} + {c_2}{e^{2x}}{\text{ }} - - - \left( i \right)
Now we will find the particular integral
We know that
PI=Xf(D)PI = \dfrac{X}{{f\left( D \right)}}
In the question X=cos2xX = \cos 2x
Therefore, we get
PI=cos2xf(D)PI = \dfrac{{\cos 2x}}{{f\left( D \right)}}
PI=cos2xD2D2\Rightarrow PI = \dfrac{{\cos 2x}}{{{D^2} - D - 2}}
Now, replace D2{D^2}by a2 - {a^2}
Here, a=2a = 2
D2=4\Rightarrow {D^2} = - 4
Therefore, we get
PI=cos2x4D2\Rightarrow PI = \dfrac{{\cos 2x}}{{ - 4 - D - 2}}
PI=cos2x6D\Rightarrow PI = \dfrac{{\cos 2x}}{{ - 6 - D}}
On rationalising, we get
PI=cos2xD+6×(D6)(D6)\Rightarrow PI = \dfrac{{ - \cos 2x}}{{D + 6}} \times \dfrac{{\left( {D - 6} \right)}}{{\left( {D - 6} \right)}}
PI=D(cos2x)+6cos2xD236\Rightarrow PI = \dfrac{{D\left( { - \cos 2x} \right) + 6\cos 2x}}{{{D^2} - 36}}
From equation (i)\left( i \right) D=ddxD = \dfrac{d}{{dx}}
Therefore, we get
PI=2sin2x+6cos2x436\Rightarrow PI = \dfrac{{2\sin 2x + 6\cos 2x}}{{ - 4 - 36}}
PI=2sin2x+6cos2x40\Rightarrow PI = \dfrac{{2\sin 2x + 6\cos 2x}}{{ - 40}}
On separating the denominator, we get
PI=2sin2x40+6cos2x40\Rightarrow PI = \dfrac{{2\sin 2x}}{{ - 40}} + \dfrac{{6\cos 2x}}{{ - 40}}
PI=120sin2x320cos2x (ii)\Rightarrow PI = - \dfrac{1}{{20}}\sin 2x - \dfrac{3}{{20}}\cos 2x{\text{ }} - - - \left( {ii} \right)
Now we know that
the solution of any differential equation is the sum of complementary function and particular integral i.e., y=CF+PIy = CF + PI
Using equation (i)\left( i \right) and (ii)\left( {ii} \right) we get
y=c1ex+c2e2x120sin2x320cos2xy = {c_1}{e^{ - x}} + {c_2}{e^{2x}} - \dfrac{1}{{20}}\sin 2x - \dfrac{3}{{20}}\cos 2x
Hence, we get the required solution of the differential equation.

Note:
Note that the given equation is a second order non-homogeneous differential equation. You can also be provided with differential equations of order 3 or 4 and in such cases also you have to follow the same procedure.
Some other formulas of CF:

  1. when auxiliary equation has distinct roots, then CF=c1em1x+c2em2xCF = {c_1}{e^{{m_1}x}} + {c_2}{e^{{m_2}x}}
  2. when auxiliary equation has repeated roots, then CF=(c1x+c2)emxCF = \left( {{c_1}x + {c_2}} \right){e^{mx}}
  3. when auxiliary equation has complex roots of the form m=a±ιbm = a \pm \iota b , then CF=(c1cosbx+c2cosbx)eaxCF = \left( {{c_1}\cos bx + {c_2}\cos bx} \right){e^{ax}}