Skip to main content
Mathovia

Algebra / Exponential & Logarithmic Functions

Writing Exponential Functions

An exponential function y = a · bˣ has only two unknowns, so two points are enough to pin it down. The trick is to divide one equation by the other: a cancels, and b falls out on its own.

Practice Problems
Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

Writing a linear equation from two points is routine: find the slope, then the intercept. Writing an exponential function from two points follows the same two-step pattern, with one change that makes all the difference — you divide instead of subtracting, because an exponential function changes by a constant factor rather than a constant amount. Once you can do this, you can build a model from any two measurements: two population counts, two account balances, two readings of a cooling cup of coffee.

b equals the ratio y2 over y1 raised to 1 over (x2 minus x1), and a equals y1 over b to the x1
Finding b and a from two points

What You Are Solving For

Every exponential function in standard form is

with the initial value (the y-intercept) and the growth factor. Writing the equation means finding these two numbers. Two unknowns need two conditions — usually two points on the graph.

Method 1: When One Point Is the y-Intercept

If you are given , you already have , because . Substitute the second point and solve for :

For and : , then , so and . The function is .

Method 2: How to Find an Exponential Equation With Two Points

When neither point is on the y-axis, write both equations and divide:

The cancels, leaving one equation in . Solve it, then substitute back to get :

Because must be positive, always take the positive root. If , then , not .

The curve y = 400(0.5)^x through the points (2, 100) and (5, 12.5), with the ratio 1/8 over three steps marked
Three steps right, output multiplied by ⅛ — so b³ = ⅛ and b = ½

Method 3: From a Table

A table is just a list of points, but it often makes the factor obvious. If the x-values go up by , divide each y-value by the one before it — that ratio is . Read off the row where , or work it out backwards.

Each ratio is , so , , and .

Method 4: Exponential Equation From a Graph

To write an equation from a graph, read three things off it: the horizontal asymptote , the y-intercept, and one other clearly marked point.

  • If the asymptote is , use the y-intercept and the second point exactly as in Method 1.
  • If the asymptote is , the model is . Subtract from every y-value first — that turns the graph back into a plain — then find and as usual.

The graph below has asymptote and passes through and . Subtracting gives adjusted heights and , so , , and the equation is .

Exponential graph with asymptote y = -1 passing through (0, 1) and (1, 3), which is y = 2 times 2^x minus 1
Measure heights from the asymptote, not from the x-axis

Example 1: Writing Exponential Functions From Two Points

PointsDivideFunction
,
,
,
,
,

The last row does not give a whole-number base, which is normal for real data. Compute the root with the key, and keep four or more decimal places — rounding too early gets magnified by the exponent.

Worked Example

Find the exponential function through and .

Step 1 — write both points into :

Step 2 — divide the second equation by the first so cancels:

Step 3 — simplify the ratio and take the cube root:

Step 4 — substitute into the first equation and solve for :

Step 5 — write the function and check the second point:

Since , this is exponential decay, which matches the output falling from to .

Common Mistakes to Avoid

  • Subtracting the y-values. A constant difference belongs to a linear function. For an exponential, divide: the ratio of outputs is what stays constant.
  • Forgetting the gap in x. From and the ratio is , not — the points are two steps apart.
  • Using the first point’s y-value as when . is the value at . If the given point is , is , not .
  • Measuring from the x-axis when the asymptote has moved. With asymptote , subtract from the y-values before dividing, or the ratio will be wrong.

Practice Problems

Work each one before opening the answer.

Problem 1. Write the exponential function through and .

Show answer

Step 1 — the y-intercept gives :

Step 2 — one step in x, so the ratio is :

Answer:

Problem 2. Write the exponential function through and .

Show answer

Step 1 — ; substitute the second point:

Step 2 — take the cube root:

Answer:

Problem 3. Write the exponential function through and .

Show answer

Step 1 — divide to eliminate :

Step 2 — substitute :

Answer:

Problem 4. Write the exponential function through and .

Show answer

Step 1 — divide:

Step 2 — substitute :

Answer:

Problem 5. Find for the exponential function through and . Why is rejected?

Show answer

Step 1 — substitute:

Step 2 — both and square to , but an exponential base must be positive.

Answer: , so ; is not a valid exponential base

Problem 6. A graph has horizontal asymptote and passes through and . Write its equation.

Show answer

Step 1 — the model is ; subtract the asymptote from each y-value:

Step 2 — the adjusted value at is , and the ratio is :

Answer:

Many of the equations you write will describe something growing or shrinking by a percentage — a salary rising 3% a year, a medicine clearing 20% an hour. The exponential growth and decay lesson shows how to turn a rate like that straight into .

Frequently Asked Questions

How do you find b in an exponential function?+

Take two points and divide their y-values. Because , the ratio of the outputs equals raised to the gap between the inputs. If the points are one unit apart, the ratio is itself; if they are units apart, take the th root of the ratio.

What if neither point is on the y-axis?+

Find first by dividing the two equations, which works for any pair of points. Then substitute and either point back into and solve for . The y-intercept is a shortcut, not a requirement.

Can any two points be joined by an exponential function?+

Not for . Both y-values must be nonzero and have the same sign, because is always positive. Points such as and need a vertical shift — a model of the form — and a third piece of information such as the asymptote.

Related lessons