Jugami Algebra

Jugami › Algebra › Exponential and Logarithmic Functions

Exponential and Logarithmic Functions

Quantities that grow or shrink by the same percent each step, the logarithms that undo them, and how to solve equations where the unknown sits in an exponent.

An exponential function like y = 2x multiplies by the same number every time x goes up by 1. A logarithm answers the reverse question: what power gives this number? Since 23 = 8, we write log2 8 = 3. Logs are the inverse of exponentials, so their graphs are mirror images across the line y = x.

The graphs of y = 2 to the x and y = log base 2 of xxy−4−3−2−123456−4−3−2−123456y = 2ˣy = log₂ xy = x(0, 1)(1, 0)(2, 4)(2, 1)
Teal: y = 2x passes through (0, 1), (1, 2) and (2, 4). Plum: y = log2 x passes through (1, 0), (2, 1) and (4, 2). Swapping x and y turns one graph into the other, a reflection across the dashed line y = x.

Growth and decay

An exponential model has the form y = a · bx. The number a is the starting value (the value of y when x = 0) and b is the growth factor, what you multiply by each step. If b > 1 the model shows growth; if b is between 0 and 1 it shows decay. A percent rate r, written as a decimal, gives the factor: b = 1 + r for growth and b = 1 − r for decay.

Exponential growth and decayxy−4−3−2−11234−1234560y = 2ˣy = (1/2)ˣ(0, 1)
Teal: y = 2x doubles each step, so it grows. Coral: y = (1/2)x halves each step, so it decays. Both pass through (0, 1).

Example 1: Growth or decay, and at what rate?

y = 300 · 1.06xb = 1.06 > 1, so growth: 1.06 = 1 + 0.06, a 6% ratey = 50 · 0.92xb = 0.92 < 1, so decay: 0.92 = 1 − 0.08, an 8% rate

Example 2: A car that loses 15% of its value a year

y = 24000 · 0.85tIt starts at $24,000 and keeps 85% each yeary = 24000 · 0.854After 4 yearsy ≈ 12528.15About $12,528

Compound interest and the number e

If P dollars earn a yearly rate r compounded n times a year, after t years the amount is A = P(1 + r/n)nt. Compounding more often helps a little, but not without limit. The values of (1 + 1/n)n settle down toward a number near 2.718, called e. When interest is compounded continuously, A = P · ert.

Values of (1 + 1/n)^n
n(1 + 1/n)^n
12
122.61304 (rounded)
3652.71457 (rounded)
10000002.71828 (rounded)

Example 3: $2000 at 4% compounded monthly for 5 years

A = 2000(1 + 0.04/12)12 · 5P = 2000, r = 0.04, n = 12, t = 5A ≈ 2441.99About $2,441.99. Compounded yearly it would be about $2,433.31

Example 4: The same money compounded continuously

A = 2000 · e0.04 · 5Use A = P · ertA = 2000 · e0.2A ≈ 2442.81Only about 82 cents more than monthly

Logarithms as inverses

For a base b with b > 0 and b ≠ 1, logb x = y means exactly the same as by = x. The log is the exponent. Because the two undo each other, logb(bx) = x and blogb x = x. You can only take the log of a positive number. Two bases have special names: the common log log x means base 10, and the natural log ln x means base e.

Example 5: Write in log form

25 = 32The base is 2 and the exponent is 5log2 32 = 5The log equals the exponent

Example 6: Write in exponential form

log3 81 = 4The base is 3 and the log is 434 = 81

Example 7: Evaluate logs

log5(1/25) = −25−2 = 1/25log 1000 = 3103 = 1000ln(e4) = 4ln undoes e to a power

Log rules

Logs turn multiplying into adding, because exponents add when you multiply powers. For positive M and N:

  • Product rule: logb(MN) = logb M + logb N
  • Quotient rule: logb(M/N) = logb M − logb N
  • Power rule: logb(Mk) = k · logb M
  • Change of base: logb M = log M/log b, which lets a calculator find any log

Example 8: Expand a log

log2(8x3) = log2 8 + log2(x3)Product rule, for x > 0log2(8x3) = 3 + 3log2 xlog2 8 = 3, and the power rule brings the 3 down

Example 9: Condense and evaluate

log3 54 − log3 2 = log3(54/2)Quotient rulelog3 27 = 333 = 27

Example 10: Use change of base

log5 30 = log 30/log 5Change of baselog5 30 ≈ 2.113Check: 52 = 25 and 53 = 125, so the answer is between 2 and 3

Solving exponential equations

If both sides can be written with the same base, set the exponents equal. If not, get the power alone and take a log of both sides; the power rule brings the unknown down from the exponent.

Example 11: Same base

32x − 1 = 3327 = 332x − 1 = 3Same base, so the exponents are equalx = 2

Example 12: Take a log of both sides

5 · 2x = 60Start from the original equation2x = 12Divide both sides by 5 firstx = log 12/log 2Take the log of both sides; the power rule gives x · log 2 = log 12x ≈ 3.585

Example 13: How long until money doubles at 5% continuous interest?

1000 · e0.05t = 2000Any starting amount works; use $1000e0.05t = 2Divide by 10000.05t = ln 2Take the natural log of both sidest ≈ 13.86About 13.86 years

Solving log equations

To solve a log equation, combine the logs into one, then rewrite it in exponential form. Always check each answer in the original equation: every log must be of a positive number. A solution that breaks this is extraneous and must be rejected.

