Calculus · real student question

Find the derivative of ln(3x^2).

Question

Find

ddxln(3x2)\frac{d}{dx}\ln\left(3x^2\right)

Step-by-step solution

  1. Apply the chain rule for logarithms. For any differentiable inner function,

    ddxlnu=uu\frac{d}{dx}\ln u=\frac{u'}{u}

    Here u=3x2u=3x^2, so the derivative is the derivative of the inside divided by the inside — a single formula, no product rule needed.

  2. Differentiate the inside.

    u=3x2  u=6xu=3x^2\ \Longrightarrow\ u'=6x

  3. Form the quotient and simplify.

    ddxln(3x2)=6x3x2=2x\frac{d}{dx}\ln\left(3x^2\right)=\frac{6x}{3x^2}=\frac{2}{x}

    Both the coefficient 33 and one power of xx cancel. The answer is valid for x0x\neq 0, which is also where ln(3x2)\ln(3x^2) is defined.

  4. See why the 3 had to vanish. Log rules give

    ln(3x2)=ln3+2lnx\ln\left(3x^2\right)=\ln 3+2\ln x

    a constant plus 2lnx2\ln x. Constants differentiate to zero, so the derivative is 21x=2x2\cdot\tfrac1x=\tfrac2x — matching, and explaining, the cancellation. Any multiplicative constant inside a logarithm is invisible to the derivative.

  5. Check numerically. At x=2.3x=2.3 a central difference gives 0.86956520.8695652, and 22.3=0.8695652\tfrac{2}{2.3}=0.8695652 ✓. Note the derivative is positive for x>0x>0 and negative for x<0x<0, matching the U-shaped domain of ln(3x2)\ln(3x^2).

Answer

2x(x0)\frac{2}{x}\qquad (x\neq 0)

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