Exponentials & Logarithms

Graphing Exponential Functions: Steps, Shifts and Checks

The graph of f(x)=a⋅bx−h+kf(x)=a\cdot b^{x-h}+k is a smooth curve that hugs the horizontal asymptote y=ky=k on one side and rockets away from it on the other. Draw the asymptote first, plot three or four exact points, then connect them.

f(x)=a⋅bx−h+kf(x) = a\cdot b^{x-h} + k

Most lost points come from three places: moving the asymptote when it should stay put, misreading −2x-2^x and (−2)x(-2)^x, and filling the flat side of the curve with useless points. The sections below explain where the shape comes from, give a method that works every time, and show how to confirm a sketch before handing it in.

What does the graph of an exponential function look like?

The parent function is y=bxy=b^x with b>0b>0 and b≠1b\neq 1. When b>1b>1, the curve is almost flat on the left, passes through (0,1)(0,1), and climbs faster and faster on the right. When 0<b<10<b<1 the picture flips: the curve falls steeply from the left and levels off toward the x-axis on the right.

The flip is exact, because (12)x=2−x\left(\tfrac12\right)^x=2^{-x}. The decay graph is the growth graph reflected across the y-axis, and the table shows it: read the middle column going down and the right column going up.

xx −2-2 −1-1 00 11 22 33
2x2^x 14\frac14 12\frac12 11 22 44 88
(12)x\left(\frac12\right)^x 44 22 11 12\frac12 14\frac14 18\frac18

Three facts hold for every parent exponential. The domain is all real numbers, the range is y>0y>0, and the x-axis is a horizontal asymptote that the curve approaches but never touches. Two anchor points come free: (0,1)(0,1) and (1,b)(1,b).

The base restrictions are not arbitrary. With b=1b=1 the function collapses into the flat line y=1y=1. A negative base would leave gaps, since (−2)1/2(-2)^{1/2} is not a real number, so the graph would be scattered dots instead of one unbroken curve.

Quick check

Is f(x)=(13)xf(x)=\left(\frac13\right)^x increasing or decreasing, and what is f(−2)f(-2)?

How do you graph an exponential function by hand?

Use the same five moves every time:

  1. Find the horizontal asymptote. It is y=0y=0 unless a constant is added at the end, in which case it is y=ky=k.
  2. Find the y-intercept by setting x=0x=0.
  3. Choose xx-values such as −2,−1,0,1,2-2,-1,0,1,2 and compute yy.
  4. Plot the points and draw a smooth curve that approaches the asymptote on one side without touching it.
  5. Draw the asymptote as a dashed line and label it.

Example 1. Graph f(x)=3(12)xf(x)=3\left(\tfrac12\right)^x.

The base is 12\tfrac12, so this is decay, and there is no shift, so the asymptote is y=0y=0. Compute the points:

f(−2)=3⋅4=12f(−1)=3⋅2=6f(0)=3⋅1=3f(1)=3⋅12=32f(2)=3⋅14=34\begin{aligned} f(-2)&=3\cdot 4=12\\ f(-1)&=3\cdot 2=6\\ f(0)&=3\cdot 1=3\\ f(1)&=3\cdot \tfrac12=\tfrac32\\ f(2)&=3\cdot \tfrac14=\tfrac34 \end{aligned}

The curve starts high on the left at (−2,12)(-2,12), crosses the y-axis at (0,3)(0,3), and slides toward the x-axis on the right. A faster way to generate these numbers is to skip the powers altogether: start at 33 and halve going right, double going left. Going one step right always multiplies by bb.

Spend your points on the steep side. On the flat side, the outputs are so small that every point sits visually on the axis, so a fourth and fifth point there teach the reader nothing.

Try this: Without a calculator, graph y=2xy=2^x from x=−3x=-3 to x=3x=3 using only doubling and halving, starting from (0,1)(0,1). Then check that your point at x=3x=3 is (3,8)(3,8).

Why does every parent exponential graph cross the y-axis at 1?

