Solveeit Logo

Question

Question: If \(y=3\cos \left( \log x \right)+4\sin (\log x)\), show that \({{x}^{2}}\dfrac{{{d}^{2}}y}{d{{x}^{...

If y=3cos(logx)+4sin(logx)y=3\cos \left( \log x \right)+4\sin (\log x), show that x2d2ydx2+xdydx+y=0{{x}^{2}}\dfrac{{{d}^{2}}y}{d{{x}^{2}}}+x\dfrac{dy}{dx}+y=0

Explanation

Solution

Here from the given equation, first of all we will be differentiating the above equation with respect to x which will give us the first order derivative of the above equation that will be termed as dydx\dfrac{dy}{dx}. We will be using the product rule which is given by ddx[f(x)g(x)]=g(x)f(x)f(x)g(x)\dfrac{d}{dx}\left[ f\left( x \right)g\left( x \right) \right]=g(x)f'(x)-f(x)g'(x) for the second derivative that is termed as d2ydx2\dfrac{{{d}^{2}}y}{d{{x}^{2}}} .On substituting these values in the show that equation, we will be getting the left hand side to be equal to right hand side.

Complete step by step answer:
Now, the given equation is y=3cos(logx)+4sin(logx)y=3\cos \left( \log x \right)+4\sin (\log x)
We know that the chain rule of the equation for the two functions f(x)f(x) and g(x)g(x) is given by
ddx[f(g(x))]=f(g(x))g(x)\dfrac{d}{dx}\left[ f(g(x)) \right]=f'(g(x))g'(x)
We know that the general derivative of the function cosx\cos x is given by sinx-\sin x and logx\log x is given by 1x\dfrac{1}{x}.
On differentiating the above equation and applying chain rule with respect to xx , we get
dydx=3sin(logx)x+4cos(logx)x\dfrac{dy}{dx}=-\dfrac{3\sin \left( \log x \right)}{x}+\dfrac{4\cos (\log x)}{x}
Which can be further expressed as
y1=1x[3sin(logx)+4cos(logx)]......(1){{y}_{1}}=\dfrac{1}{x}\left[ -3\sin \left( \log x \right)+4\cos (\log x) \right]......\left( 1 \right)
We know that the product rule of derivative is given by ddx[f(x)g(x)]=g(x)f(x)f(x)g(x)\dfrac{d}{dx}\left[ f\left( x \right)g\left( x \right) \right]=g(x)f'(x)-f(x)g'(x)
Where f(x)f(x) is taken as 1x\dfrac{1}{x} and g(x)g(x) is taken as [3sin(logx)+4cos(logx)]\left[ -3\sin \left( \log x \right)+4\cos (\log x) \right].
So, on further differentiating equation (1)\left( 1 \right) and applying chain rule, we get the equation as
Again, further differentiating, we get the equation as
d2ydx2=d(1x)dx(3sin(logx)+4cos(logx))+1x(d(3sin(logx)+4cos(logx))dx) d2ydx2=[3sin(logx)+4cos(logx)]x2+1x[3cos(logx)1x4sin(logx)1x] d2ydx2=3sin(logx)4cos(logx)3cos(logx)4sin(logx)x2 \begin{aligned} & \dfrac{{{d}^{2}}y}{d{{x}^{2}}}=\dfrac{d\left( \dfrac{1}{x} \right)}{dx}\left( -3\sin \left( \log x \right)+4\cos \left( \log x \right) \right)+\dfrac{1}{x}\left( \dfrac{d\left( -3\sin \left( \log x \right)+4\cos \left( \log x \right) \right)}{dx} \right) \\\ & \dfrac{{{d}^{2}}y}{d{{x}^{2}}}=\dfrac{-\left[ -3\sin \left( \log x \right)+4\cos \left( \log x \right) \right]}{{{x}^{2}}}+\dfrac{1}{x}\left[ -3\cos \left( \log x \right)\dfrac{1}{x}-4\sin \left( \log x \right)\dfrac{1}{x} \right] \\\ & \dfrac{{{d}^{2}}y}{d{{x}^{2}}}=\dfrac{3\sin \left( \log x \right)-4\cos \left( \log x \right)-3\cos \left( \log x \right)-4\sin \left( \log x \right)}{{{x}^{2}}} \\\ \end{aligned}
Now reducing it further the equation becomes
d2ydx2=sin(logx)7cos(logx)x2\dfrac{{{d}^{2}}y}{d{{x}^{2}}}=\dfrac{-\sin (\log x)-7\cos (\log x)}{{{x}^{2}}}
Which can further be expressed as
y2=sin(logx)7cos(logx)x2{{y}_{2}}=\dfrac{-\sin (\log x)-7\cos (\log x)}{{{x}^{2}}}
Now the equation of LHS side can be written in short form as LHS=x2y2+xy1+yLHS={{x}^{2}}{{y}_{2}}+x{{y}_{1}}+y
Now substituting all the values, the equation becomes
LHS=x2(sin(logx)7cos(logx)x2)+x(3sin(logx)x+4cos(logx)x)+3cos(logx)+4sin(logx)LHS={{x}^{2}}\left( \dfrac{-\sin (\log x)-7\cos (\log x)}{{{x}^{2}}} \right)+x\left( -\dfrac{3\sin \left( \log x \right)}{x}+\dfrac{4\cos (\log x)}{x} \right)+3\cos \left( \log x \right)+4\sin (\log x)Multiplying the terms by opening the bracket, we get the equation as
LHS=sin(logx)7cos(logx)3sin(logx)+4cos(logx)+3cos(logx)+4sin(logx)LHS=-\sin (\log x)-7\cos (\log x)-3\sin (\log x)+4\cos (\log x)+3\cos (\log x)+4sin\left( \log x \right)
which can further be rearranged into
All the terms cancel out each other and we get a 0.
Hence LHS becomes equal to RHS.
Hence the solution is justified.

Note:
In this question we must be cautious in finding the derivatives and the student must thoroughly know the derivatives of the functions such as cos,sinandlog\cos ,\sin and\log functions. Further the student must be very careful in taking out the common terms to make the left hand side equal to zero. Also be careful with the signs used as mistakes can be committed if improper sign creeps in due to silly mistakes.