Lesson 44 of 46 · Mathematics

Exponentials, logarithms and functions

Use the laws of powers and logarithms, solve exponential and log equations by hand, and handle domains, composition, inverses and graph shifts.

About 24 minutes

In this lesson

  • Apply the laws of powers and logarithms to simplify expressions and estimate logarithms from given values.
  • Solve exponential equations by a common base or a substitution, and logarithmic equations with a domain check.
  • Find the domain of a function, compose functions, find an inverse and describe graph transformations.

The idea

Powers first

Logarithms are only as easy as the powers behind them, so the laws of powers come first. For a positive base aa:

am⋅an=am+n,aman=am−n,(am)n=amn,a−n=1an,a1n=an.a^m \cdot a^n = a^{m+n}, \qquad \frac{a^m}{a^n} = a^{m-n}, \qquad (a^m)^n = a^{mn}, \qquad a^{-n} = \frac{1}{a^n}, \qquad a^{\frac{1}{n}} = \sqrt[n]{a}.

Two traps sit here. am+ana^m + a^n has no simplification of its own; only products and quotients combine. And (a+b)2(a + b)^2 is not a2+b2a^2 + b^2.

Exponential equations

Without a calculator, an exponential equation is usually solved in one of two ways.

Common base. Write both sides as powers of the same base, then equate the exponents, because ap=aqa^p = a^q forces p=qp = q when a>0a > 0 and a≠1a \ne 1. Know the small powers by heart: 210=10242^{10} = 1024, 35=2433^5 = 243, 4=224 = 2^2, 8=238 = 2^3, 9=329 = 3^2, 27=3327 = 3^3, 25=5225 = 5^2, 125=53125 = 5^3.

Substitution. An equation such as 9x−4⋅3x+3=09^x - 4 \cdot 3^x + 3 = 0 is a quadratic in disguise: 9x=(3x)29^x = (3^x)^2, so put t=3xt = 3^x. Solve for tt, then return to xx. Because 3x>03^x > 0 for every xx, a negative value of tt gives no solution and must be thrown away.

Logarithms

log⁡ab=c\log_a b = c means exactly ac=ba^c = b: the logarithm is the exponent. It is defined only for a base a>0a > 0 with a≠1a \ne 1 and an argument b>0b > 0. Some values follow at once: log⁡a1=0\log_a 1 = 0, log⁡aa=1\log_a a = 1, log⁡232=5\log_2 32 = 5, log⁡100.01=−2\log_{10} 0.01 = -2.

The laws of logarithms are the laws of powers read backwards:

log⁡a(xy)=log⁡ax+log⁡ay,log⁡axy=log⁡ax−log⁡ay,log⁡axn=nlog⁡ax.\log_a (xy) = \log_a x + \log_a y, \qquad \log_a \frac{x}{y} = \log_a x - \log_a y, \qquad \log_a x^n = n \log_a x.

The change of base formula is log⁡ab=log⁡cblog⁡ca\log_a b = \frac{\log_c b}{\log_c a} for any valid base cc. Note what is not a law: log⁡(x+y)\log(x + y) does not split, and log⁡x⋅log⁡y\log x \cdot \log y is not log⁡(xy)\log(xy).

A typical calculator-free question gives you log⁡102\log_{10} 2 and log⁡103\log_{10} 3 and asks for the logarithm of another number. Factorise that number into 2s, 3s and 10s and add: log⁡1012=log⁡10(22⋅3)=2log⁡102+log⁡103\log_{10} 12 = \log_{10}(2^2 \cdot 3) = 2\log_{10} 2 + \log_{10} 3. A related fact: log⁡105=log⁡1010−log⁡102=1−log⁡102\log_{10} 5 = \log_{10} 10 - \log_{10} 2 = 1 - \log_{10} 2.

Logarithmic equations need a domain check

Combine the logs into a single logarithm, rewrite it as a power, and solve. Then check every candidate in the original equation, because combining log⁡x+log⁡(x−2)\log x + \log(x - 2) into log⁡(x(x−2))\log(x(x - 2)) widens the domain: the product can be positive when both factors are negative. A candidate that makes any original argument zero or negative is rejected.

Functions: domain