The whole function rests on one idea: each step of 1 to the right multiplies the output by bb. Demand that bx+1=b⋅bxb^{x+1}=b\cdot b^x holds for every xx, then plug in x=0x=0: b1=b⋅b0b^1=b\cdot b^0. The only way that works is b0=1b^0=1. The point (0,1)(0,1) is not a convention to memorize. It is forced by the multiplying rule.

That rule is also what separates exponentials from lines. A line adds the same amount per step, which is why slope-intercept form needs only a slope and a starting value, and why an arithmetic series grows by a constant difference. An exponential multiplies by the same factor per step. Repeated multiplication of a positive number by a positive factor never lands on zero, which is exactly why the asymptote exists.

The ratio test

Take equally spaced xx-values and divide each output by the one before it. A constant ratio means exponential: the outputs 5,10,20,405, 10, 20, 40 have ratio 22, so y=5⋅2xy=5\cdot 2^x. A constant difference means linear.

The same logic explains the shape of the curve. Because the ratio is constant, the picture looks the same wherever you zoom in on the steep side: every height is reached by the same pattern of doubling (or tripling, or halving). A quadratic like x2x^2 does not have this property, which is why an exponential eventually beats any parabola, however large its coefficient.

How do shifts and reflections change an exponential graph?

In f(x)=a⋅bx−h+kf(x)=a\cdot b^{x-h}+k, each letter has one job. The constant kk slides the graph vertically and drags the asymptote to y=ky=k. The shift hh moves the graph right (or left if hh is negative). A negative aa flips the graph over its asymptote, and ∣a∣|a| stretches it away from the asymptote.

The trap is that only kk moves the asymptote. A horizontal shift cannot, because it is secretly a vertical stretch: bx−h=b−h⋅bxb^{x-h}=b^{-h}\cdot b^x. So 2x+3=8⋅2x2^{x+3}=8\cdot 2^x, and shifting left by 3 produces the identical curve as stretching by 8. If a problem asks for the y-intercept of 2x+32^{x+3}, the answer 88 comes from either view.

The second trap is notation. In −2x-2^x, the exponent is evaluated first, then the sign is applied, so it is the reflection of 2x2^x over the x-axis. The expression (−2)x(-2)^x is a different, broken function. Follow the order of operations strictly: powers come before the negative sign. Also note that 2−x2^{-x} reflects across the y-axis, which is a different move from −2x-2^x.

Example 2. Graph g(x)=−2x−1+4g(x)=-2^{x-1}+4.

Build it from y=2xy=2^x in order: shift right 1, reflect over the x-axis, shift up 4. The asymptote moves from y=0y=0 to y=4y=4. Track the parent points through the three moves:

(0,1)→(1,1)→(1,−1)→(1,3)(1,2)→(2,2)→(2,−2)→(2,2)(2,4)→(3,4)→(3,−4)→(3,0)\begin{aligned} (0,1)&\to(1,1)\to(1,-1)\to(1,3)\\ (1,2)&\to(2,2)\to(2,-2)\to(2,2)\\ (2,4)&\to(3,4)\to(3,-4)\to(3,0) \end{aligned}

Also g(0)=−2−1+4=3.5g(0)=-2^{-1}+4=3.5, so the y-intercept is (0,3.5)(0,3.5). For the x-intercept, solve −2x−1+4=0-2^{x-1}+4=0, so 2x−1=4=222^{x-1}=4=2^2. This is a case for exponential equations with the same base: x−1=2x-1=2, so x=3x=3, which matches the point (3,0)(3,0) above. The graph sits below its asymptote, decreases from left to right, and has range y<4y<4.

Quick check

Rewrite y=2x+3y=2^{x+3} as a vertical stretch of y=2xy=2^x.

How does graphing the base e differ from other bases?

Nothing about the method changes for y=exy=e^x. The base is e≈2.718e\approx 2.718, the curve passes through (0,1)(0,1), and the asymptote is y=0y=0. Useful points are e−1≈0.368e^{-1}\approx 0.368, e1≈2.718e^{1}\approx 2.718 and e2≈7.389e^{2}\approx 7.389. What makes ee special is that the tangent line at (0,1)(0,1) has slope exactly 11, namely y=x+1y=x+1. That property is the reason Euler’s number dominates calculus.

