Skip to content
    Calculus

    Derivative of ln(x) and ln(ax): Easy Guide

    The derivative of ln(ax) is simply 1/x, so ln(2x), ln(5x) and ln(x) all have exactly the same derivative. Surprised that the a vanishes? Most students are. This guide shows you why it happens, and when a +b inside changes the answer.

    Math Solver Academic Editorial Board4 min read

    Key takeaways

    • d/dx ln(x) = 1/x, and d/dx ln(ax) = 1/x for any positive a.
    • The a disappears because ln(ax) = ln(a) + ln(x), and ln(a) is a constant.
    • With a +b inside, it changes: d/dx ln(ax + b) = a/(ax + b).
    • x must be positive, because ln of zero or a negative number is not defined.
    In this guide
    1. 01What is the derivative of ln?
    2. 02Why does the derivative of ln matter?
    3. 03The formula
    4. 04How to differentiate ln step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you’ll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is the derivative of ln?

    ln(x) is the natural logarithm: the power you raise e (about 2.718) to in order to get x. Its graph rises quickly at first and then flattens out.

    A derivative is the slope of the graph at a point. For ln(x), the slope is 1/x: steep for small x (at x = 0.5 the slope is 2) and gentle for large x (at x = 10 it is 0.1).

    Why does the derivative of ln matter?

    The slope 1/x says something useful: the bigger x gets, the slower ln(x) grows. That matches how people feel many things. Going from 1 to 2 kg feels like a big jump; going from 100 to 101 kg hardly feels like anything.

    Changing a in ln(ax) just slides the whole graph up or down. The shape doesn’t change, so the slope doesn’t change either.

    The formula

    d/dx [ ln(ax) ] = 1 ÷ x
    SymbolWhat it meansExample
    lnThe natural logarithm (log base e)ln(20) ≈ 3.00
    aA positive constant multiplying x5
    xThe point where you want the slope. Must be positive4
    1/xThe slope, which the calculator works out1/4 = 0.25

    Why the a disappears

    Log rules let you split a product: ln(ax) = ln(a) + ln(x). The ln(a) part is just a fixed number, and fixed numbers have derivative 0. Only ln(x) is left, and its derivative is 1/x.

    The chain rule agrees: the derivative of ln(u) is 1/u times the derivative of u. With u = ax, that is (1/(ax)) × a = 1/x.

    How to differentiate ln step by step

    1. 1Check what is inside. Is it just a number times x, like 5x? Or is there a +b, like 3x + 1?
    2. 2For ln(ax), write 1/x. The a cancels out.
    3. 3For ln(ax + b), use the chain rule. The answer is a/(ax + b).
    4. 4Put in x for a slope at a point. Make sure x is positive.

    Now try it yourself. Change a in the calculator below and watch the answer stay the same.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Calculus
    University

    Derivative of ln(ax)

    Compute the derivative of the natural logarithm ln(ax) at a given positive x.

    d/dx[ln(ax)] = 1/x

    f'(x) slope
    Tangent Line dy/dx
    0.120
    120

    💡 Example

    Reference
    Inputs:a=1, x=2
    Result:0.5
    Open the full Derivative of ln(ax) calculator

    Common mistakes to avoid

    • Using 1/x when there’s a +b inside. ln(ax + b) has derivative a/(ax + b), not 1/x.
    • Plugging in x ≤ 0. ln is only defined for positive inputs, so the calculator needs a > 0 and x > 0.
    • Mixing up ln and log. d/dx log₁₀(x) = 1/(x ln 10) ≈ 0.4343/x. Use the logarithm calculator to check log values.

    Tips and tricks

    • Numbers in front stay: d/dx 5ln(x) = 5/x.
    • Negative x: for ln|x|, the derivative is still 1/x for any x that isn’t 0.
    • Reverse: because of this rule, ∫(1/x) dx = ln|x| + C. And ln is the reverse of eˣ, covered in the derivative of eᵃˣ guide.

    Where you’ll use it in real life

    • Sound: decibels use logarithms, so the slope tells you how loudness changes with power.
    • Chemistry: pH is a logarithm of concentration.
    • Economics: ln is used to measure percentage growth, and its derivative 1/x turns changes into percentages.
    • Earthquakes: magnitude scales are logarithmic.

    Quick summary

    The derivative of ln(ax) is 1/x for any positive a, because ln(a) is just a constant that disappears. With a +b inside, use a/(ax + b) instead. Use the calculator above to find the slope at any positive x, with every step shown.

    Worked example

    Your textbook asks for the slope of y = ln(5x) at x = 4, and you want to confirm that the 5 makes no difference. Here a = 5 and x = 4.

    1. 01d/dx[ln(5x)] = d/dx[ln(5) + ln(x)] = 1/x
    2. 02The constant ln(5) disappears after differentiation
    3. 03At x = 4: 1/4 = 0.25

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    What is the derivative of ln 2x?

    It is 1/x. Since ln(2x) = ln 2 + ln x and ln 2 is a constant, only the derivative of ln x, which is 1/x, remains.

    What is the derivative of ln(x²)?

    It is 2/x. Rewrite ln(x²) as 2ln(x), then differentiate to get 2 × 1/x.

    What is the derivative of ln(ax + b)?

    It is a/(ax + b). The +b means you cannot split the log, so use the chain rule: 1/(ax + b) times a.

    Why must x be positive?

    ln(x) is only defined for x > 0. For negative x, use ln|x|, whose derivative is also 1/x.

    #Calculus#University#Derivative of ln(ax)
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX