IB Mathematics AA · Topic 2 · SL and HL

Exponential and Logarithmic Functions

One function gives you the result of raising a base to a power. Its inverse tells you what that power was. Use that connection to sketch both graphs, solve for unknown exponents and model growth or decay.

Open maths practice notebook next to a scientific calculator

Read exponential and logarithmic graphs as inverses

An exponential function such as 2x has a fixed base and a variable exponent. A power function such as x2 has a fixed exponent. The logarithm log28 asks which power of 2 gives 8. Since 23=8, its value is 3.

y=bx⟺x=logby

Use b>0 and b≠1. A base of 1 gives a constant and has no inverse on the reals. A negative base raised to an arbitrary real power need not have a real value. The logarithm takes a positive argument because the exponential takes only positive values.

Featurey=bxy=logbx
Domainℝx>0
Rangey>0ℝ
AsymptoteHorizontal, y=0Vertical, x=0
Axis intercept(0,1) on the y-axis(1,0) on the x-axis
Second point(1,b)(b,1)
DirectionIncreasing for b>1, decreasing for 0<b<1Same as the exponential with that base

Swapping input and output reflects the graph across y=x. The domain of each parent function is the range of the other. Both functions are one-to-one, so every output in the range has exactly one input.

Compare inverse pairs

Change the base or shift the exponential. Match a circle on the exponential with a diamond on its inverse.

Both functions increase. The points swap coordinates.

The increasing exponential has markers at zero comma one and two comma four. The log has the reversed points one comma zero and four comma two. The curves reflect across the diagonal.
The curves y=2x and y=log2x reflect across y=x. Compare (0,1) with (1,0) and (2,4) with (4,2).

Sketch from the asymptote out. Draw the dashed asymptote, check which side the curve belongs on, then mark the intercept and one other point. For b>1, the log falls without bound as x→0+. For 0<b<1, it rises without bound there. The exponential approaches y=0 from above at its left end for b>1 and at its right end for 0<b<1.

The natural exponential uses e≈2.71828. Its inverse is the natural logarithm lnx=logex. The common logarithm log10x is usually labelled log on a calculator. Base 2 logarithms are common in computing.

Track the asymptote through transformations

For a transformed exponential F(x)=Abq(x−h)+c, use A≠0, q≠0, b>0 and b≠1. The input shift is h, the vertical shift is c, and the horizontal scale factor is 1|q|. A negative q reverses the input direction and a negative A reflects the output before the vertical shift.

Exponential range and direction

The domain is ℝ, the asymptote is y=c, and F(h)=A+c. The range is y>c if A>0 and y<c if A<0. Read the direction of the inner exponential from its effective base bq. Then reverse that direction if A<0.

For F(x)=Abx, the y-intercept is (0,A) and there is no x-intercept. A vertical shift can create an x-intercept when zero lies in the range.

For example, 3−2(12)x increases toward 3 from below. The inner exponential decreases and the negative coefficient reverses its direction.

Logarithmic domain and direction

For G(x)=Alogb(x−h)+c with A≠0, the domain is x>h, the range is ℝ, and the vertical asymptote is x=h. Transform the point (1,0) to (h+1,c). Reverse the parent curve's direction when A<0.

For a reflected input such as logb(h−x), use x<h. Solve the argument inequality before sketching.

Worked example · Sketch a shifted exponential

For f(x)=3·2x−6, multiply the parent outputs by 3, then shift them down 6. The horizontal asymptote becomes y=−6. The domain is ℝ and the range is (−6,∞). Since the base exceeds 1 and the coefficient is positive, the curve increases.

f(0)=3·20−6=−3
f(x)=0⟺2x=2⟺x=1

Plot (0,−3) and (1,0). To find the inverse, solve y=3·2x−6 for x, then exchange the input and output labels.

f−1(x)=log2(x+63),x>−6

The original horizontal asymptote becomes the inverse's vertical asymptote x=−6. The two intercepts swap coordinates. Compare them in the shifted-pair graph.

Worked example · Read a shifted logarithm

For g(x)=log2(x−3)+1, the graph moves right 3 and up 1, giving x>3 and a vertical asymptote at x=3. The anchor is (4,1). To find the x-intercept, solve x−3=2−1=12, giving (72,0). The graph has no y-intercept because 0 is outside the domain.

Apply log laws and carry the original domain

Use a common base before combining logs. In the table, u,v>0, r∈ℝ, and b,k are positive bases other than 1. The restrictions belong to the original expression, even when algebra produces an expression with a larger domain.

RuleEquivalent forms
Productlogb(uv)=logbu+logbv
Quotientlogb(uv)=logbu−logbv
Powerlogb(ur)=rlogbu
Change of baselogbu=logkulogkb=lnulnb
Special valueslogb1=0 and logbb=1
Inverse propertiesblogbu=u and logb(bx)=x for real x

For change of base, if m=logbu, then bm=u. Taking natural logs gives mlnb=lnu, so divide by lnb. For example, log48=ln8ln4=32.

