Ans: The given function is:
$xy=a{{e}^{x}}+b{{e}^{-x}}+{{x}^{2}}$
Take derivative on both side:
$\Rightarrow y+x\frac{dy}{dx}=a{{e}^{x}}-b{{e}^{-x}}+2x$
Take derivative on both side:
$\Rightarrow \frac{dy}{dx}+x\frac{{{d}^{2}}y}{d{{x}^{2}}}+\frac{dy}{dx}=a{{e}^{x}}+b{{e}^{-x}}+2$
$\Rightarrow x\frac{{{d}^{2}}y}{d{{x}^{2}}}+2\frac{dy}{dx}=a{{e}^{x}}+b{{e}^{-x}}+2$ ……(1)
The given differential equation is:
$x\frac{{{d}^{2}}y}{d{{x}^{2}}}+2\frac{dy}{dx}-xy+{{x}^{2}}-2=0$
Solving LHS:
Substitute $\text{x}\frac{{{\text{d}}^{\text{2}}}\text{y}}{\text{d}{{\text{x}}^{\text{2}}}}\text{+2}\frac{\text{dy}}{\text{dx}}$ from the result (1) and $\text{xy}$:
$\Rightarrow \left( x\frac{{{d}^{2}}y}{d{{x}^{2}}}+2\frac{dy}{dx} \right)-xy+{{x}^{2}}-2$
$\Rightarrow \left( a{{e}^{x}}+b{{e}^{-x}}+2 \right)-\left( a{{e}^{x}}+b{{e}^{-x}}+{{x}^{2}} \right)+{{x}^{2}}-2$
$\Rightarrow 2-{{x}^{2}}+{{x}^{2}}-2$
$\Rightarrow 0$
Thus LHS=RHS, the given function is the solution of the given differential equation.
$\text{y=}{{\text{e}}^{\text{x}}}\left( \text{acosx+bsinx} \right)\,\,\text{:}\,\frac{{{\text{d}}^{\text{2}}}\text{y}}{\text{d}{{\text{x}}^{\text{2}}}}\text{-2}\frac{\text{dy}}{\text{dx}}\text{+2y=0}$
Ans: The given function is:
$y={{e}^{x}}\left( a\cos x+b\sin x \right)$
Take derivative on both side:
$\Rightarrow \frac{dy}{dx}={{e}^{x}}\left( a\cos x+b\sin x \right)+{{e}^{x}}\left( -a\sin x+b\cos x \right)$
$\Rightarrow \frac{dy}{dx}={{e}^{x}}\left( \left( a+b \right)\cos x+\left( b-a \right)\sin x \right)$
Take derivative on both side:
$\Rightarrow \frac{{{d}^{2}}y}{d{{x}^{2}}}={{e}^{x}}\left( \left( a+b \right)\cos x+\left( b-a \right)\sin x \right)+{{e}^{x}}\left( -\left( a+b \right)\sin x+\left( b-a \right)\cos x \right)$
$\Rightarrow \frac{{{d}^{2}}y}{d{{x}^{2}}}={{e}^{x}}\left( \left( a+b+b-a \right)\cos x+\left( b-a-a-b \right)\sin x \right)$
$\Rightarrow \frac{{{d}^{2}}y}{d{{x}^{2}}}={{e}^{x}}\left( 2b\cos x-2a\sin x \right)$
The given differential equation is:
$\frac{{{d}^{2}}y}{d{{x}^{2}}}-2\frac{dy}{dx}+2y=0$
Solving LHS:
$\Rightarrow {{e}^{x}}\left( 2b\cos x-2a\sin x \right)-2{{e}^{x}}\left( \left( a+b \right)\cos x+\left( b-a \right)\sin x \right)+2y$
$\Rightarrow {{e}^{x}}\left( \left( 2b-2a-2b \right)\cos x+\left( -2a-2b+2a \right)\sin x \right)-2y$
$\Rightarrow {{e}^{x}}\left( -2a\cos x-2b\sin x \right)-2y$
$\Rightarrow -2{{e}^{x}}\left( a\cos x+b\sin x \right)-2y$
$\Rightarrow 0$
Thus LHS=RHS, the given function is the solution of the given differential equation.
$\text{y=x}\,\text{sin3x}\,\,\text{:}\,\frac{{{\text{d}}^{\text{2}}}\text{y}}{\text{d}{{\text{x}}^{\text{2}}}}\text{+9y-6cos3x=0}$
Ans: The given function is:
$y=x\sin 3x$
Take derivative on both side:
$\Rightarrow \frac{dy}{dx}=\sin 3x+3x\cos 3x$
Take derivative on both side:
$\Rightarrow \frac{{{d}^{2}}y}{d{{x}^{2}}}=3\cos 3x+3\left( \cos 3x+x\left( -3\sin 3x \right) \right)$
\[\Rightarrow \frac{{{d}^{2}}y}{d{{x}^{2}}}=3\cos 3x+3\cos 3x-9x\sin 3x\]
\[\Rightarrow \frac{{{d}^{2}}y}{d{{x}^{2}}}=6\cos 3x-9x\sin 3x\]
The given differential equation is:
$\frac{{{d}^{2}}y}{d{{x}^{2}}}+9y-6\cos 3x=0$
Solving LHS:
$\Rightarrow \frac{{{d}^{2}}y}{d{{x}^{2}}}+9y-6\cos 3x$
$\Rightarrow \left( 6\cos 3x-9x\sin 3x \right)+9\left( x\sin 3x \right)-6\cos 3x$
$\Rightarrow 6\cos 3x-9x\sin 3x+9x\sin 3x-6\cos 3x$
$\Rightarrow 0$
Thus LHS=RHS, the given function is the solution of the given differential equation.
${{\text{x}}^{\text{2}}}\text{=2}{{\text{y}}^{\text{2}}}\,\text{log y}\,\,\text{:}\left( {{\text{x}}^{\text{2}}}\text{+}{{\text{y}}^{\text{2}}} \right)\frac{\text{dy}}{\text{dx}}\text{-xy=0}$
Ans: The given function is:
${{x}^{2}}=2{{y}^{2}}\log y$
Take derivative on both side:
\[\Rightarrow 2x=2\left( 2y\log y+{{y}^{2}}\left( \frac{1}{y} \right) \right)\frac{dy}{dx}\]
\[\Rightarrow \frac{dy}{dx}=\frac{x}{\left( 2y\log y+y \right)}\]
Multiply numerator and denominator by $\text{y}$:
\[\Rightarrow \frac{dy}{dx}=\frac{xy}{\left( 2{{y}^{2}}\log y+{{y}^{2}} \right)}\]
\[\Rightarrow \frac{dy}{dx}=\frac{xy}{\left( {{x}^{2}}+{{y}^{2}} \right)}\]
The given differential equation is:
$\left( {{x}^{2}}+{{y}^{2}} \right)\frac{dy}{dx}-xy=0$
Solving LHS:
$\Rightarrow \left( {{x}^{2}}+{{y}^{2}} \right)\frac{dy}{dx}-xy$
$\Rightarrow \left( {{x}^{2}}+{{y}^{2}} \right)\left( \frac{xy}{{{x}^{2}}+{{y}^{2}}} \right)-xy$
$\Rightarrow xy-xy$
$\Rightarrow 0$
Thus LHS=RHS, the given function is the solution of the given differential equation.