Try the code and the simulations beside the lesson.
The number e and the function ex
A bank pays interest, a medicine fades from the blood, and a culture of cells divides. Each is an exponential process, and the base that suits it best is the number e≈2.71828. It is irrational, like π.
The function f(x)=ex has these properties.
Its domain is all real numbers, and its range is ex>0.
It passes through (0,1), because e0=1.
It is always increasing. For e−x the graph is reflected, so it decreases.
It has an asymptote: a line that the graph approaches but never reaches. For y=ex the asymptote is y=0, the x-axis.
Logarithms
A logarithm answers the question "which power?". For a>0 and a=1:
logax=ymeansay=x.
So log28=3, because 23=8. Logarithms may be given to any base. The base 10 is written lg, so lg1000=3. The base e is written ln, so lnx=logex is the natural logarithm.
Some values come straight from the definition: loga1=0, logaa=1, and logaa1=−1. A logarithm is defined only for x>0.
The two functions are inverses
f(x)=ex and g(x)=lnx are inverses of each other. Applying one after the other gives back x:
ln(ex)=x for all x,elnx=x for x>0.
Everything we found about inverse functions then follows.
The graph of y=lnx is the reflection of y=ex in the line y=x.
The domain of lnx is x>0, which is the range of ex. The range of lnx is all real numbers.
The point (0,1) on ex becomes (1,0) on lnx.
The asymptote y=0 of ex becomes the asymptote x=0 of lnx, the y-axis.
A graph with equal scales. The blue curve y equals e to the power x rises from near the x-axis on the left through the point (0, 1). The green curve y equals ln x rises from the y-axis through the point (1, 0). The two curves are mirror images in the dashed line y equals x. The x-axis is the asymptote of the blue curve and the y-axis is the asymptote of the green curve.
The graphs y=kenx+a and y=kln(ax+b)
The syllabus uses whole numbers for n, k, a and b.
For y=kenx+a:
The y-intercept is found by putting x=0: y=k+a.
The asymptote is y=a, because enx gets close to 0 at one end.
If n>0 the term enx grows to the right. If n<0 it decays to the right. Then k sets the size and the direction.
For y=2e−x+1 the y-intercept is 3, the asymptote is y=1, and the graph falls towards y=1 without meeting it.
For y=kln(ax+b):
The domain is ax+b>0.
The vertical asymptote is x=−ab, where ax+b=0.
The x-intercept is where ax+b=1, because ln1=0.
For y=3ln(2x+4) the asymptote is x=−2 and the x-intercept is x=−1.5.
Two graphs side by side. The left graph is y equals 2e to the power minus x plus 1: it starts high on the left, passes through (0, 3) and falls towards the dashed horizontal asymptote y equals 1 on the right. The right graph is y equals 3 ln(2x plus 4): it has the dashed vertical asymptote x equals minus 2, passes through (minus 1.5, 0) and rises slowly to the right.
Practise with new numbers
Try it in Python
The program shows that ln(ex) gives back x, and that y=2e−x+1 settles towards its asymptote.
Common mistakes
Taking a logarithm of zero or a negative number. It does not exist.
Letting the graph cross its asymptote. It approaches the asymptote and never meets it.
Using a as the y-intercept. The intercept is k+a, and a is the asymptote.
Forgetting the domainax+b>0 of ln(ax+b).
Mixing up the base.lg is base 10 and ln is base e.
Remember these
logax=y means ay=x. loga1=0 and logaa=1.
ex and lnx are inverses. ln(ex)=x and elnx=x.
y=kenx+a: y-intercept k+a, asymptote y=a.
y=kln(ax+b): asymptote x=−ab, x-intercept where ax+b=1.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Evaluate log381.
State the asymptote and the y-intercept of y=5ex−2.
State the domain and the asymptote of y=ln(x−4).
Find the inverse of f(x)=e3x.
Find x when lnx=2. Give the answer to 3 significant figures.
References
Cambridge International, IGCSE Additional Mathematics 0606 syllabus (2025, 2026 and 2027), unit 6 Logarithmic and exponential functions.
OpenStax, Precalculus 2e, chapter 4 Exponential and Logarithmic Functions.
Enroll free in Logarithms, Exponentials and a First Look at Differentiation
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.