Solveeit Logo

Question

Question: Show that \[y = A\cos nx + B\sin nx\], is a solution of the differential equation: \(\dfrac{{{d^2}y}...

Show that y=Acosnx+Bsinnxy = A\cos nx + B\sin nx, is a solution of the differential equation: d2ydx2+n2y=0\dfrac{{{d^2}y}}{{d{x^2}}} + {n^2}y = 0.

Explanation

Solution

We see that the given differential equation is the second order differential equation. It means that we differentiate the equation y=Acosnx+Bsinnxy = A\cos nx + B\sin nx two times to obtain the second order differential equations. The differentiation is a method of finding a function that generates the rate of change between one variable and another variable. In this equation y=Acosnx+Bsinnxy = A\cos nx + B\sin nx, y is the dependent variable and x is the independent variable.

Complete step by step solution:
The equation given in the problem is as follows.
y=Acosnx+Bsinnxy = A\cos nx + B\sin nx.
We can differentiate the above equation with respect to x by using Chain rule.
ddx(y)=ddx(Acosnx+Bsinnx) dydx=Asinnx(ddx(nx))+Bcosnx(ddxnx) =nAsinnx+Bnsinnx\dfrac{d}{{dx}}\left( y \right) = \dfrac{d}{{dx}}\left( {A\cos nx + B\sin nx} \right)\\\ \dfrac{{dy}}{{dx}} = - A\sin nx\left( {\dfrac{d}{{dx}}\left( {nx} \right)} \right) + B\cos nx\left( {\dfrac{d}{{dx}}nx} \right)\\\ = - nA\sin nx + Bn\sin nx
The required differential equation needs the second order of differential equation therefore, we will again differentiate the above equation with respect to x.
d2ydx2=Ancosnx(ddx(nx))+Bnsinnx(ddxnx) =n2AcosnxBn2sinnx =n2(Acosnx+Bsinnx)\dfrac{{{d^2}y}}{{d{x^2}}} = - An\cos nx\left( {\dfrac{d}{{dx}}\left( {nx} \right)} \right) + Bn\sin nx\left( {\dfrac{d}{{dx}}nx} \right)\\\ = - {n^2}A\cos nx - B{n^2}\sin nx\\\ = - {n^2}\left( {A\cos nx + B\sin nx} \right)
We know that y=Acosnx+Bsinnxy = A\cos nx + B\sin nx which can be used in the above equation. So, substitute the value of (Acosnx+Bsinnx)\left( {A\cos nx + B\sin nx} \right) with y in the above expression.
d2ydx2=n2(y) d2ydx2+n2y=0\dfrac{{{d^2}y}}{{d{x^2}}} = - {n^2}\left( y \right)\\\ \Rightarrow \dfrac{{{d^2}y}}{{d{x^2}}} + {n^2}y = 0

Hence, the above result proves the required equation is d2ydx2+n2y=0\dfrac{{{d^2}y}}{{d{x^2}}} + {n^2}y = 0. Thus, it is proved that y=Acosnx+Bsinnxy = A\cos nx + B\sin nx is a solution of the differential equation: d2ydx2+n2y=0\dfrac{{{d^2}y}}{{d{x^2}}} + {n^2}y = 0.

Additional Information:
A differential equation is like an equation of dependent terms differentiated to the different orders. There are a lot of ways of solving such types of equations.

Note:
Make sure to use proper chain rules while doing the differentiation. You should know the basic formula of the trigonometry such as the differential of sinx\sin x is ddx(sinx)=cosx\dfrac{d}{{dx}}\left( {\sin x} \right) = \cos x and the differential of cosx\cos x is ddx(cosx)=sinx\dfrac{d}{{dx}}\left( {\cos x} \right) = - \sin x. Also don’t get confused with the process of differentiation and the process of the integration.