Question
Question: In each of the following examples verify that the given function is a solution of the corresponding ...
In each of the following examples verify that the given function is a solution of the corresponding differential equation.
(i) y=c1sinx+c2cosx; dx2d2y+y=0.
(ii) ysecx=tanx+c; dxdy+ytanx=secx.
Solution
Hint: In this question it is given that whether the functions y=c1sinx+c2cosx and ysecx=tanx+c satisfies the given differential equations or not, so for finding solution we have to take the given function and have to differentiate both side with respect to ‘x’ and if the required differential equation is of second order then we have to differentiate that function twice.
Complete step-by-step solution:
(i) Given function,
y=c1sinx+c2cosx …………….equation (1)
Now differentiating both of the side of the above function w.r.t ‘x’ we get,
dxdy=dxd(c1sinx+c2cosx)
⇒dxdy=dxd(c1sinx)+dxd(c2cosx)
⇒dxdy=c1dxd(sinx)+c2dxd(cosx)
⇒dxdy=c1cosx+c2(−sinx)
[ since we know that dxd(sinx)=cosx and dxd(cosx)=−sinx]
⇒dxdy=c1cosx−c2sinx ………...equation (2)
Now again differentiating equation (2) w.r.t ‘x’ we get,
dx2d2y=dxd(c1cosx−c2sinx)
⇒dx2d2y=dxd(c1cosx)−dxd(c2sinx)
⇒dx2d2y=c1dxd(cosx)−c2dxd(sinx)
⇒dx2d2y=c1(−sinx)−c2(cosx)
⇒dx2d2y=−c1sinx−c2cosx
⇒dx2d2y=−(c1sinx+c2cosx)
⇒dx2d2y=−y [by using equation (1)]
⇒dx2d2y+y=0
Hence, we can say that the given function y=c1sinx+c2cosx is the solution of the given differential equation dx2d2y+y=0.
(ii) Given function,
ysecx=tanx+c …………..equation (3)
Now differentiating both of the side of the above function w.r.t ‘x’ we get,
dxd(ysecx)=dxd(tanx+c)
Since as we know that, dxd(uv)=udxdv+vdxdu, where u and v are the function of x, so by using the above formula,we can write,
ydxd(secx)+secxdxdy=dxd(tanx)+dxd(c)
⇒y(secxtanx)+secxdxdy=sec2x
Now taking secx common from both side of the equation and cancelling with each other, we get,
ytanx+dxdy=secx
⇒dxdy+ytanx=secx
Hence, we can say that the given function ysecx=tanx+c is the solution of the given differential equation dxdy+ytanx=secx.
Note: While solving this type of question you have to know the procedure that you have to transform a normal equation into a differential equation, and if the obtained differential equation matches with the given differential equation then we are able to say that the given function is the solution of obtained differential equations.