When comparing bases on the same axes, all curves cross at (0,1)(0,1) and then separate. For x>0x>0, a larger base is higher: 3x>ex>2x3^x>e^x>2^x. For x<0x<0 the order reverses, because larger bases fall toward the axis faster. At x=−1x=-1 the values are 13≈0.33\tfrac13\approx0.33, 0.370.37 and 12\tfrac12 for bases 33, ee and 22.

Every exponential is secretly a stretched copy of exe^x. Since bx=exln⁡bb^x=e^{x\ln b}, the function 2x2^x is e0.693xe^{0.693x}, using the natural logarithm ln⁡2≈0.693\ln 2\approx 0.693. That is why calculators and software only need one exponential function built in.

How do you write an exponential function from its graph?

Suppose the curve passes through (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) and the asymptote is the x-axis. Dividing the two equations y=a⋅bxy=a\cdot b^x cancels aa and leaves bx2−x1=y2y1b^{x_2-x_1}=\dfrac{y_2}{y_1}. For lines, point-slope form subtracts the coordinates to get a slope. For exponentials, the same job is done by dividing.

Example 3. Find y=a⋅bxy=a\cdot b^x through (1,6)(1,6) and (3,54)(3,54).

546=a⋅b3a⋅b1=b2⇒b2=9, b=3\frac{54}{6}=\frac{a\cdot b^3}{a\cdot b^1}=b^2\quad\Rightarrow\quad b^2=9,\ b=3

Only the positive root is allowed, since the base must be positive. Now substitute into either point: a⋅3=6a\cdot 3=6, so a=2a=2. The function is y=2⋅3xy=2\cdot 3^x. Check with the second point: 2⋅27=542\cdot 27=54. ✓

If the graph has a visible asymptote y=ky=k with k≠0k\neq0, subtract kk from every yy-value before dividing, then add it back at the end. If the y-intercept is on the graph, the work shortens: that value is aa (after removing kk), and the height at x=1x=1 divided by aa is bb. When the gap in xx is not 22, take the matching root: a gap of nn gives b=(y2y1)1/nb=\left(\tfrac{y_2}{y_1}\right)^{1/n}.

How can you check an exponential graph is correct?

Run three quick checks on any sketch:

  • The curve stays on one side of the asymptote. It lies above y=ky=k when a>0a>0 and below when a<0a<0, and it never crosses.
  • The y-intercept matches a⋅b−h+ka\cdot b^{-h}+k, which you can compute independently of the points you plotted.
  • Equal steps in xx give equal ratios in y−ky-k. If y−ky-k does not multiply by the same number each step, a value is wrong.
The crossing alarm

If your sketch of a⋅bx−h+ka\cdot b^{x-h}+k touches or crosses the line y=ky=k, something is wrong. Exponential curves only approach their asymptote.

Plotting by hand has a limit. Powers explode: 10x10^x reaches 1,000,0001{,}000{,}000 at x=6x=6, and no sensible axis shows both 10−210^{-2} and 10610^{6}. In that case, sketch the shape with labeled points rather than a scaled grid, or use a logarithmic scale on the y-axis, where every exponential becomes a straight line.

For the question “where does this curve reach a given height,” reading the graph only gives an estimate. The exact answer comes from solving exponential equations with logarithms, then the graph confirms the estimate is reasonable. In Desmos or a graphing calculator, put parentheses around the whole exponent, as in y=3⋅2(x−1)+4y=3\cdot 2^{(x-1)}+4, or the software reads a different function.

Where do exponential graphs show up in real life?

Growth and decay with a fixed percentage per period are exponential. Compound interest follows A=P(1+r)tA=P(1+r)^t, and a loss of 15%15\% per year follows V=V0(0.85)tV=V_0(0.85)^t. The base is always 1±r1\pm r written as a decimal, so a 6%6\% gain gives base 1.061.06 and a 15%15\% loss gives 0.850.85. A car worth $20,000 is then V(t)=20000(0.85)tV(t)=20000(0.85)^t, with y-intercept (0,20000)(0,20000) and the asymptote y=0y=0: in the model, its value shrinks forever but never reaches zero.

