Question
Question: Differentiate the function w.r.t x. \({x^{x\cos x}} + \dfrac{{{x^2} + 1}}{{{x^2} - 1}}\) ....
Differentiate the function w.r.t x.
xxcosx+x2−1x2+1 .
Solution
In this question remember to differentiate each function separately and use rules such as product rule which is given as; dxd(pqr)=qrdxdp+rpdxdq+qpdxdr and chain rule i.e. dxd[f(g(x))]=f′(g(x))×g′(x)(here f and g are two different function), using this information will help you to approach the solution.
Complete step-by-step answer:
According to the given information we have function xxcosx+x2−1x2+1
Lety=xxcosx+x2−1x2+1
And let u=xxcosx and v=x2−1x2+1
Now y = u + v
Differentiating both side with respect to x we get
dxdy=dxdu+dxdv (equation 1)
u=xxcosx
\Rightarrow $$$\log u = \log ({x^{x\cos x}})$$ \Rightarrow $$$\log u = x\cos x\log xDifferentiatingbothsideswithrespecttox,weobtain\dfrac{{d\left( {\log u} \right)}}{{dx}} = \dfrac{{d\left( {x\cos x\log x} \right)}}{{dx}}
After applying the product rule which is given as; $\dfrac{{d\left( {pqr} \right)}}{{dx}} = qr\dfrac{{dp}}{{dx}} + rp\dfrac{{dq}}{{dx}} + qp\dfrac{{dr}}{{dx}}$
$\dfrac{1}{u}\dfrac{{du}}{{dx}} = \dfrac{d}{{dx}}(x).\cos x.\log x + x\dfrac{d}{{dx}}(\cos x).\log x + x\cos x.\dfrac{d}{{dx}}(\log x)$
We know that $\dfrac{{d\left( x \right)}}{{dx}} = 1$, $\dfrac{d}{{dx}}\left( {\cos x} \right) = - \sin x$and $\dfrac{{d\left( {\log x} \right)}}{{dx}} = \dfrac{1}{x}$
$ \Rightarrow $ $\dfrac{{du}}{{dx}} = u\left[ {1.\cos x.\log x + x.( - \sin x)\log x + x\cos x.\dfrac{1}{x}} \right]$
$ \Rightarrow $ $\dfrac{{du}}{{dx}} = {x^{x\cos x}}(\cos x.\log x - x.\sin x.\log x + \cos x)$
$ \Rightarrow $ $\dfrac{{du}}{{dx}} = {x^{x\cos x}}\left[ {\cos x(1 + \log x) - x\sin x\log x} \right]$(equation 2)
$v = \dfrac{{{x^2} + 1}}{{{x^2} - 1}}$
Applying both sides, we get
$\log v = \log \left( {\dfrac{{{x^2} + 1}}{{{x^2} - 1}}} \right)$
Applying the quotient rule in the above equation i.e. $\log \left( {\dfrac{x}{y}} \right) = \log x - \log y$we get
$\log v = \log ({x^2} + 1) - \log ({x^2} - 1)$
Differentiating both sides with respect to x, we obtain \dfrac{1}{v}\dfrac{{dv}}{{dx}} = \dfrac{{d\left( {\log ({x^2} + 1)} \right)}}{{dx}} - \dfrac{{d\left( {\log ({x^2} - 1)} \right)}}{{dx}}
By applying the chain rule i.e. $\dfrac{d}{{dx}}\left[ {f\left( {g\left( x \right)} \right)} \right] = f'\left( {g\left( x \right)} \right) \times g'\left( x \right)$(here f and g are two different function) in the above equation we get \dfrac{1}{v}\dfrac{{dv}}{{dx}} = \left( {\dfrac{{d\left( {\log ({x^2} + 1)} \right)}}{{dx}}\dfrac{{d\left( {{x^2} + 1} \right)}}{{dx}}} \right) - \left( {\dfrac{{d\left( {\log ({x^2} - 1)} \right)}}{{dx}}\dfrac{{d\left( {{x^2} - 1} \right)}}{{dx}}} \right)$$
We know that dxd(logx)=x1and dxd(x2±1)=2x
Therefore, v1dxdv=x2+12x−x2−12x
dxdv=v[(x2+1)(x2−1)2x(x2−1)−2x(x2+1)]
dxdv=x2−1x2+1×[(x2+1)(x2−1)−4x]
dxdv=(x2−1)2−4x(equation 3)
Now substituting the values form (2) and (3) in the equation 1 er get
dxdy=xxcosx[cosx(1+logx)−xsinxlogx]−(x2−1)24x
Therefore, after differentiating this function xxcosx+x2−1x2+1with respect to x we get xxcosx[cosx(1+logx)−xsinxlogx]−(x2−1)24x.
Note: In the above solution we came across the term “function” which can be explained as relation between the provided inputs and the outputs of the given inputs such that each input is directly related to the one output. The representation of a function is given by supposing if there is a function “f” that belongs from X to Y. Examples of functions are logarithmic functions, bijective functions, trigonometric functions, binary functions, etc.