Skip to content

Unit 5: Exponential & Logarithmic Functions

AP Precalc cheatsheet

Open β†—

Loading…


An exponential function has the form

y=bx,y=b^x,

where

b>0andb≠1.b>0 \qquad\text{and}\qquad b\ne 1.

The base bb is constant, and the variable is in the exponent. This is different from a power function like

y=xn,y=x^n,

where the base is variable and the exponent is constant.

We require b>0b>0 because negative bases can break continuity over the real numbers. For example, with

y=(βˆ’2)x,y=(-2)^x,

integer inputs are fine, but many fractional inputs are not real-valued in a consistent way. We also exclude b=1b=1 because

y=1x=1y=1^x=1

is just a constant function, not exponential growth or decay.

For

y=bx,y=b^x,

there are two basic shapes:

  • If b>1b>1, the function is increasing and represents exponential growth.
  • If 0<b<10<b<1, the function is decreasing and represents exponential decay.

Both have:

  • Domain: (βˆ’βˆž,∞)(-\infty,\infty).
  • Range: (0,∞)(0,\infty).
  • Horizontal asymptote: y=0y=0.
  • yy-intercept: (0,1)(0,1).

The decay case can always be rewritten using a reciprocal base:

bβˆ’x=(1b)x.b^{-x}=\left(\frac1b\right)^x.

For example,

2βˆ’x=(12)x.2^{-x}=\left(\frac12\right)^x.

But, you should always be careful with signs:

βˆ’2x=βˆ’(2x),-2^x=-(2^x),

which is a reflection of 2x2^x over the xx-axis. It is not the same as (βˆ’2)x(-2)^x.

A transformed exponential function often looks like

y=aβ‹…bxβˆ’h+k.y=a\cdot b^{x-h}+k.

The transformation rules are the same as other parent functions:

  • aa vertically stretches/compresses and reflects over the xx-axis if a<0a<0.
  • hh shifts the graph horizontally.
  • kk shifts the graph vertically.

The horizontal asymptote moves from y=0y=0 to

y=k.y=k.

Example. Graph the function and give the domain and range of

y=12(4)xβˆ’3+2.y=\frac12(4)^{x-3}+2.

The parent function 4x4^x is exponential growth because 4>14>1. The expression xβˆ’3x-3 shifts the graph right 33 units, the factor 12\frac12 vertically compresses it, and the +2+2 shifts it up 22 units.

The horizontal asymptote is

y=2.y=2.

The domain is

(βˆ’βˆž,∞).(-\infty,\infty).

Since 12(4)xβˆ’3>0\frac12(4)^{x-3}>0 for every real xx, the range is

(2,∞).(2,\infty).

The graph is shown below (the dashed line is the horizontal asymptote):

Β‘2Β‘11234567510152025xy

The natural exponential function is defined as

y=ex,y=e^x,

where ee (Euler’s number) is a special constant. One property of ee is that:

e=lim⁑xβ†’βˆž(1+1x)x.e=\lim_{x\to\infty}\left(1+\frac1x\right)^x.

Numerically, as xx gets very large, the expression gets closer and closer to ee. After plugging in larger and larger values of xx, you find that eβ‰ˆ2.71828e\approx 2.71828. In addition, the instantaneous rate of change of y=exy=e^x is equal to itself! We will demonstrate this below:

Example. Approximate the rate of change of exe^x for smaller and smaller intervals.

Rhe average rate of change on [1,1.1][1,1.1] is

e1.1βˆ’e11.1βˆ’1β‰ˆ2.8588.\frac{e^{1.1}-e^1}{1.1-1}\approx 2.8588.

On smaller intervals:

[1,1.01]β‡’2.7319,[1,1.01]\quad\Rightarrow\quad 2.7319, [1,1.001]β‡’2.7196,[1,1.001]\quad\Rightarrow\quad 2.7196, [1,1.0000001]β‡’2.71829.[1,1.0000001]\quad\Rightarrow\quad 2.71829.

As the interval gets smaller, the rate of change becomes increasingly instantaneous. One reason why exe^x is studied so much is topics like calculus is that it is equal to its own instantaneous rate of change, like derivatives!

exe^x is an exponential growth function because e>1e>1. Like other exponential functions, it has domain (βˆ’βˆž,∞)(-\infty,\infty), range (0,∞)(0,\infty), horizontal asymptote y=0y=0, and yy-intercept (0,1)(0,1).

The exponential function also appears in the definitions of the hyperbolic sine and hyperbolic cosine functions:

sinh⁑x=12(exβˆ’eβˆ’x),\sinh x=\frac12(e^x-e^{-x}),

and

cosh⁑x=12(ex+eβˆ’x).\cosh x=\frac12(e^x+e^{-x}).

These are pronounced β€œcinch” and β€œcosh.” They behave somewhat like trigonometric functions, but they are built from exponentials.

Example. Show that

(cosh⁑x)2=12(cosh⁑(2x)+1).(\cosh x)^2=\frac12(\cosh(2x)+1).

Using the definition,

(cosh⁑x)2=(12(ex+eβˆ’x))2.(\cosh x)^2 =\left(\frac12(e^x+e^{-x})\right)^2.

Square:

(cosh⁑x)2=14(e2x+2+eβˆ’2x).(\cosh x)^2 =\frac14(e^{2x}+2+e^{-2x}).

Rewrite:

14(e2x+2+eβˆ’2x)=12(12(e2x+eβˆ’2x)+1).\frac14(e^{2x}+2+e^{-2x}) =\frac12\left(\frac12(e^{2x}+e^{-2x})+1\right).

Since

cosh⁑(2x)=12(e2x+eβˆ’2x),\cosh(2x)=\frac12(e^{2x}+e^{-2x}),

we get

(cosh⁑x)2=12(cosh⁑(2x)+1).(\cosh x)^2=\frac12(\cosh(2x)+1).

Similarly,

(sinh⁑x)2=12(cosh⁑(2x)βˆ’1).(\sinh x)^2=\frac12(\cosh(2x)-1).

A logarithm is the inverse function of an exponent. The expression

y=log⁑bxy = \log_b x

means ”yy is the the exponent you put on bb to get xx.”

In equation form:

log⁑bx=y⟺by=x.\log_b x=y \quad\Longleftrightarrow\quad b^y=x.

The base must satisfy

b>0andb≠1.b>0 \qquad\text{and}\qquad b\ne 1.

The input must satisfy

x>0.x>0.

So the parent logarithmic function

y=log⁑bxy=\log_b x

has:

  • Domain: (0,∞)(0,\infty).
  • Range: (βˆ’βˆž,∞)(-\infty,\infty).
  • Vertical asymptote: x=0x=0.
  • xx-intercept: (1,0)(1,0).

Note that this is the opposite of the exponent function, which is expected since they are inverses! Accordingly, the graph of y=log⁑bxy=\log_b x is the reflection of y=bxy=b^x across the line y=xy=x.

Example. Evaluate each logarithm.

1.log⁑392.log⁑5(125)3.log⁑8321. \log_3 9 2. \log_5\left(\frac1{25}\right) 3. \log_8 32

First,

log⁑39=2\log_3 9=2

because

32=9.3^2=9.

Also,

log⁑5(125)=βˆ’2\log_5\left(\frac1{25}\right)=-2

because

5βˆ’2=125.5^{-2}=\frac1{25}.

Finally,

log⁑832=53\log_8 32=\frac53

because

85/3=(23)5/3=25=32.8^{5/3}=(2^3)^{5/3}=2^5=32.

For

y=log⁑bx,y=\log_b x,

the shape depends on the base:

  • If b>1b>1, then log⁑bx\log_b x is increasing.
  • If 0<b<10<b<1, then log⁑bx\log_b x is decreasing.

This matters for inequalities. If b>1b>1, then

log⁑bx>log⁑by⟺x>y.\log_b x>\log_b y \quad\Longleftrightarrow\quad x>y.

But if 0<b<10<b<1, the inequality reverses:

log⁑bx>log⁑by⟺x<y.\log_b x>\log_b y \quad\Longleftrightarrow\quad x<y.

Just like negative numbers, bases 0<b<10<b<1 require the inequality to reverse.

When the base is ee, the logarithm is called the natural logarithm:

log⁑ex=ln⁑x.\log_e x=\ln x.

Thus

y=ln⁑xy=\ln x

is the inverse of

y=ex.y=e^x.

The natural logarithm has domain (0,∞)(0,\infty), range (βˆ’βˆž,∞)(-\infty,\infty), vertical asymptote x=0x=0, and xx-intercept (1,0)(1,0). It is also good to note that log10xlog_10 x is often just abbreviated as log⁑x\log x.


Logarithm rules come from exponent rules. For M>0M>0, N>0N>0, and valid base bb:

It is often convenient on the calculator to change to base 1010 or base ee.

These rules only apply when every logarithm is defined.

Example. Rewrite as a single logarithm with coefficient 11:

log⁑(x2βˆ’16)βˆ’3(log⁑(x+4)+2log⁑x).\log(x^2-16)-3\bigl(\log(x+4)+2\log x\bigr).

First factor:

x2βˆ’16=(xβˆ’4)(x+4).x^2-16=(x-4)(x+4).

Then use the product rule and power rule:

log⁑(x2βˆ’16)βˆ’3(log⁑(x+4)+2log⁑x)\log(x^2-16)-3\bigl(\log(x+4)+2\log x\bigr) =log⁑(xβˆ’4)+log⁑(x+4)βˆ’3log⁑(x+4)βˆ’6log⁑x.=\log(x-4)+\log(x+4)-3\log(x+4)-6\log x.

Use the power rule:

=log⁑(xβˆ’4)+log⁑(x+4)βˆ’log⁑((x+4)3)βˆ’log⁑(x6).=\log(x-4)+\log(x+4)-\log((x+4)^3)-\log(x^6).

Combine:

=log⁑((xβˆ’4)(x+4)(x+4)3x6).=\log\left(\frac{(x-4)(x+4)}{(x+4)^3x^6}\right).

Cancel one factor of x+4x+4:

log⁑(xβˆ’4(x+4)2x6).\log\left(\frac{x-4}{(x+4)^2x^6}\right).

The original expression requires

x2βˆ’16>0,x+4>0,x>0,x^2-16>0,\qquad x+4>0,\qquad x>0,

so actually x>4x>4.

Example. Expand:

log⁑5x+3x3.\log_5\sqrt[3]{\frac{x+3}{x}}.

Rewrite the radical as a power:

log⁑5x+3x3=log⁑5(x+3x)1/3.\log_5\sqrt[3]{\frac{x+3}{x}} =\log_5\left(\frac{x+3}{x}\right)^{1/3}.

Use the power rule:

=13log⁑5(x+3x).=\frac13\log_5\left(\frac{x+3}{x}\right).

Then use the quotient rule:

13log⁑5(x+3)βˆ’13log⁑5x.\frac13\log_5(x+3)-\frac13\log_5 x.

Example. Simplify

log⁑e22.\log_{e^2}2.

Using change of base with base ee:

log⁑e22=ln⁑2ln⁑(e2).\log_{e^2}2=\frac{\ln 2}{\ln(e^2)}.

Since

ln⁑(e2)=2,\ln(e^2)=2,

we get

ln⁑22.\frac{\ln 2}{2}.

Equations and inequalities with logarithms and exponentials

Section titled β€œEquations and inequalities with logarithms and exponentials”

There are three common strategies:

Example. Solve

3xβˆ’1=42x.3^{x-1}=4^{2x}.

Take natural logs of both sides:

ln⁑(3xβˆ’1)=ln⁑(42x).\ln(3^{x-1})=\ln(4^{2x}).

Use the power rule:

(xβˆ’1)ln⁑3=2xln⁑4.(x-1)\ln 3=2x\ln 4.

Expand and collect xx:

xln⁑3βˆ’ln⁑3=2xln⁑4,x\ln 3-\ln 3=2x\ln 4, x(ln⁑3βˆ’2ln⁑4)=ln⁑3.x(\ln 3-2\ln 4)=\ln 3.

Therefore

