
Find $\dfrac{{dy}}{{dx}}$, when $y = {x^x} - {2^{\sin x}}$.
Answer
581.1k+ views
Hint: Let $u = {x^x}$ and $v = {2^{\sin x}}$. Take logarithm of u and v. Compute \[\dfrac{{du}}{{dx}}\] and \[\dfrac{{dv}}{{dx}}\].
Then use $\dfrac{{dy}}{{dx}} = \dfrac{{du}}{{dx}} - \dfrac{{dv}}{{dx}}$ to get the answer.
Complete step by step solution:
Given that $y = {x^x} - {2^{\sin x}}$
We have to find the derivative of y with respect to x.
Let$u = {x^x}$ and $v = {2^{\sin x}}$
Then $y = u - v$
We will first differentiate u and v with respect to x.
Now consider $u = {x^x}$.
Taking log on both the sides,
$
\log u = \log {x^x} \\
\Rightarrow \log u = x\log x.......(1) \\
$
Here we used the property of logarithm, $\log {a^b} = b\log a$
Differentiate (1) with respect to x on both the sides
$
\dfrac{{d(\log u)}}{{dx}} = \dfrac{{d(x\log x)}}{{dx}} \\
\Rightarrow \dfrac{1}{u}\dfrac{{du}}{{dx}} = (x \times \dfrac{1}{x} + \log x \times 1) = 1 + \log x \\
\Rightarrow \dfrac{{du}}{{dx}} = u(1 + \log x) \\
$
Now, substitute the value of u.
$\dfrac{{du}}{{dx}} = {x^x}(1 + \log x).....(A)$
Consider $v = {2^{\sin x}}$
Taking log on both the sides,
\[
\log v = \log ({2^{\sin x}}) \\
\Rightarrow \log v = \sin x(\log 2)......(2) \\
\]
Here $\log 2$is a constant.
Differentiate (2) with respect to x on both the sides
\[
\dfrac{{d(\log v)}}{{dx}} = \dfrac{{d(\sin x(\log 2))}}{{dx}} \\
\Rightarrow \dfrac{1}{v}\dfrac{{dv}}{{dx}} = \log 2\dfrac{{d(\sin x)}}{{dx}} = \log 2(\cos x) \\
\Rightarrow \dfrac{{dv}}{{dx}} = v(\log 2)(\cos x) \\
\]
Now, substitute the value of v.
\[\dfrac{{dv}}{{dx}} = {2^{\sin x}}(\log 2)(\cos x)....(B)\]
Now, $y = u - v$
Differentiate with respect to x on both the sides
$\dfrac{{dy}}{{dx}} = \dfrac{{du}}{{dx}} - \dfrac{{dv}}{{dx}}$
Using (A) and (B), we get
$\dfrac{{dy}}{{dx}} = {x^x}(1 + \log x) - {2^{\sin x}}(\log 2)(\cos x)$ which is the required answer.
Note: Whenever we have two functions given like in this question,make sure to find the derivative of each of the function and separately and then add/subtract both the derivatives.Do not solve it directly
Then use $\dfrac{{dy}}{{dx}} = \dfrac{{du}}{{dx}} - \dfrac{{dv}}{{dx}}$ to get the answer.
Complete step by step solution:
Given that $y = {x^x} - {2^{\sin x}}$
We have to find the derivative of y with respect to x.
Let$u = {x^x}$ and $v = {2^{\sin x}}$
Then $y = u - v$
We will first differentiate u and v with respect to x.
Now consider $u = {x^x}$.
Taking log on both the sides,
$
\log u = \log {x^x} \\
\Rightarrow \log u = x\log x.......(1) \\
$
Here we used the property of logarithm, $\log {a^b} = b\log a$
Differentiate (1) with respect to x on both the sides
$
\dfrac{{d(\log u)}}{{dx}} = \dfrac{{d(x\log x)}}{{dx}} \\
\Rightarrow \dfrac{1}{u}\dfrac{{du}}{{dx}} = (x \times \dfrac{1}{x} + \log x \times 1) = 1 + \log x \\
\Rightarrow \dfrac{{du}}{{dx}} = u(1 + \log x) \\
$
Now, substitute the value of u.
$\dfrac{{du}}{{dx}} = {x^x}(1 + \log x).....(A)$
Consider $v = {2^{\sin x}}$
Taking log on both the sides,
\[
\log v = \log ({2^{\sin x}}) \\
\Rightarrow \log v = \sin x(\log 2)......(2) \\
\]
Here $\log 2$is a constant.
Differentiate (2) with respect to x on both the sides
\[
\dfrac{{d(\log v)}}{{dx}} = \dfrac{{d(\sin x(\log 2))}}{{dx}} \\
\Rightarrow \dfrac{1}{v}\dfrac{{dv}}{{dx}} = \log 2\dfrac{{d(\sin x)}}{{dx}} = \log 2(\cos x) \\
\Rightarrow \dfrac{{dv}}{{dx}} = v(\log 2)(\cos x) \\
\]
Now, substitute the value of v.
\[\dfrac{{dv}}{{dx}} = {2^{\sin x}}(\log 2)(\cos x)....(B)\]
Now, $y = u - v$
Differentiate with respect to x on both the sides
$\dfrac{{dy}}{{dx}} = \dfrac{{du}}{{dx}} - \dfrac{{dv}}{{dx}}$
Using (A) and (B), we get
$\dfrac{{dy}}{{dx}} = {x^x}(1 + \log x) - {2^{\sin x}}(\log 2)(\cos x)$ which is the required answer.
Note: Whenever we have two functions given like in this question,make sure to find the derivative of each of the function and separately and then add/subtract both the derivatives.Do not solve it directly
Recently Updated Pages
A man running at a speed 5 ms is viewed in the side class 12 physics CBSE

State and explain Hardy Weinbergs Principle class 12 biology CBSE

Which of the following statements is wrong a Amnion class 12 biology CBSE

Two Planoconcave lenses 1 and 2 of glass of refractive class 12 physics CBSE

The compound 2 methyl 2 butene on reaction with NaIO4 class 12 chemistry CBSE

Bacterial cell wall is made up of A Cellulose B Hemicellulose class 12 biology CBSE

Trending doubts
What are the major means of transport Explain each class 12 social science CBSE

Which are the Top 10 Largest Countries of the World?

Draw a labelled sketch of the human eye class 12 physics CBSE

Explain sex determination in humans with line diag class 12 biology CBSE

The pH of the pancreatic juice is A 64 B 86 C 120 D class 12 biology CBSE

Give 10 examples of unisexual and bisexual flowers