Example 14: Rewrite in exponential form

log3(2x + 1) = 42x + 1 = 34Exponential form2x + 1 = 81x = 40Check: 2(40) + 1 = 81 > 0 ✓

Example 15: Reject an extraneous root

log2 x + log2(x − 2) = 3The original equation. Both logs must be of positive numbers, so x > 0 and x − 2 > 0: the domain is x > 2log2(x(x − 2)) = 3Product rulex(x − 2) = 23Exponential formx2 − 2x − 8 = 0(x − 4)(x + 2) = 0So x = 4 or x = −2x = 4Check against the original equation's domain x > 2: 4 works, but x = −2 would need log2(−2) and log2(−4), which are not defined, so it is extraneous

Example 16: A quotient of logs

log(x + 3/x) = log 4Quotient rule on log(x + 3) − log x = log 4x + 3/x = 4Logs of equal numbers are equalx + 3 = 4xx = 1Check: x + 3 = 4 and x = 1 are both positive ✓

Graphs and asymptotes

For b > 1 the graph of y = bx rises from left to right, passes through (0, 1) and (1, b), and gets closer and closer to the x-axis on the left without touching it: the line y = 0 is a horizontal asymptote. Its domain is all real numbers and its range is y > 0.

The graph of y = logb x is the reflection: it passes through (1, 0) and (b, 1), and the line x = 0 is a vertical asymptote. Its domain is x > 0 and its range is all real numbers. Shifting a graph shifts its asymptote with it.

Shifted exponential and log graphs with their asymptotesxy−6−5−2−11234−5−4−11340y = 2ˣ − 3(0, −2)(−3, 0)
Teal: y = 2x − 3 is y = 2x moved down 3, so its asymptote is the dashed line y = −3. Plum: y = log2(x + 4) is y = log2 x moved left 4, so its asymptote is the dashed line x = −4 and its domain is x > −4.

Common mistakes

✗Writing logb(M + N) = logb M + logb N.✓The product rule is about logb(MN). There is no rule for the log of a sum.
✗Reading y = 50 · 0.92x as a 92% decay.✓The factor is what is left: 1 − 0.92 = 0.08, an 8% decay.
✗Writing log 12/log 2 as log 6.✓Change of base gives a quotient of logs, not the log of a quotient: log 12/log 2 ≈ 3.585.
✗Keeping every root of a log equation.✓Check each root in the original equation; a log of zero or a negative number makes it extraneous.
✗Rounding in the middle of a calculation.✓Keep full calculator values and round only the final answer.

Practice problems

Try each one, then open the answer to check your work.

  1. A town of 1500 people grows 3% a year. Write a model and find the population after 10 years.
    Show answer
    y = 1500 · 1.03tb = 1 + 0.03y ≈ 20161500 · 1.0310 ≈ 2015.87, about 2016 people
  2. Find the amount when $500 is invested at 6% compounded quarterly for 3 years.
    Show answer
    A = 500(1 + 0.06/4)4 · 3A ≈ 597.81
  3. Write log4 64 = 3 in exponential form.
    Show answer
    43 = 64
  4. Evaluate log2(1/8).
    Show answer
    log2(1/8) = −32−3 = 1/8
  5. Condense log2 40 − log2 5 and evaluate.
    Show answer
    log2(40/5) = log2 8Quotient rule3
  6. Solve 2x + 3 = 32.
    Show answer
    2x + 3 = 25x + 3 = 5x = 2
  7. Solve 4 · 3x = 50. Round to 3 decimal places.
    Show answer
    3x = 12.5x = log 12.5/log 3x ≈ 2.299
  8. Solve log5(x − 2) = 2.
    Show answer
    x − 2 = 52x = 27Check: 27 − 2 = 25 > 0 ✓
  9. Solve log3 x + log3(x − 8) = 2.
    Show answer
    x(x − 8) = 32Product rule, then exponential formx2 − 8x − 9 = 0(x − 9)(x + 1) = 0x = 9x = −1 is extraneous

History: tables that saved time

The Scottish mathematician John Napier described logarithms in a book published in 1614, Mirifici logarithmorum canonis descriptio. His aim was to turn long multiplications into additions. Napier's own logarithms were not quite the base 10 or base e logs we use today. Henry Briggs worked with him on a base 10 version, and published his first table of these common logarithms, Logarithmorum chilias prima, in 1617.

The number e came from money. According to the MacTutor History of Mathematics archive, in 1683 Jacob Bernoulli studied continuous compound interest and tried to find the limit of (1 + 1/n)n as n grows. The letter e for this number first appears in a letter Leonhard Euler wrote to Christian Goldbach in 1731. MacTutor calls the claim that Euler chose e for his own name ridiculous.

Connections

Exponential functions first appear in Functions and Their Graphs, and the log rules come straight from the rules for powers in Exponents and Radicals. Geometric sequences in Sequences and Series are exponential growth counted in whole steps.

Solving a log equation often ends in a quadratic, from Quadratic Equations, and checking for extraneous roots works just like it does in Rational Expressions and Equations.

Practice generator

Pick a level, or Mixed for a bit of everything. Answers are a single number, like 5, −2, 1/3 or 2.161. When a problem asks you to round, keep full calculator values and round only at the end. You can type x = in front, and a dollar sign or percent sign is fine.

Sources

Credits: all diagrams on this page are original SVG drawings made for Jugami. Every answer was double-checked.