x=ln⁑3ln⁑3βˆ’2ln⁑4.x=\frac{\ln 3}{\ln 3-2\ln 4}.

Sometimes graphing technology is a good way to check your answer. For the previous example, you could graph

y1=3xβˆ’1andy2=42xy_1=3^{x-1} \qquad\text{and}\qquad y_2=4^{2x}

and find their intersection.

Some exponential equations become quadratics after substitution.

Example. Solve

ex+eβˆ’x=2.e^x+e^{-x}=2.

Rewrite eβˆ’xe^{-x} as 1ex\frac1{e^x}:

ex+1ex=2.e^x+\frac1{e^x}=2.

Multiply by exe^x:

e2x+1=2ex.e^{2x}+1=2e^x.

Rearrange:

e2xβˆ’2ex+1=0.e^{2x}-2e^x+1=0.

Factor:

(exβˆ’1)2=0.(e^x-1)^2=0.

Thus

ex=1,e^x=1,

so

x=0.x=0.

When solving logarithmic equations or inequalities, first impose the domain. Every logarithm input must be positive.

Example. Solve

ln⁑(3xβˆ’24x+1)>ln⁑4.\ln\left(\frac{3x-2}{4x+1}\right)>\ln 4.

First require the logarithm input to be positive:

3xβˆ’24x+1>0.\frac{3x-2}{4x+1}>0.

The critical numbers are

x=23andx=βˆ’14.x=\frac23 \qquad\text{and}\qquad x=-\frac14.

So the domain is

(βˆ’βˆž,βˆ’14)βˆͺ(23,∞).\left(-\infty,-\frac14\right)\cup\left(\frac23,\infty\right).

Now use that ln⁑x\ln x is increasing:

3xβˆ’24x+1>4.\frac{3x-2}{4x+1}>4.

Move everything to one side:

3xβˆ’2βˆ’4(4x+1)4x+1>0.\frac{3x-2-4(4x+1)}{4x+1}>0.

Simplify:

βˆ’13xβˆ’64x+1>0.\frac{-13x-6}{4x+1}>0.

The critical numbers are

x=βˆ’613andx=βˆ’14.x=-\frac6{13} \qquad\text{and}\qquad x=-\frac14.

The rational inequality is true on

(βˆ’613,βˆ’14).\left(-\frac6{13},-\frac14\right).

This interval is inside the logarithm’s domain, so the solution is

