Solveeit Logo

Question

Question: Differentiate the following function with respect to x: \({{\left( \log x \right)}^{x}}+{{x}^{\log...

Differentiate the following function with respect to x:
(logx)x+xlogx{{\left( \log x \right)}^{x}}+{{x}^{\log x}}.

Explanation

Solution

To solve this problem we need to divide the given expression in two parts i.e. first (logx)x{{\left( \log x \right)}^{x}} and second is xlogx{{x}^{\log x}}. Now we will assume both the parts to be equal to some variable, say y then apply log on both the sides to solve it, after that we will differentiate both the parts separately and then we will combine the result to get the final result. We will assume both the parts to be equal to some variable, say y then apply log on both the sides to solve it. We will also be applying the chain rule and product rule to solve this question, the chain rule says, the derivative of
f(g(x)) = f'(g(x)).g'(x). and the product rule says: (fg)’ = f g’ + f’ g.

Complete step by step answer:
We have to differentiate,
(logx)x+xlogx{{\left( \log x \right)}^{x}}+{{x}^{\log x}} with respect to x,
First, we will divide the above expression in two parts first is (logx)x{{\left( \log x \right)}^{x}} and second is xlogx{{x}^{\log x}} and now we will suppose y1=(logx)x{{y}_{1}}={{\left( \log x \right)}^{x}} and y2=xlogx{{y}_{2}}={{x}^{\log x}},
We will now differentiate y1{{y}_{1}} first with respect to xx, as
y1=(logx)x{{y}_{1}}={{\left( \log x \right)}^{x}}
Taking log on both sides, we get
log(y1)=log(logx)x\log \left( {{y}_{1}} \right)=\log {{\left( \log x \right)}^{x}}
And we know that logxn=nlogx\log {{x}^{n}}=n\log x,
log(y1)=xlog(logx)\log \left( {{y}_{1}} \right)=x\log \left( \log x \right)
Differentiating both sides with respect to x, we get
dlog(y1)dx=d(xlog(logx))dx\dfrac{d\log \left( {{y}_{1}} \right)}{dx}=\dfrac{d\left( x\log \left( \log x \right) \right)}{dx}
Now we will apply chain rule as well as product rule on the RHS of the above equation,
According to the chain rule the derivative of
f(g(x)) = f'(g(x)).g'(x).
and according to the product rule, (fg)’ = f g’ + f’ g,
so using the above properties, we get
1y1dy1dx=x.1logx.1x+log(logx)\dfrac{1}{{{y}_{1}}}\dfrac{d{{y}_{1}}}{dx}=x.\dfrac{1}{\log x}.\dfrac{1}{x}+\log \left( \log x \right)

& \dfrac{d{{y}_{1}}}{dx}={{y}_{1}}\left( \dfrac{1}{\log x}+\log \left( \log x \right) \right) \\\ & \dfrac{d{{y}_{1}}}{dx}={{\left( \log x \right)}^{x}}\left( \dfrac{1}{\log x}+\log \left( \log x \right) \right) \\\ \end{aligned}$$ Now we will differentiate ${{y}_{2}}$ first with respect to $x$, as ${{y}_{2}}={{x}^{\log x}}$ Taking log on both sides, we get $\log \left( {{y}_{2}} \right)=\log \left( {{x}^{\log x}} \right)$ And we know that $\log {{x}^{n}}=n\log x$, $\begin{aligned} & \log \left( {{y}_{2}} \right)=\log \left( {{x}^{\log x}} \right) \\\ & \log \left( {{y}_{2}} \right)=\log x.\log \left( x \right) \\\ & \log \left( {{y}_{2}} \right)={{\left( \log x \right)}^{2}} \\\ \end{aligned}$ Differentiating both sides with respect to x and applying chain rule on RHS, we get $$\begin{aligned} & \dfrac{d\left( \log {{y}_{2}} \right)}{dx}=\dfrac{d\left( {{\left( \log x \right)}^{2}} \right)}{dx} \\\ & \dfrac{1}{{{y}_{2}}}\dfrac{d{{y}_{2}}}{dx}=2\log x.\dfrac{1}{x} \\\ \end{aligned}$$ $$\begin{aligned} & \dfrac{d{{y}_{2}}}{dx}={{y}_{2}}\times \left( 2\log x.\dfrac{1}{x} \right) \\\ & \dfrac{d{{y}_{2}}}{dx}={{x}^{\log x}}\times \left( 2\log x.\dfrac{1}{x} \right) \\\ \end{aligned}$$ Now we know that, $\dfrac{d\left( {{\left( \log x \right)}^{x}}+{{x}^{\log x}} \right)}{dx}=\dfrac{d{{y}_{1}}}{dx}+\dfrac{d{{y}_{2}}}{dx}$ Hence we get, $\begin{aligned} & \dfrac{d\left( {{\left( \log x \right)}^{x}}+{{x}^{\log x}} \right)}{dx}={{\left( \log x \right)}^{x}}\left( x.\dfrac{1}{\log x}+\log \left( \log x \right) \right)+{{x}^{\log x}}.\left( 2\log x.\dfrac{1}{x} \right) \\\ & \\\ \end{aligned}$ **Above expression is our required answer.** **Note:** While solving questions for differentiation which involves $${{\left( {{f}_{1}}\left( x \right) \right)}^{{{f}_{2}}\left( x \right)}}$$ (where ${{f}_{1\,}}\,and\,{{f}_{2}}$ are any two functions of $x$ always remember that these type of questions can be easily solved by taking log on both sides of the equation. And also read and learn basic properties of logarithmic functions in order to solve problems involving them.