Skill: Differentiate logarithmic functions

Explanation and Free Practice Resources

The derivative of ln⁡x\ln x is 1/x1/x for x>0x>0, while the derivative of log⁡ax\log_a x is 1/(xln⁡a)1/(x\ln a) for a>0a>0 and a≠1a\ne1, reflecting the effect of the logarithm’s base. For compositions such as ln⁡(g(x))\ln(g(x)) or log⁡a(g(x))\log_a(g(x)), differentiation uses the chain rule and requires g(x)>0g(x)>0; the focus is on explicit functions and standard algebraic combinations, not advanced logarithmic differentiation or more general inverse-function theory.

Detailed Explanation: Differentiate logarithmic functions

For logarithmic functions, use these derivative rules:

ddxln⁡x=1x\frac{d}{dx}\ln x=\frac{1}{x}

and

ddxlog⁡ax=1xln⁡a,\frac{d}{dx}\log_a x=\frac{1}{x\ln a},

where a>0a>0 and a≠1a\ne 1.

If the logarithm contains a function g(x)g(x), use the chain rule:

ddxln⁡(g(x))=g′(x)g(x)\frac{d}{dx}\ln(g(x))=\frac{g'(x)}{g(x)}

and

ddxlog⁡a(g(x))=g′(x)g(x)ln⁡a.\frac{d}{dx}\log_a(g(x)) =\frac{g'(x)}{g(x)\ln a}.

The inside of every logarithm must be positive.

Example: Differentiate

f(x)=ln⁡(3x2+1)+log⁡2(5x−1).f(x)=\ln(3x^2+1)+\log_2(5x-1).

First, identify the inside functions:

  • For ln⁡(3x2+1)\ln(3x^2+1), let g(x)=3x2+1g(x)=3x^2+1, so g′(x)=6xg'(x)=6x.
  • For log⁡2(5x−1)\log_2(5x-1), let h(x)=5x−1h(x)=5x-1, so h′(x)=5h'(x)=5.

Apply the chain rule to the first term:

ddxln⁡(3x2+1)=6x3x2+1.\frac{d}{dx}\ln(3x^2+1) =\frac{6x}{3x^2+1}.

Apply the logarithm rule to the second term. Since the base is 22, include the factor ln⁡2\ln 2:

ddxlog⁡2(5x−1)=5(5x−1)ln⁡2.\frac{d}{dx}\log_2(5x-1) =\frac{5}{(5x-1)\ln 2}.

Therefore,

f′(x)=6x3x2+1+5(5x−1)ln⁡2.\boxed{f'(x)=\frac{6x}{3x^2+1} +\frac{5}{(5x-1)\ln 2}}.

The domain requires 5x−1>05x-1>0, so this derivative applies for x>15x>\frac15.

Learn by doing: Differentiate logarithmic functions

Click a topic below to practice the foundational skills you'll need, learn the steps, or master this skill

Your results

Practice with unlimited practice problems

Basic Derivatives - Logarithm to Derivative


    ?

    Download/Modify Free Grade 12 'Differentiate logarithmic functions' Worksheet

    Print this free 'Differentiate logarithmic functions' worksheet to practice this skill away from the computer. Click 'Modify' to easily customize this worksheet to your exact needs.

    Explore More Grade 12 Math