Question
Question: If we have a differential equation \({y}''+9y=2{{x}^{2}}-5\) , How about the solution. \(\left( {{y}...
If we have a differential equation y′′+9y=2x2−5 , How about the solution. (yh=?,yp=?)
Solution
The above-given equation is the nonhomogeneous differential equation of second order. The right approach to this problem is by writing an auxiliary equation of the above-given function. We then find the values of yh and ypto find the general solution of the function.
Complete step-by-step solution:
The given equation in the above question is given by,
⇒y′′+9y=2x2−5
The homogeneous equation for the above-written equation is,
⇒y′′+9y=0
We need to write an auxiliary equation for the above equation,
An auxiliary equation is an equation that is written for all linear differential equations.
The auxiliary equation is the polynomial equation with coefficient as derivatives.
⇒m2+9=0
⇒m2=−9
⇒m=±(−3)
The values of m are purely imaginary which means that the roots of the given auxiliary equation are imaginary.
Roots of the auxiliary equation and its solutions:
1. If the roots of the auxiliary equation are real and repeated then the solution is of the form y=(Ax+B)eαx for the repeated root m=α.
2. If the roots of the auxiliary equation are real and distinct such as m=α1,α2.... then the solution is of the form y1=Aeα1x,y2=Beα2x,....
3. If the roots of the auxiliary equation are imaginary and are in the form of m=a±bi then the solution is of the form y=eax(Acos(bx)+Bsin(bx))
From the above,
The solution of the homogeneous equation y′′+9y=0 is
⇒y=e0x(Acos(3x)+Bsin(3x))
⇒y=(Acos(3x)+Bsin(3x))
Therefore, yh=(Acos(3x)+Bsin(3x))
Particular solution:
We find the solution of the non-homogeneous equation 2x2−5
The above equation is of the form y=ax2+bx+c
Differentiating the equation y,
⇒y′=2ax+b
Differentiating the above equation,
⇒y′′=2a
Substituting the values of y,y′′in the equation y′′+9y=2x2−5, we get,
⇒(2a)+9(ax2+bx+c)=2x2−5
Comparing the coefficients of x2,x,x0 on both sides, we get,
Coefficients of x2:
⇒9a=2
⇒a=92
Coefficients of x:
⇒9b=0
⇒b=0
Coefficients of x0:
⇒2a+9c=−5
Substitute the value of ‘a’ and then evaluate.
⇒2(92)+9c=−5
⇒9c=−5−2(92)
Now evaluate further.
⇒9c=−5−(94)
⇒9c=−949
⇒c=81−49
Therefore, yp=92x2−8149
The general solution is yh+yp
Hence, the general solution is Acos3x+Bsin3x+92x2−8149
Note: The general solution of the function is the sum of the complementary function and the particular solution. We should remember the solutions of auxiliary equations to solve the problem easily.