Travou nisso? Resolva com IA
Calculus · real student question

Find the derivative of y = (x - 1)^x.

Question

Find the derivative of

y=(x−1)xy=(x-1)^x

Step-by-step solution

  1. Recognise why the standard rules fail. The power rule ddxxn=nxn−1\frac{d}{dx}x^n=nx^{n-1} needs a constant exponent, and the exponential rule ddxax=axln⁡a\frac{d}{dx}a^x=a^x\ln a needs a constant base. Here both the base x−1x-1 and the exponent xx vary, so neither rule applies and mixing them gives nonsense. The fix is logarithmic differentiation.

  2. State the domain first. For (x−1)x(x-1)^x to be defined as a real power with a varying exponent we need a positive base:

    x−1>0⟺x>1x-1>0\qquad\Longleftrightarrow\qquad x>1

    Everything below is valid on (1,∞)(1,\infty), which is also exactly where ln⁡(x−1)\ln(x-1) makes sense.

  3. Take natural logarithms of both sides. The logarithm converts the exponent into a coefficient, which is the whole point:

    ln⁡y=ln⁡((x−1)x)=xln⁡(x−1)\ln y=\ln\bigl((x-1)^x\bigr)=x\ln(x-1)

    The right-hand side is now an ordinary product of two familiar functions.

  4. Differentiate both sides with respect to xx. On the left, yy is a function of xx, so the chain rule gives 1y y′\frac{1}{y}\,y' — this is where implicit differentiation enters. On the right, use the product rule:

    ddx(xln⁡(x−1))=1⋅ln⁡(x−1)+x⋅1x−1\frac{d}{dx}\bigl(x\ln(x-1)\bigr)=1\cdot\ln(x-1)+x\cdot\frac{1}{x-1}

    so

    y′y=ln⁡(x−1)+xx−1\frac{y'}{y}=\ln(x-1)+\frac{x}{x-1}

  5. Solve for y′y' and substitute the original function back. Multiplying by yy and replacing y=(x−1)xy=(x-1)^x:

     y′=(x−1)x(ln⁡(x−1)+xx−1) \boxed{\,y'=(x-1)^x\left(\ln(x-1)+\frac{x}{x-1}\right)\,}

    The answer must contain the original expression as a factor — that is typical of logarithmic differentiation, and a missing (x−1)x(x-1)^x out front is the usual error.

  6. Check numerically. At x=3x=3 the formula gives 23(ln⁡2+32)=8(0.6931+1.5)≈17.5452^3\left(\ln 2+\tfrac{3}{2}\right)=8(0.6931+1.5)\approx 17.545. A central difference quotient with h=10−6h=10^{-6} on (x−1)x(x-1)^x at x=3x=3 returns 17.545217.5452, so the derivative is right. The same template works for any f(x)g(x)f(x)^{g(x)}: its derivative is fg(g′ln⁡f+gf′f)f^g\left(g'\ln f+\frac{gf'}{f}\right).

Answer

(x−1)x(ln⁡(x−1)+xx−1),x>1(x-1)^x\left(\ln(x-1)+\frac{x}{x-1}\right),\qquad x>1

Need to solve a different problem like this? Open the solver →