Exponential Functions
Exponential Functions
An exponential function raises a positive constant base to a variable power. y = 2^x grows through (0, 1), y = (0.5)^x decays toward the horizontal asymptote y = 0, and y = e^x is the natural exponential. None of these is the line y = 2*x or the parabola y = x^2.
y = 2^x and y = 2**x pass through (0, 1). At x = -3, -2, -1, 0, 1, 2, 3, 4, and 5 the values are 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, and 32. y = e^x and y = exp(x) equal e at x = 1. y = (0.5)^x decays through those same heights in reverse and approaches the horizontal asymptote y = 0 as x increases.
y = 10^x equals 10 at x = 1. y = 2^(x+1) is the base-2 curve shifted left by 1, so it equals 2 at x = 0. y = 3*2^(x-1)+4 equals 7 at x = 1 and approaches the horizontal asymptote y = 4 as x goes to negative infinity. The y-intercept of y = 2^x is 1. The curve is not the line y = 2*x.
Equation
y = 2^x
Graph preview
How to read this example
An exponential function has a positive constant base and a variable exponent. y = 2^x, y = 2**x, and y = exp(x*ln(2)) are the same growth curve. It passes through (0, 1) and doubles when x increases by 1. y = e^x and y = exp(x) are the natural exponential. A base between 0 and 1, such as (0.5)^x, decreases toward the horizontal line y = 0. A vertical shift such as 3*2^(x-1)+4 approaches the horizontal line y = 4 as x goes to negative infinity.
The inverse of an exponential is a logarithm. 2^x = 8 gives the integer x = 3, and (0.5)^x = 8 gives x = -3. e^x = 5 gives x = ln(5). Solving y = 2^x for x gives ln(y)/ln(2) for y > 0. Solving y = ln(x) for x gives e^y, and solving y = log_4(x) for x gives 4^y. A one-argument log is base 10, so y = log(x) solves as x = 10^y, and y = log(x^2-1) solves as x = ±sqrt(10^y+1). A positive base raised to a real power is never negative or zero, so 2^x = -4 and 2^x = 0 have no real solution. An exponential is not replaced by the straight line y = 2*x.
Reading the input
y = 2^x— y = 2^x and y = 2**x pass through (0, 1). At x = -3, -2, -1, 0, 1, 2, 3, 4, and 5 the values are 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, and 32. y = e^x and y = exp(x) equal e at x = 1. y = (0.5)^x decays through those same heights in reverse and approaches the horizontal asymptote y = 0 as x increases.
Other versions of this example
These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.
Growth base 2
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = 2^x
Double star
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = 2**x
Natural exponential
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = e^x
exp(x)
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = exp(x)
Decay
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = (0.5)^x
Base 10
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = 10^x
Shifted
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = 2^(x+1)
Transformed
This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
y = 3*2^(x-1)+4
Try a change
- Edit one number in the field, then use Generate Graph. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Generate Graph draws y = 2^x, y = e^x, y = exp(x), a fractional base, and a shifted exponential on the Cartesian board. The caption uses mathematical notation. Growth, decay, the horizontal asymptote, and the intercept come from the exponential, not from a straight line through the origin.