For a function that is a sum of two variable-exponent terms, we cannot use the standard power rule or exponential rule directly. Instead, we rewrite each term using the identity ab=ebloga, then differentiate term-by-term using the product rule and chain rule. The final derivative is dxdy=xsinx(xsinx+cosxlogx)+(sinx)cosx(sinxcos2x−sinxlog(sinx)).
The problem asks for dxdy where y=xsinx+(sinx)cosx. At first glance, this looks like a sum of two power functions, but the exponents are not constants — they are functions of x. That means neither the standard power rule (dxdxn=nxn−1) nor the exponential rule (dxdax=axloga) applies directly. Each term has the variable in both the base and the exponent.
The technique that handles this is logarithmic differentiation — or equivalently, rewriting each term as esomething and then differentiating. The idea is simple: for any positive base f(x) and any real exponent g(x), we have f(x)g(x)=eg(x)logf(x). This turns the problem into differentiating a composition of functions, which we can handle with the chain rule and product rule.
Let’s do it step by step.
- Rewrite the function
Since both x and sinx are positive for the relevant domain (we assume x>0 and sinx>0 for the expression to be real), we can write:
y=esinx⋅logx+ecosx⋅log(sinx)
-
Differentiate term by term
Let u=esinxlogx and v=ecosxlog(sinx), so y=u+v and dxdy=u′+v′.
-
Find u′
For u=esinxlogx, the derivative is:
u′=esinxlogx⋅dxd(sinxlogx)
The factor esinxlogx is just xsinx, so:
u′=xsinx⋅dxd(sinxlogx)
Now differentiate sinxlogx using the product rule:
dxd(sinxlogx)=cosx⋅logx+sinx⋅x1
Therefore:
u′=xsinx(cosxlogx+xsinx)
- Find v′
For v=ecosxlog(sinx), we have:
v′=ecosxlog(sinx)⋅dxd(cosxlog(sinx))
The factor ecosxlog(sinx) is (sinx)cosx, so:
v′=(sinx)cosx⋅dxd(cosxlog(sinx))
Differentiate cosxlog(sinx) using the product rule:
dxd(cosxlog(sinx))=(−sinx)⋅log(sinx)+cosx⋅sinx1⋅cosx
Simplify the second term: cosx⋅sinxcosx=sinxcos2x.
So:
dxd(cosxlog(sinx))=−sinxlog(sinx)+sinxcos2x
Therefore: …