Question
Question: Differentiate the function w.r.t. x \[{x^x} - {2^{\sin \,\,x}}\]...
Differentiate the function w.r.t. x
xx−2sinx
Solution
Suppose the given value (xx−2sinx) into two variables. Thereafter, we will solve separately, by using differentiation of the function with respect to x.
Complete step by step solution:
Lety=xx−2sinx
Also, let xx=u and 2sinx=v
∴y=u−v
Differentiating both sides with respect tox.
⇒dxdy=dxdu−dxdv
First we will solve: u=xx
Taking logarithm on both sides, we obtain
logu=x log x
Differentiating both sides with respect tox, we obtain
u1dxdu=[logx×dxd(x)+x×dxd(logx)]
⇒dxdu=u[logx×1+x×x1dxd(x)]
dxdu=x2(logx+1) (∵u=x2)
v=2sinx
Taking logarithm on both the sides with respect to x, obtain
logv = sin x log 2
Differentiating both sides with respect to x we obtain
v1.dxdv=log2.dxdsinx (∴log2)is a constant term
⇒dxdv=vlog2cosx
⇒dxdv=2sinxcosxlog2
Therefore, adding the values of dxduanddxdv, we will get
∴dxdy=xx(1+logx)−2sinxcosxlog2
Note: To differentiate something means to take the derivative of that value. Taking the derivative of a function is the same as finding the slope at any point, so differentiating is just finding the slope.