Calculus 1Logarithmic Differentiation

Differentiate y = x^(cos(x)) Using Logarithmic Differentiation

Homework Question

Find dydx\frac{dy}{dx} for y=xcos⁡(x)y = x^{\cos(x)} (x>0x > 0) using logarithmic differentiation.

Verified Final Answer
dydx=xcos⁡(x)(cos⁡(x)x−sin⁡(x)ln⁡(x))\frac{dy}{dx} = x^{\cos(x)}\left(\frac{\cos(x)}{x} - \sin(x)\ln(x)\right)

Key Formula & Principle

ln⁡(y)=g(x)ln⁡(f(x))  ⟹  1ydydx=ddx[g(x)ln⁡(f(x))]\ln(y) = g(x)\ln(f(x)) \implies \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}[g(x)\ln(f(x))]

Step-by-Step Solution

  1. 1
    Because both the base and exponent depend on xx, take the natural logarithm of both sides: ln⁡(y)=cos⁡(x)ln⁡(x)\ln(y) = \cos(x)\ln(x).
  2. 2
    Differentiate implicitly with respect to xx using the Product Rule on the right side: 1ydydx=−sin⁡(x)ln⁡(x)+cos⁡(x)⋅1x\frac{1}{y}\frac{dy}{dx} = -\sin(x)\ln(x) + \cos(x)\cdot\frac{1}{x}.
  3. 3
    Multiply both sides by yy: dydx=y(cos⁡(x)x−sin⁡(x)ln⁡(x))\frac{dy}{dx} = y\left(\frac{\cos(x)}{x} - \sin(x)\ln(x)\right).
  4. 4
    Substitute y=xcos⁡(x)y = x^{\cos(x)} back in: dydx=xcos⁡(x)(cos⁡(x)x−sin⁡(x)ln⁡(x))\frac{dy}{dx} = x^{\cos(x)}\left(\frac{\cos(x)}{x} - \sin(x)\ln(x)\right).
Interactive Homework Customizer

Have this WebAssign / Canvas problem with different numbers?

Replace the numbers or functions below to match your exact assignment version, then generate a custom step-by-step derivation.

View all Calculus 1 →