The domain is the set of inputs for which the formula makes sense. Three restrictions cover nearly every question:

  • a denominator cannot be zero;
  • an even root needs a non-negative radicand (zero is allowed);
  • a logarithm needs a strictly positive argument.

When a logarithm sits in a denominator, both apply: its argument must be positive and the log must not equal zero, which happens when the argument equals 1.

Composition and inverses

f(g(x))f(g(x)) means: apply gg first, then ff. Work from the inside out. In general f(g(x))≠g(f(x))f(g(x)) \ne g(f(x)), so read the order carefully.

The inverse f−1f^{-1} undoes ff: if f(a)=bf(a) = b then f−1(b)=af^{-1}(b) = a. To find it, write y=f(x)y = f(x), solve for xx in terms of yy, then rename. Only a one-to-one function has an inverse. The graph of f−1f^{-1} is the reflection of the graph of ff in the line y=xy = x, which is why y=log⁡axy = \log_a x and y=axy = a^x mirror each other.

Graphs and transformations

For a>1a > 1, y=axy = a^x is increasing, always positive, passes through (0,1)(0, 1) and approaches the xx-axis on the left. For 0<a<10 < a < 1 it is decreasing. y=log⁡axy = \log_a x (a>1a > 1) passes through (1,0)(1, 0), is defined only for x>0x > 0 and has the yy-axis as an asymptote.

Starting from y=f(x)y = f(x):

  • y=f(x−h)y = f(x - h) shifts the graph hh units to the right (the sign inside looks opposite);
  • y=f(x)+ky = f(x) + k shifts it kk units up;
  • y=−f(x)y = -f(x) reflects it in the xx-axis, and y=f(−x)y = f(-x) in the yy-axis.

So y=2x−3+1y = 2^{x - 3} + 1 is y=2xy = 2^x moved 3 right and 1 up: its point (0,1)(0, 1) moves to (3,2)(3, 2), and indeed 20+1=22^0 + 1 = 2.

Worked examples

Example 1: An exponential equation with a common base

Solve 4x+1=8x−14^{x + 1} = 8^{x - 1}.

  1. Both 4 and 8 are powers of 2: 4x+1=(22)x+1=22x+24^{x + 1} = (2^2)^{x + 1} = 2^{2x + 2} and 8x−1=(23)x−1=23x−38^{x - 1} = (2^3)^{x - 1} = 2^{3x - 3}.

  2. Equal powers of the same base have equal exponents: 2x+2=3x−32x + 2 = 3x - 3, so x=5x = 5.

  3. Check: 46=(22)6=2124^6 = (2^2)^6 = 2^{12} and 84=(23)4=2128^4 = (2^3)^4 = 2^{12}, both equal to 4096.

Answer

x=5x = 5. Equating the exponents before changing the base (x+1=x−1x + 1 = x - 1) has no solution and is the usual false start.

Example 2: A logarithmic equation and its domain

Solve log⁡2x+log⁡2(x−2)=3\log_2 x + \log_2 (x - 2) = 3.

  1. The domain of the original equation needs x>0x > 0 and x−2>0x - 2 > 0, so x>2x > 2.

  2. Combine with the product law: log⁡2(x(x−2))=3\log_2 \left(x(x - 2)\right) = 3, so x(x−2)=23=8x(x - 2) = 2^3 = 8.

  3. Solve x2−2x−8=0x^2 - 2x - 8 = 0: (x−4)(x+2)=0(x - 4)(x + 2) = 0, so x=4x = 4 or x=−2x = -2.

  4. Reject x=−2x = -2: it makes log⁡2x\log_2 x undefined. Check x=4x = 4: log⁡24+log⁡22=2+1=3\log_2 4 + \log_2 2 = 2 + 1 = 3.

Answer

x=4x = 4 only. Listing both roots of the quadratic is the tempting wrong answer: −2-2 satisfies the combined equation but not the original one.

Example 3: Composition and inverse