Worked example · Add logs of the same base

Evaluate log327+log39. The powers of 3 are 3 and 2, so the answer is 5. You can also combine the arguments.

log3(27·9)=log3243=log3(35)=5

Worked example · Simplify and keep the restriction

Simplify 2lnx−ln(x2−1)+ln(x+1). Require x>0, x2−1>0 and x+1>0 together. This gives x>1.

Use 2lnx=ln(x2). Apply the quotient rule to the first two terms, then the product rule to include the last term.

ln(x2(x+1)x2−1)

Factor x2−1=(x−1)(x+1) and cancel x+1. The resulting expression is defined on the original domain x>1.

ln(x2x−1)

Read the argument first. A sum inside a logarithm stays together. For example, log10(1+1)=log102, while log101+log101=0. In the power rule, the coefficient becomes a power on the argument, as in 2ln3=ln9.

Choose a method for each equation

What you seeFirst step
Two powers with a shared baseRewrite both sides with that base and equate exponents.
One isolated exponentialCheck that the other side is positive, then take logs.
A power and its squareLet u=bx and retain only u>0.
Logs of variable expressionsFind the common domain, combine logs, then exponentiate.
No straightforward algebraic isolationUse graph intersections or a numerical solver when technology is allowed.

Match the base or take a logarithm

From 23x=215, equate the exponents 3x=15 and get x=5. For 2x=50, use a logarithm and keep the exact expression until the final step.

x=log1050log102≈5.64

In general, bx=c gives x=lnclnb for c>0. If c≤0, the equation has no real solution.

Substitute for a repeated exponential

Solve 4x−2x+1−8=0. Since 4x=(2x)2 and 2x+1=2·2x, put u=2x>0.

u2−2u−8=(u−4)(u+2)=0

The candidates are u=4 and u=−2. Only u=4 is in the range of 2x, so x=2. Substituting gives 16−8−8=0.

Combine the logs and reject invalid roots

Solve log2x+log2(x−3)=2. Both arguments must be positive, giving x>3.

log2(x(x−3))=2⟹x(x−3)=4
x2−3x−4=(x−4)(x+1)=0

Of 4 and −1, only 4 meets x>3. Check log24+log21=2.

IB-style example · Round only at the end

Solve 52x−1=200 to three significant figures. Taking logs gives (2x−1)ln5=ln200.

x=1+ln200ln52≈2.15

Enter the exact fraction in the calculator before rounding.

IB-style example · Use the quadratic formula

For ln(x+2)+ln(x−1)=ln8, the common domain is x>1. Combine to get (x+2)(x−1)=8, so x2+x−10=0.

x=−1±412

The negative candidate is outside the domain. The solution is −1+412≈2.70.

Calculator example · Find an intersection

To solve ex=4−x on 0≤x≤2, enter the exponential and the line separately. The exponential is increasing and the line is decreasing. The exponential is below the line at x=0 and above it at x=2, so there is exactly one intersection.

On inputs zero to two, an increasing exponential and a falling line cross once near input one point zero seven and output two point nine three.
The marked point is the intersection of y=ex and y=4−x. Its coordinates are approximately (1.07,2.93).

Use the intersection tool and report the x-coordinate, x≈1.07 to three significant figures. If the calculator displays only a nearby crossing, choose a window covering the entire interval in the question.

For more examples of isolating powers, using a substitution and checking restrictions, see the exponential and logarithmic equations guide.

Model growth, decay and time to a target

A linear model adds the same amount over equal intervals. An exponential model multiplies by the same factor. For a positive starting amount A, the two forms below describe the same model when k=lnb.

P(t)=Abt=Aekt

If the amount grows by a proportion r per time unit, use b=1+r. If it decreases by a proportion r with 0<r<1, use b=1−r. In continuous time the model's rate of change is proportional to its current amount. The units of k are inverse time. With a baseline c, rewrite Abt+c as Aetlnb+c. Growth or decay then describes the distance from the baseline.

Worked example · Build a model from two observations

An idealized count starts at 200 and reaches 288 after 2 days. The two-day growth factor is 288200=1.44, so the daily factor is 1.44=1.2.

P(t)=200(1.2)t=200etln(1.2)

The model predicts P(5)≈498 after 5 days. Taking logs gives lnP(t)=ln200+tln1.2. Plotting lnP against t makes a straight line with slope ln1.2. If a model has an added baseline c, isolate P(t)−c before taking logs.

Worked example · Find a half-life target

A substance starts at 160 grams and has a half-life of 6 hours. Let t≥0 be the time in hours.

M(t)=160(12)t6

After 12 hours, two half-lives have passed, so M(12)=40 grams. To find when 30 grams remain, first divide by 160.

(12)t6=316⟹t=6ln(316)ln(12)

The result is about 14.5 hours, which is after the 12-hour reading as expected.