Real situations restrict the domain. Time starts at t=0t=0, so only the right half of the curve applies, and the left half has no physical meaning. Half-life in chemistry and medicine works the same way: the graph of remaining quantity falls toward 00 and drops by the same factor over every equal time interval.

The graph also gives you doubling time for free. On a growth curve, the horizontal distance between height yy and height 2y2y is the same everywhere. At 6%6\% growth that distance is about 11.911.9 years, from solving 1.06t=21.06^t=2, and the quick estimate 72÷6=1272\div 6=12 is close. Linear growth has no such property, because doubling a large amount takes longer than doubling a small one.

Quick check

A car worth $20,000$20{,}000 loses 15%15\% of its value each year. Write V(t)V(t) and find the value after 2 years.

How do exponential graphs connect to logarithmic graphs?

An exponential and a logarithm undo each other, so their graphs are mirror images across the line y=xy=x. Swap the coordinates of every point: (0,1)(0,1) becomes (1,0)(1,0), (1,b)(1,b) becomes (b,1)(b,1), and the point (3,8)(3,8) on y=2xy=2^x becomes (8,3)(8,3) on y=log⁡2xy=\log_2 x. That last pair is the statement 23=8  ⟺  log⁡28=32^3=8\iff\log_2 8=3 in picture form.

The features swap too. The horizontal asymptote y=0y=0 becomes a vertical asymptote x=0x=0, and the domain and range trade places. The exponential’s range, y>0y>0, becomes the logarithm’s domain, x>0x>0, which is why logarithms of zero or negative numbers do not exist.

Once the exponential graph is comfortable, graphing logarithmic functions takes very little extra work: sketch the exponential, reflect it over y=xy=x, and read off the new points.

Practice problems

0 of 5 solved

  1. Find the y-intercept and horizontal asymptote of f(x)=4⋅3xf(x)=4\cdot 3^x.

  2. State the horizontal asymptote and the range of y=−3x+2y=-3^x+2, then find its y-intercept.

  3. Describe how g(x)=2x+3−1g(x)=2^{x+3}-1 is built from 2x2^x, then find its y-intercept.

  4. Find the exponential function y=a⋅bxy=a\cdot b^x through (1,12)(1,12) and (3,34)\left(3,\frac34\right).

  5. For y=−2(12)x+1+3y=-2\left(\frac12\right)^{x+1}+3, find the asymptote, the y-intercept and the x-intercept (to two decimals).

Common questions

What is the horizontal asymptote of an exponential function?

For f(x)=a⋅bx−h+kf(x)=a\cdot b^{x-h}+k, the horizontal asymptote is y=ky=k. Without a vertical shift, that is the x-axis, y=0y=0. Horizontal shifts and stretches never move it.

How can you tell if an exponential graph shows growth or decay?

Look at the base bb in bxb^x. If b>1b>1 the output is multiplied by more than 1 for each step right (growth), and if 0<b<10<b<1 it shrinks (decay). A negative aa flips the whole curve over the asymptote, so check the sign of aa as well.

What are the domain and range of an exponential function?

The domain is all real numbers. The range of y=bxy=b^x is y>0y>0, and for y=a⋅bx−h+ky=a\cdot b^{x-h}+k it is y>ky>k when a>0a>0 and y<ky<k when a<0a<0.

Can the base of an exponential function be negative or equal to 1?

No. A base of 11 gives the flat line y=1y=1, which is not exponential. A negative base is undefined for many inputs, such as x=12x=\frac12, so the graph would be scattered points instead of a curve.

How many points do you need to graph an exponential function by hand?

Draw the asymptote and plot three to five exact points, with at least two on the steep side. Two points on the curve plus the asymptote are enough to pin down the equation y=a⋅bx+ky=a\cdot b^x+k.

How do you graph an exponential function on a calculator or Desmos?

Type the function as written, using parentheses around the exponent, such as y=3⋅2(x−1)+4y=3\cdot 2^{(x-1)}+4. Then adjust the window so the asymptote and the steep side are both visible, and use the table feature to read exact values.

Up next