Skip to main content
NSWMaths AdvancedSyllabus dot point

How do we differentiate and integrate exponential and logarithmic functions, and how do they appear in modelling?

Find derivatives and integrals of exe^x and lnx\ln x, including composed forms, and apply them to modelling problems

A focused answer to the HSC Maths Advanced dot point on the calculus of exponential and logarithmic functions. Derivatives and integrals of e^x and ln(x), composed forms via the chain rule, and worked examples.

Generated by Claude Opus 4.812 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

NESA wants you to differentiate and integrate exe^x, lnx\ln x and their composed forms with confidence. These functions appear in nearly every applied calculus problem: growth and decay, finance, biology and physics. Mastery here unlocks the modelling questions.

The answer

Standard derivatives

ddx(ex)=ex\frac{d}{dx}(e^x) = e^x

ddx(lnx)=1x(x>0)\frac{d}{dx}(\ln x) = \frac{1}{x} \quad (x > 0)

The exponential function is the unique function (up to a constant multiple) that is its own derivative. The logarithm is the inverse of exe^x.

Composed derivatives (chain rule)

ddx(ef(x))=f(x)ef(x)\frac{d}{dx}(e^{f(x)}) = f'(x) e^{f(x)}

ddx(lnf(x))=f(x)f(x)\frac{d}{dx}(\ln f(x)) = \frac{f'(x)}{f(x)}

The second result is the basis of "logarithmic differentiation" and of the reverse-chain-rule integral ff=lnf\int \frac{f'}{f} = \ln |f|.

Standard integrals

exdx=ex+C\int e^x \, dx = e^x + C

1xdx=lnx+C\int \frac{1}{x} \, dx = \ln |x| + C

The absolute value handles negative xx, since ln\ln is only defined for positive numbers. In a definite integral, the interval must not include x=0x = 0.

Composed integrals

For a linear inside argument:

ekxdx=ekxk+C\int e^{k x} \, dx = \frac{e^{k x}}{k} + C

For the reverse chain rule on a logarithm:

f(x)f(x)dx=lnf(x)+C\int \frac{f'(x)}{f(x)} \, dx = \ln |f(x)| + C

If the numerator is a constant multiple of f(x)f'(x), factor that constant out first.

Non-ee bases

For axa^x with a>0a > 0, write ax=exlnaa^x = e^{x \ln a}. Then

ddx(ax)=(lna)ax,axdx=axlna+C.\frac{d}{dx}(a^x) = (\ln a) a^x, \qquad \int a^x \, dx = \frac{a^x}{\ln a} + C.

For logax\log_a x, use logax=lnxlna\log_a x = \frac{\ln x}{\ln a}, giving ddx(logax)=1xlna\frac{d}{dx}(\log_a x) = \frac{1}{x \ln a}.

Why ee is the natural base

The number e2.71828e \approx 2.71828 is special precisely because ddx(ex)=ex\frac{d}{dx}(e^x) = e^x: the exponential to base ee is the only exponential function whose gradient at every point equals its own height. For any other base aa, the derivative picks up a factor of lna\ln a, which is why all calculus is done in base ee. The natural logarithm lnx=logex\ln x = \log_e x is its inverse, and the pair exe^x and lnx\ln x undo one another: elnx=xe^{\ln x} = x for x>0x > 0 and ln(ex)=x\ln(e^x) = x for all xx. These identities let you solve exponential equations by taking logs and logarithmic equations by exponentiating.

Why exe^x is its own derivative

The defining property of exe^x is that its gradient at every point equals its height there. That is what makes ddxex=ex\frac{d}{dx}e^x = e^x, and seeing it makes the rule unforgettable.

Stage 1, plot y=exy = e^x. Draw the exponential curve: it passes through (0,1)(0, 1), hugs the xx-axis as xx decreases, and rises ever more steeply as xx increases.

Stage 1: plot y = e to the x The curve y equals e to the x, passing through 0, 1 on the y-axis, approaching the x-axis as x decreases and rising steeply as x increases. x y y = ex 1

Stage 2, the tangent at (0,1)(0, 1). The gradient of the tangent at (0,1)(0, 1) is 11, which is exactly the height of the curve there, also 11. Gradient equals height at this point.

Stage 2: the tangent at (0, 1) has gradient 1 The same curve. At the point 0, 1 the tangent is drawn in the accent colour. Its gradient is 1, which equals the height of the curve there, 1. A dashed segment marks the height of 1. x y (0, 1) gradient = 1 = height 2

Stage 3, the tangent at (1,e)(1, e). Move along to (1,e)(1, e), where the height is e2.72e \approx 2.72. The tangent there has gradient ee as well. Again the gradient matches the height.

Stage 3: the tangent at (1, e) has gradient e The same curve. At the point 1, e the tangent is drawn in the accent colour. Its gradient is e, which again equals the height of the curve there, e. A dashed segment marks the height e, about 2.72. x y (1, e) height e gradient = e = height 3

Stage 4, gradient equals height everywhere. At every point the tangent gradient equals the yy-value, so the gradient function is the curve itself: ddxex=ex\frac{d}{dx}e^x = e^x. No other base has this property, which is precisely why all calculus is done in base ee.

Stage 4: gradient equals height everywhere, so the derivative is e to the x The same curve with the tangents at 0, 1 and 1, e both shown in accent. At every point the gradient of the tangent equals the height of the curve, so the derivative of e to the x is e to the x itself. x y d/dx (ex) = ex 4

Log laws you will use inside calculus

Before differentiating or integrating, simplify with the log laws: ln(ab)=lna+lnb\ln(ab) = \ln a + \ln b, ln(a/b)=lnalnb\ln(a/b) = \ln a - \ln b, and ln(an)=nlna\ln(a^n) = n \ln a. Rewriting ln(x3)\ln(x^3) as 3lnx3 \ln x before differentiating turns a chain-rule problem into a one-line answer, 3x\frac{3}{x}. Splitting a product or quotient inside a logarithm into a sum or difference of logs is often the fastest route through a derivative.

Curve features from the calculus

Differentiation reveals the shape of these graphs. For y=xexy = x e^{-x}, the derivative y=ex(1x)y' = e^{-x}(1 - x) is zero at x=1x = 1, a maximum; the curve rises then decays towards the xx-axis. For y=lnxy = \ln x, y=1x>0y' = \frac{1}{x} > 0 for all x>0x > 0, so lnx\ln x is always increasing, while y=1x2<0y'' = -\frac{1}{x^2} < 0 shows it is always concave down. Reading derivative information back into the graph is a standard HSC application.

How exam questions ask about exponential and logarithmic calculus

  • "Differentiate ef(x)e^{f(x)} or lnf(x)\ln f(x)." Apply the composed rule; show f(x)f'(x). For a product or quotient with exe^x or lnx\ln x, combine with the product or quotient rule.
  • "Find ekxdx\int e^{kx}\,dx." Divide by kk: ekxdx=ekxk+C\int e^{kx}\,dx = \frac{e^{kx}}{k} + C.
  • "Find f(x)f(x)dx\int \frac{f'(x)}{f(x)}\,dx" or an integral with the derivative on top. Recognise the reverse chain rule and write lnf(x)+C\ln|f(x)| + C; factor out any constant on the numerator first.
  • "Evaluate ab1xdx\int_a^b \frac{1}{x}\,dx." The antiderivative is lnx\ln|x|; check the interval avoids x=0x = 0, then substitute the limits.
  • "Find the stationary point / maximum of y=xexy = x e^{-x}" (or similar). Differentiate (product rule), set =0=0, and classify - exponential and log models are common optimisation contexts.
  • "Differentiate axa^x or logax\log_a x" for a non-ee base. Convert with ax=exlnaa^x = e^{x\ln a} and logax=lnxlna\log_a x = \frac{\ln x}{\ln a}, giving the extra factor of lna\ln a.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2023 HSC Q123 marksDifferentiate y=ln(3x2+1)y = \ln(3 x^2 + 1).
Show worked answer →

Use ddxlnf(x)=f(x)f(x)\frac{d}{dx} \ln f(x) = \frac{f'(x)}{f(x)} with f(x)=3x2+1f(x) = 3 x^2 + 1.

f(x)=6xf'(x) = 6 x.

dydx=6x3x2+1\frac{dy}{dx} = \frac{6 x}{3 x^2 + 1}.

Markers reward identifying the inside function, stating the standard rule, and writing a clean unsimplified-but-correct quotient.

2018 HSC Q143 marksFind 2xx2+5dx\int \frac{2 x}{x^2 + 5} \, dx.
Show worked answer →

Notice that the numerator is exactly the derivative of the denominator. Use f(x)f(x)dx=lnf(x)+C\int \frac{f'(x)}{f(x)} \, dx = \ln |f(x)| + C.

With f(x)=x2+5f(x) = x^2 + 5, f(x)=2xf'(x) = 2 x.

2xx2+5dx=ln(x2+5)+C\int \frac{2 x}{x^2 + 5} \, dx = \ln (x^2 + 5) + C.

No absolute value bars are needed since x2+5>0x^2 + 5 > 0 for all real xx.

Markers reward recognising the reverse chain rule pattern and stating the integral with the correct constant of integration.

Related dot points