For the financial applications in the syllabus assessed through 2028, compound interest uses the same multiplier idea. With principal P0, nominal annual rate r as a decimal and n compounding periods per year, use A=P0(1+rn)nt after nt completed periods. Logarithmic scales such as pH use logarithms to express ratios across a wide range of values.

HL extensions in inverses, inequalities and graphs

Find an inverse after restricting the domain

Let p(x)=(ex−2)2 with x≤ln2. Here 0<ex≤2, so ex−2≤0, and the function is one-to-one on that interval. Its range is [0,4), with 0 attained at x=ln2.

y=(ex−2)2⟹ex=2−y
p−1(x)=ln(2−x),0≤x<4

The negative square-root branch comes from the original restriction. Check p(0)=1 and p−1(1)=0.

Solve an inequality with a decreasing log

For log12(x−1)≥−2, require x>1. Raising the base 12 to both sides reverses the inequality because the exponential is decreasing.

0<x−1≤(12)−2=4

The solution is 1<x≤5. Include 5 because equality is allowed.

Reflect negative outputs with modulus

For y=|lnx|, keep x>0. Reflect the part with 0<x<1 above the x-axis, and keep the part with x≥1. The range is y≥0 and the vertical asymptote remains x=0.

The equation |lnx|=1 gives x=e or x=e−1.

For a combined input transformation such as x↦6−2x, rewrite it as −2(x−3) before reading the changes. The log y=ln(6−2x)−1 is defined for x<3, decreases, and approaches its vertical asymptote x=3 from the left.

Build an answer an examiner can follow

  • Sketch. Label the asymptote with its equation, mark any intercepts and show the correct approach direction. Check the sign of the coefficient before drawing.
  • Find an inverse. Confirm the original function is one-to-one on the given domain, then solve for the input. State the inverse domain using the original range.
  • Solve exactly. Keep results such as ln3 and ln5ln2 in exact form. When a decimal is required, follow the stated accuracy and avoid rounding intermediate values.
  • Use technology where allowed. Paper 1 is non-calculator. On a calculator paper, give the equation or functions entered and report the requested coordinate or quantity. Use the ln key or the log10 key consistently in a change-of-base fraction.

Use the IB Math AA formula booklet reference while revising. In Topic 5, the same functions give ddxex=ex and ddxlnx=1x for x>0. For HL, rewriting bx=exlnb gives the derivative bxlnb. See the IB Math AA differential calculus notes for worked applications.

Practice with worked answers

Try each question before opening its solution. The last two are HL extensions.

1. Evaluate log48 exactly.

Write 4x=8 as 22x=23, so x=32.

2. Find the range and both intercepts of g(x)=5−2x+1.

The exponential is positive, so g(x)<5. At x=0, g(0)=3. Setting g(x)=0 gives 2x+1=5, so the x-intercept is (log25−1,0).

3. Simplify ln(x+3)−ln(x−2) and state its domain.

Both inputs must be positive, so x>2. The expression is ln(x+3x−2) on that domain. At x=−4 the quotient is positive, but both original log arguments are negative. This is why the original restriction matters.

4. Solve e2x−7ex+10=0 exactly.

Let u=ex>0. Factor (u−2)(u−5)=0. Both roots are positive, so x=ln2 or x=ln5.

5. Solve log3(x−1)+log3(x+1)=1.

Require x>1. Exponentiating the combined log gives x2−1=3, so x=±2. Only x=2 is permitted, and it gives log31+log33=1.

6. Find the inverse of h(x)=2x+3 and its domain.

From y=2x+3, isolate 2x=y−3>0, then take logs and swap labels. Thus h−1(x)=log2(x−3) with x>3.

7. A count of 600 decreases by 15% per day. Find the count after 3 days to the nearest whole number.

The multiplier is 1−0.15=0.85. The model gives 600(0.85)3=368.475, or 368 to the nearest whole number.

8. Use technology to solve ex=3−x on 0≤x≤2 to three significant figures.

Graph the two sides and locate the intersection. The exponential increases and the line decreases, so there is only one crossing. Its x-coordinate is approximately 0.792.

9. HL · Solve log13(x+2)<−1.

Start with x>−2. Since the base is below 1, exponentiating reverses the inequality and gives x+2>3. Thus x>1.

10. HL · Describe the domain and vertical asymptote of y=ln(5−2x).

Require 5−2x>0, so x<52. At x=52, the argument approaches zero from above as x approaches from the left. The vertical asymptote is x=52, and the function falls without bound there.

Official IB specimen questions and syllabus

Try the SL question after revising change of base. For HL, use the inverse question to practise choosing the correct branch and stating its domain.

The topic numbers and specimen references follow the course assessed through November 2028. Exponents and log laws are in SL 1.5 and 1.7. Graphs, equations and transformations are in SL 2.9–2.11, with the additional HL work here linked to AHL 2.14–2.16.

Prepared by NUM8ERS for IB Mathematics Analysis and Approaches students.