Let f(x)=2x−3f(x) = 2x - 3 and g(x)=x2+1g(x) = x^2 + 1. Find f(g(2))f(g(2)), g(f(2))g(f(2)) and f−1(7)f^{-1}(7).

  1. Inside out for f(g(2))f(g(2)): g(2)=4+1=5g(2) = 4 + 1 = 5, then f(5)=10−3=7f(5) = 10 - 3 = 7.

  2. For g(f(2))g(f(2)): f(2)=4−3=1f(2) = 4 - 3 = 1, then g(1)=1+1=2g(1) = 1 + 1 = 2. The order matters.

  3. For f−1(7)f^{-1}(7): solve 2x−3=72x - 3 = 7, so x=5x = 5. Or find the inverse in general: y=2x−3y = 2x - 3 gives x=y+32x = \frac{y + 3}{2}, so f−1(7)=102=5f^{-1}(7) = \frac{10}{2} = 5.

  4. Cross-check: f(5)=7f(5) = 7 from the first step, so f−1(7)=5f^{-1}(7) = 5 agrees.

Answer

f(g(2))=7f(g(2)) = 7, g(f(2))=2g(f(2)) = 2 and f−1(7)=5f^{-1}(7) = 5. Computing 1f(7)=111\frac{1}{f(7)} = \frac{1}{11} confuses the inverse function with the reciprocal.

Common traps

  • Inventing laws of logarithms

    log⁡(x+y)\log(x + y) does not equal log⁡x+log⁡y\log x + \log y, and log⁡x⋅log⁡y\log x \cdot \log y is not log⁡(xy)\log(xy). Only the logarithm of a product, a quotient or a power simplifies. When an option looks too neat, check it with numbers: log⁡10(10+10)≈1.3\log_{10}(10 + 10) \approx 1.3, not 22.

  • Keeping every root of a log equation

    Combining logarithms can create candidates outside the original domain. Substitute each candidate into the original arguments; any that is zero or negative is rejected.

  • Shifting the graph the wrong way

    f(x−3)f(x - 3) moves the graph 3 units to the right, not the left, because the input must be 3 larger to give the same output. Check with one point: the point where the inside equals zero has moved to x=3x = 3.

  • Confusing the inverse with the reciprocal

    f−1(x)f^{-1}(x) is the function that undoes ff; 1f(x)\frac{1}{f(x)} is the reciprocal. They are different almost always. Test: f(f−1(x))f(f^{-1}(x)) must give back xx.

Check yourself

Choose an answer to each question: you will see at once whether it is right, and why.

Question 1: A logarithm from given values

Algebra and functions

Given log⁡102≈0.30\log_{10} 2 \approx 0.30 and log⁡103≈0.48\log_{10} 3 \approx 0.48, which is the best approximation of log⁡1072\log_{10} 72?

Show the answer

Answer: D. 1.861.86

Working

72=8⋅9=23⋅3272 = 8 \cdot 9 = 2^3 \cdot 3^2, so log⁡1072=3log⁡102+2log⁡103≈0.90+0.96=1.86\log_{10} 72 = 3\log_{10} 2 + 2\log_{10} 3 \approx 0.90 + 0.96 = 1.86. Second route: 72=2⋅6272 = 2 \cdot 6^2, so log⁡1072=log⁡102+2log⁡106≈0.30+2(0.78)=1.86\log_{10} 72 = \log_{10} 2 + 2\log_{10} 6 \approx 0.30 + 2(0.78) = 1.86. Sense check: 7272 lies between 1010 and 100100, so its logarithm lies between 1 and 2.

Why the other options are wrong

  • A. This is log⁡102+log⁡103=log⁡106\log_{10} 2 + \log_{10} 3 = \log_{10} 6: the exponents in 72=23⋅3272 = 2^3 \cdot 3^2 were ignored.
  • B. This multiplies 3×0.303 \times 0.30 by 2×0.482 \times 0.48; the logarithm of a product is a sum of logarithms, not a product.
  • C. This is 2log⁡106=log⁡10362\log_{10} 6 = \log_{10} 36: the remaining factor 2 in 72=36⋅272 = 36 \cdot 2 was left out.
  • E. This uses 22⋅332^2 \cdot 3^3, which is 108, not 72: the two exponents were swapped.

What carries over

Factorise the number into the primes whose logarithms you are given, then add the logarithms with their exponents as multipliers.

Question 2: Domain with a root and a logarithm

Algebra and functions

What is the domain of f(x)=4−xln⁡(x−1)f(x) = \frac{\sqrt{4 - x}}{\ln(x - 1)}?

Show the answer

Answer: E. 1<x≤41 < x \le 4, x≠2x \ne 2

Working

