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.
(D2−D−2)y=cos2x
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+PI .The standard approach is to find a solution y 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 D by m and equate it to zero .After that find PI and then substitute the value of CF and PI in y=CF+PI and hence we get the required solution.
When we have differential equation as
(Dn+a1Dn−1+.....+an)y=X
The general solution of the complementary function is written as,
CF=c1em1x+c2em2x where m1 and m2 are the roots of the auxiliary equation.
The general solution of the particular integral is written as,
PI=f(D)X
Complete answer:
We have given a second order differential equation as,
(D2−D−2)y=cos2x
where D=dxd −−−(a)
Now first of all, we will write the auxiliary equation of the given equation
For this replace D by m and equate to zero
Therefore, we get
m2−m−2=0
⇒(m+1)(m−2)=0
⇒m=−1, m=2
Now we will find complementary function
We know that
CF=c1em1x+c2em2x where m1 and m2 are the roots of the auxiliary equation.
Thus, CF=c1e−1x+c2e2x
CF=c1e−x+c2e2x −−−(i)
Now we will find the particular integral
We know that
PI=f(D)X
In the question X=cos2x
Therefore, we get
PI=f(D)cos2x
⇒PI=D2−D−2cos2x
Now, replace D2by −a2
Here, a=2
⇒D2=−4
Therefore, we get
⇒PI=−4−D−2cos2x
⇒PI=−6−Dcos2x
On rationalising, we get
⇒PI=D+6−cos2x×(D−6)(D−6)
⇒PI=D2−36D(−cos2x)+6cos2x
From equation (i) D=dxd
Therefore, we get
⇒PI=−4−362sin2x+6cos2x
⇒PI=−402sin2x+6cos2x
On separating the denominator, we get
⇒PI=−402sin2x+−406cos2x
⇒PI=−201sin2x−203cos2x −−−(ii)
Now we know that
the solution of any differential equation is the sum of complementary function and particular integral i.e., y=CF+PI
Using equation (i) and (ii) we get
y=c1e−x+c2e2x−201sin2x−203cos2x
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:
- when auxiliary equation has distinct roots, then CF=c1em1x+c2em2x
- when auxiliary equation has repeated roots, then CF=(c1x+c2)emx
- when auxiliary equation has complex roots of the form m=a±ιb , then CF=(c1cosbx+c2cosbx)eax