(βˆ’613,βˆ’14).\left(-\frac6{13},-\frac14\right).

  1. Let f(x)=3βˆ’2β‹…5x+1f(x)=3-2\cdot 5^{x+1}. State the domain, range, horizontal asymptote, intercepts, intervals of increase/decrease, and find an explicit formula for fβˆ’1(x)f^{-1}(x) with the domain and range of the inverse.
  1. The points (βˆ’1,17)(-1,17) and (2,1)(2,1) lie on the graph of g(x)=aβ‹…bxβˆ’h+kg(x)=a\cdot b^{x-h}+k. The horizontal asymptote is y=βˆ’1y=-1, and h=1h=1. Find aa and bb, then determine whether gg represents exponential growth or decay.
  1. Find all real solutions to 4x+1βˆ’10β‹…2x+1=04^{x+1}-10\cdot 2^x+1=0. Give exact answers.
  1. Solve in R\mathbb{R}: 32xβˆ’28β‹…3x+27≀03^{2x}-28\cdot 3^x+27\le 0. Write the answer in interval notation.
  1. Solve for xx exactly: 2x+1=52xβˆ’3.2^{x+1}=5^{2x-3}.
  1. Solve in R\mathbb{R}: ex+eβˆ’x=136.e^x+e^{-x}=\frac{13}{6}.
  1. Rewrite the following expression as a single logarithm with coefficient 11, and state the full domain of the original expression: 12ln⁑(x2βˆ’9)βˆ’2ln⁑(xβˆ’3)+ln⁑(x+1x).\frac12\ln(x^2-9)-2\ln(x-3)+\ln\left(\frac{x+1}{x}\right).
  1. Expand completely using logarithm properties, and state all restrictions on xx and yy: log⁑3(x4yβˆ’2(x2+1)3(5βˆ’y)).\log_3\left(\frac{x^4\sqrt{y-2}}{(x^2+1)^3(5-y)}\right).
  1. Solve in R\mathbb{R}: log⁑1/3(2xβˆ’1)β‰₯log⁑1/3(7βˆ’x).\log_{1/3}(2x-1)\ge \log_{1/3}(7-x).
  1. Solve in R\mathbb{R}: ln⁑(x2βˆ’5x+6)≀ln⁑(2x+3).\ln(x^2-5x+6)\le \ln(2x+3).
  1. Let h(x)=log⁑4(16βˆ’4x)βˆ’2h(x)=\log_4(16-4x)-2. State the domain, range, vertical asymptote, intercepts, intervals of increase/decrease, and find hβˆ’1(x)h^{-1}(x). Graph both equations.
  1. A population is modeled by P(t)=12001+19eβˆ’0.4tP(t)=\dfrac{1200}{1+19e^{-0.4t}} for tβ‰₯0t\ge 0. Find the initial population, the limiting population (aka horizontal asymptote), and the exact time when P(t)=900P(t)=900.
  1. Find the unique positive integer nn such that log⁑2(log⁑16n)=log⁑4(log⁑4n)\log_2 (\log_{16} n) = \log_4 (\log_4 n) (2020 AMC 12A).
  1. Let F(x)=ln⁑(xβˆ’abβˆ’x)F(x)=\ln\left(\dfrac{x-a}{b-x}\right), where a<ba<b. Find the domain, intercepts in terms of aa and bb, the vertical asymptotes, and an explicit formula for Fβˆ’1(x)F^{-1}(x). Then determine the range of FF.
  1. Find the exact value of the product ∏k=463log⁑k(5k2βˆ’1)log⁑k+1(5k2βˆ’4)\prod_{k=4}^{63}\frac{\log_k\left(5^{k^2-1}\right)}{\log_{k+1}\left(5^{k^2-4}\right)}. (Hint: Use change of base and cancel out things to simplify the expression) (2025 AIME II)
  1. (Bonus, The EML function)

Define a binary operation called EML⁑\operatorname{EML} by

EML⁑(x,y)=exβˆ’ln⁑y,\operatorname{EML}(x,y)=e^x-\ln y,

where y>0y>0.

(A)(A) First, show that EML contains the exponential function directly: ex=EML⁑(x,1).e^x=\operatorname{EML}(x,1).

(B)(B) Now show that EML also contains logarithms: EML⁑(0,x)=1βˆ’ln⁑x.\operatorname{EML}(0,x)=1-\ln x. Use this equation to solve for ln⁑x\ln x in terms of EML⁑(0,x)\operatorname{EML}(0,x).

(C)(C) Using part (B)(B), write log⁑bx\log_b x in terms of EML expressions, where b>0b>0, bβ‰ 1b\ne1, and x>0x>0.

(D)(D) Since EML can produce both exponentials and logarithms, it can also build simpler operations. Use the identities x+y=ln⁑(exey)x+y=\ln(e^x e^y) and xβˆ’y=ln⁑(exey)x-y=\ln\left(\frac{e^x}{e^y}\right) to write formulas for x+yx+y and xβˆ’yx-y using EML expressions.

(E)(E) An EML tree is an expression built by repeatedly feeding outputs of EML into new EML operations. For example, EML⁑(EML⁑(x,1),EML⁑(0,y))\operatorname{EML}\left(\operatorname{EML}(x,1),\operatorname{EML}(0,y)\right) is an EML tree. Draw its tree diagram, then simplify the expression as much as possible using exponent and logarithm rules.

(F)(F) It is claimed that EML trees can represent all standard elementary functions. In a short paragraph, compare this idea to the way a single NAND gate can generate all Boolean logic. A NAND gate outputs 00 only when both inputs are 11, and outputs 11 otherwise.

This problem is inspired by the paper All elementary functions from a single operator by Andrzej OdrzywoΕ‚ek. Learn more here: https://arxiv.org/html/2603.21852v2.