Three conditions. The root: 4−x≥04 - x \ge 0, so x≤4x \le 4. The logarithm: x−1>0x - 1 > 0, so x>1x > 1. The denominator: ln⁡(x−1)≠0\ln(x - 1) \ne 0, so x−1≠1x - 1 \ne 1, x≠2x \ne 2. Together: 1<x≤41 < x \le 4 with x≠2x \ne 2.

Why the other options are wrong

  • A. This forgets that the denominator ln⁡(x−1)\ln(x - 1) is zero at x=2x = 2, where the fraction is undefined.
  • B. This ignores the square root, which needs 4−x≥04 - x \ge 0, so values above 4 are not allowed.
  • C. At x=1x = 1 the argument of the logarithm is zero, and ln⁡0\ln 0 is undefined.
  • D. This excludes x=4x = 4, but 0=0\sqrt{0} = 0 is defined and ln⁡3≠0\ln 3 \ne 0, so f(4)=0f(4) = 0 exists.

What carries over

List every restriction separately (denominator, even root, logarithm) and only then intersect them.

Question 3: An exponential equation in disguise

Algebra and functions

What is the sum of all real solutions of 9x−4⋅3x+3=09^x - 4 \cdot 3^x + 3 = 0?

Show the answer

Answer: B. 11

Working

Put t=3x>0t = 3^x > 0, so 9x=t29^x = t^2 and the equation becomes t2−4t+3=0t^2 - 4t + 3 = 0, that is (t−1)(t−3)=0(t - 1)(t - 3) = 0. Then 3x=13^x = 1 gives x=0x = 0 and 3x=33^x = 3 gives x=1x = 1. The sum is 1. Check: x=1x = 1 gives 9−12+3=09 - 12 + 3 = 0; x=0x = 0 gives 1−4+3=01 - 4 + 3 = 0.

Why the other options are wrong

  • A. 0 is one of the two solutions (or their product), not their sum; the solution x=1x = 1 was left out.
  • C. 3 is a value of t=3xt = 3^x, not of xx; the substitution was not undone.
  • D. 4 is the sum of the values of t=3xt = 3^x (1 and 3), not of the values of xx.
  • E. Both values of tt are positive, so both give real xx; only a negative tt would have to be rejected.

What carries over

When one power is the square of another, substitute, solve the quadratic, and translate each positive root back to the original unknown.

Flashcards

Recall the answer before you flip each card, then say whether you knew it. Cards you miss come back at the end.

Definition of a logarithm
log⁡ab=c\log_a b = c means ac=ba^c = b, with a>0a > 0, a≠1a \ne 1 and b>0b > 0.
The three laws of logarithms
log⁡a(xy)=log⁡ax+log⁡ay\log_a(xy) = \log_a x + \log_a y, log⁡axy=log⁡ax−log⁡ay\log_a \frac{x}{y} = \log_a x - \log_a y, log⁡axn=nlog⁡ax\log_a x^n = n\log_a x.
Change of base
log⁡ab=log⁡cblog⁡ca\log_a b = \frac{\log_c b}{\log_c a} for any valid base cc.
Solving an equation like 9x−4⋅3x+3=09^x - 4 \cdot 3^x + 3 = 0
Substitute t=3xt = 3^x (so 9x=t29^x = t^2), solve the quadratic in tt, reject negative tt, then solve 3x=t3^x = t.
Three restrictions on a domain
A denominator cannot be zero, an even root needs a non-negative radicand, and a logarithm needs a positive argument.
Effect of f(x−h)+kf(x - h) + k on a graph
The graph of ff moves hh units to the right and kk units up.

Key points

  • log⁡ab=c\log_a b = c means ac=ba^c = b; the argument must be positive.

  • Logarithms turn products into sums, quotients into differences and powers into multipliers; sums do not split.

  • Solve exponential equations by a common base or by substituting for the repeated power.

  • Check every candidate of a logarithmic equation in the original equation.

  • f(x−h)+kf(x - h) + k moves the graph hh to the right and kk up.

All questions here are original and written for UniExamer; none comes from the test maker.

Written and reviewed by the UniExamer education and assessment team. Every worked example and check question was checked before publication. If you find a mistake, write to support@uniexamer.com.

Practise this topic

Fresh questions on this skill, with worked explanations. Practice needs a Single Exam Pass or Plus.