Question
Question: Find \(\dfrac{{dy}}{{dx}}\), when \(y = {x^x} - {2^{\sin x}}\)....
Find dxdy, when y=xx−2sinx.
Solution
Let u=xx and v=2sinx. Take logarithm of u and v. Compute dxdu and dxdv.
Then use dxdy=dxdu−dxdv to get the answer.
Complete step by step solution:
Given that y=xx−2sinx
We have to find the derivative of y with respect to x.
Letu=xx and v=2sinx
Then y=u−v
We will first differentiate u and v with respect to x.
Now consider u=xx.
Taking log on both the sides,
logu=logxx ⇒logu=xlogx.......(1)
Here we used the property of logarithm, logab=bloga
Differentiate (1) with respect to x on both the sides
dxd(logu)=dxd(xlogx) ⇒u1dxdu=(x×x1+logx×1)=1+logx ⇒dxdu=u(1+logx)
Now, substitute the value of u.
dxdu=xx(1+logx).....(A)
Consider v=2sinx
Taking log on both the sides,
Here log2is a constant.
Differentiate (2) with respect to x on both the sides
Now, substitute the value of v.
dxdv=2sinx(log2)(cosx)....(B)
Now, y=u−v
Differentiate with respect to x on both the sides
dxdy=dxdu−dxdv
Using (A) and (B), we get
dxdy=xx(1+logx)−2sinx(log2)(cosx) 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