Skip to main content
ExamExplained
NSW · Maths Advanced
Maths Advanced study scene
§-Syllabus dot point
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.

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.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marksDifferentiate y=e4xy = e^{4x} and hence find e4xdx\int e^{4x} \, dx.
Show worked solution →

Differentiate with the chain rule. For ef(x)e^{f(x)} the derivative is f(x)ef(x)f'(x) e^{f(x)}, and here f(x)=4xf(x) = 4x so f(x)=4f'(x) = 4:

dydx=4e4x.\frac{dy}{dx} = 4 e^{4x}.

Reverse the process for the integral. Antidifferentiating e4xe^{4x} undoes the multiply-by-44, so we divide by 44:

e4xdx=e4x4+C.\int e^{4x} \, dx = \frac{e^{4x}}{4} + C.

Marker's note: one mark for dydx=4e4x\frac{dy}{dx} = 4 e^{4x} with the chain-rule factor of 44 shown, one for e4x4+C\frac{e^{4x}}{4} + C with the constant of integration. Writing 4e4x4 e^{4x} for the integral (forgetting to divide) is the usual slip.

foundation3 marksDifferentiate y=ln(5x23)y = \ln(5x^2 - 3) and state the values of xx at which the derivative is undefined.
Show worked solution →

Apply the log chain rule. For lnf(x)\ln f(x) the derivative is f(x)f(x)\dfrac{f'(x)}{f(x)}. Here f(x)=5x23f(x) = 5x^2 - 3, so f(x)=10xf'(x) = 10x:

dydx=10x5x23.\frac{dy}{dx} = \frac{10x}{5x^2 - 3}.

Find where the derivative is undefined. The quotient is undefined where the denominator is zero:

5x23=0x2=35x=±35.5x^2 - 3 = 0 \quad\Rightarrow\quad x^2 = \frac{3}{5} \quad\Rightarrow\quad x = \pm\sqrt{\tfrac{3}{5}}.

Marker's note: one mark for identifying f(x)=10xf'(x) = 10x, one for the correct quotient 10x5x23\frac{10x}{5x^2 - 3}, one for x=±3/5x = \pm\sqrt{3/5} from setting the denominator to zero. A candidate who differentiates but never solves the denominator loses the last mark.

foundation2 marksFind 6x2x3+2dx\int \frac{6x^2}{x^3 + 2} \, dx.
Show worked solution →

Check whether the top is the derivative of the bottom. With f(x)=x3+2f(x) = x^3 + 2, f(x)=3x2f'(x) = 3x^2. The numerator 6x2=2×3x2=2f(x)6x^2 = 2 \times 3x^2 = 2 f'(x), so factor the 22 out:

6x2x3+2dx=23x2x3+2dx.\int \frac{6x^2}{x^3 + 2} \, dx = 2 \int \frac{3x^2}{x^3 + 2} \, dx.

Apply the reverse chain rule ff=lnf\int \frac{f'}{f} = \ln|f|.

=2lnx3+2+C.= 2 \ln|x^3 + 2| + C.

Marker's note: one mark for spotting the reverse-chain-rule pattern and factoring the constant 22, one for 2lnx3+2+C2\ln|x^3 + 2| + C with bars and the constant. Leaving the 22 inside or dropping it entirely is the common error.

core3 marksDifferentiate y=lnxx2y = \dfrac{\ln x}{x^2}, expressing your answer as a single fraction.
Show worked solution →

Set up the quotient rule. Let u=lnxu = \ln x and v=x2v = x^2, so u=1xu' = \dfrac{1}{x} and v=2xv' = 2x. The quotient rule is uvuvv2\dfrac{u'v - uv'}{v^2}:

dydx=1xx2lnx2x(x2)2=x2xlnxx4.\frac{dy}{dx} = \frac{\frac{1}{x} \cdot x^2 - \ln x \cdot 2x}{(x^2)^2} = \frac{x - 2x\ln x}{x^4}.

Simplify by cancelling a factor of xx.

dydx=x(12lnx)x4=12lnxx3.\frac{dy}{dx} = \frac{x(1 - 2\ln x)}{x^4} = \frac{1 - 2\ln x}{x^3}.

Marker's note: one mark for correct u,v,u,vu, v, u', v', one for the quotient-rule substitution, one for the simplified 12lnxx3\frac{1 - 2\ln x}{x^3}. Forgetting to differentiate lnx\ln x as 1x\frac{1}{x}, or failing to cancel the common xx, are the usual marks lost.

core4 marksThe curve y=x2lnxy = x^2 \ln x is defined for x>0x > 0. (a) Show that dydx=x(2lnx+1)\frac{dy}{dx} = x(2\ln x + 1). (b) Find the exact coordinates of the stationary point and determine its nature.
Show worked solution →

Part (a): differentiate with the product rule. Let u=x2u = x^2 and v=lnxv = \ln x, so u=2xu' = 2x and v=1xv' = \dfrac{1}{x}:

dydx=2xlnx+x21x=2xlnx+x=x(2lnx+1).\frac{dy}{dx} = 2x \cdot \ln x + x^2 \cdot \frac{1}{x} = 2x\ln x + x = x(2\ln x + 1).

Part (b): solve dydx=0\frac{dy}{dx} = 0. Since x>0x > 0, the factor xx is never zero, so

2lnx+1=0lnx=12x=e1/2.2\ln x + 1 = 0 \quad\Rightarrow\quad \ln x = -\frac{1}{2} \quad\Rightarrow\quad x = e^{-1/2}.

The yy-coordinate is

y=(e1/2)2ln ⁣(e1/2)=e1(12)=12e,y = \left(e^{-1/2}\right)^2 \ln\!\left(e^{-1/2}\right) = e^{-1}\left(-\tfrac{1}{2}\right) = -\frac{1}{2e},

so the stationary point is (e1/2,12e)\left(e^{-1/2}, -\dfrac{1}{2e}\right).

Classify it. Differentiate dydx=2xlnx+x\frac{dy}{dx} = 2x\ln x + x again:

d2ydx2=2lnx+2+1=2lnx+3.\frac{d^2y}{dx^2} = 2\ln x + 2 + 1 = 2\ln x + 3.

At x=e1/2x = e^{-1/2}, lnx=12\ln x = -\tfrac{1}{2}, so d2ydx2=2(12)+3=2>0\frac{d^2y}{dx^2} = 2\left(-\tfrac{1}{2}\right) + 3 = 2 > 0, giving a minimum.

Marker's note: one mark for the product-rule working reaching x(2lnx+1)x(2\ln x + 1) in (a); one for x=e1/2x = e^{-1/2}, one for the exact y=12ey = -\frac{1}{2e}, and one for the correct classification via y>0y'' > 0 in (b). Evaluating the messy logs numerically without exact forms, or skipping the nature test, loses marks.

exam5 marksA biologist models a bacterial colony with population PP (in thousands) at time tt hours. The graph of the growth rate dPdt=3e0.5t\frac{dP}{dt} = 3e^{-0.5t} against tt is a decreasing curve that starts at the value 33 when t=0t = 0 and approaches the horizontal axis as tt increases, always staying above it. The colony starts at P=2P = 2 thousand when t=0t = 0. (a) Describe what the shape of the growth-rate graph tells you about how the population changes over time. (b) Find PP as a function of tt. (c) Find the exact limiting population the colony approaches as tt \to \infty.
Show worked solution →

Part (a): read the rate graph. The growth rate dPdt\frac{dP}{dt} is positive for all tt, so the population is always increasing. Because the rate curve is decreasing towards zero, the population rises quickly at first and then more and more slowly, levelling off towards a ceiling.

Part (b): integrate the rate to recover PP. Antidifferentiate dPdt=3e0.5t\frac{dP}{dt} = 3e^{-0.5t} using ektdt=ektk\int e^{kt}\,dt = \dfrac{e^{kt}}{k} with k=0.5k = -0.5:

P=3e0.5tdt=3e0.5t0.5+C=6e0.5t+C.P = \int 3e^{-0.5t} \, dt = \frac{3e^{-0.5t}}{-0.5} + C = -6e^{-0.5t} + C.

Use the initial condition P=2P = 2 at t=0t = 0 (note e0=1e^0 = 1):

2=6(1)+CC=8,2 = -6(1) + C \quad\Rightarrow\quad C = 8,

so

P=86e0.5t.P = 8 - 6e^{-0.5t}.

Part (c): take the limit. As tt \to \infty, e0.5t0e^{-0.5t} \to 0, so

P86(0)=8.P \to 8 - 6(0) = 8.

The colony approaches a limiting population of 88 thousand bacteria.

Marker's note: one mark for reading the rate graph as always-positive-but-decreasing in (a); two for the integration reaching 6e0.5t+C-6e^{-0.5t} + C and applying P(0)=2P(0) = 2 to get C=8C = 8 in (b); one for the correct model P=86e0.5tP = 8 - 6e^{-0.5t}; one for the limiting value 88 (thousand) in (c). Dividing by 0.5-0.5 incorrectly, or dropping the constant of integration before using the initial condition, are the marks most often lost.

exam5 marksConsider the function y=lnxy = \ln x for x>0x > 0. (a) Find the equation of the tangent to the curve at the point where x=ex = e. (b) This tangent, the xx-axis and the line x=ex = e enclose a triangle. By finding where the tangent crosses the xx-axis, show that the area of this triangle is e2\frac{e}{2} square units.
Show worked solution →

Part (a): find the point and gradient. At x=ex = e, y=lne=1y = \ln e = 1, so the point of contact is (e,1)(e, 1). Differentiating, dydx=1x\dfrac{dy}{dx} = \dfrac{1}{x}, so at x=ex = e the gradient is

m=1e.m = \frac{1}{e}.

The tangent through (e,1)(e, 1) with gradient 1e\frac{1}{e} is

y1=1e(xe)y=xe1+1=xe.y - 1 = \frac{1}{e}(x - e) \quad\Rightarrow\quad y = \frac{x}{e} - 1 + 1 = \frac{x}{e}.

So the tangent is y=xey = \dfrac{x}{e}.

Part (b): find where the tangent meets the xx-axis. Set y=0y = 0:

xe=0x=0,\frac{x}{e} = 0 \quad\Rightarrow\quad x = 0,

so the tangent passes through the origin. The triangle has vertices at the origin (0,0)(0, 0), the foot of the vertical line at (e,0)(e, 0), and the point (e,1)(e, 1) on the line x=ex = e.

Compute the area. The base runs along the xx-axis from x=0x = 0 to x=ex = e, so the base length is ee; the height is the vertical rise to (e,1)(e, 1), which is 11:

Area=12×base×height=12×e×1=e2.\text{Area} = \frac{1}{2} \times \text{base} \times \text{height} = \frac{1}{2} \times e \times 1 = \frac{e}{2}.

Marker's note: one mark for the point (e,1)(e, 1) and gradient 1e\frac{1}{e}, one for the tangent equation y=xey = \frac{x}{e}, one for finding the xx-intercept at the origin, one for identifying base ee and height 11, one for the shown area e2\frac{e}{2}. A candidate who mis-simplifies the tangent to a non-zero intercept cannot reach the clean e2\frac{e}{2}, so careful algebra in (a) is what unlocks (b).

ExamExplained