Okay, let’s say you’re staring at two points on a graph. In practice, maybe it’s the balance in a savings account after two different years. In real terms, maybe it’s the early case counts of a new virus. Maybe it’s just a problem from your math homework that’s feeling stubborn.
You know it’s exponential. But how do you actually write the stupid function? Because of that, the curve is unmistakable. Not just sketch it—write the precise equation, y = ab^x, with real numbers for a and b The details matter here..
That’s the puzzle. Because once you can do this, you stop guessing and start predicting. Plus, you can answer the “what if? ” questions. And it’s a good one. Let’s walk through it, step by messy step.
What Is an Exponential Function, Really?
Forget the textbook definition for a second. So at its heart, an exponential function describes a process where the change is proportional to the current amount. It’s the math of relentless growth or decay.
The classic form is y = ab^x.
- a is the starting value. Where you begin. The initial infection count. The first deposit.
- b is the growth factor. If b > 1, you have growth (each step multiplies by b). If 0 < b < 1, you have decay (each step multiplies by a fraction, so you shrink).
- x is usually time, but it can be any independent variable.
The magic—and the frustration—is that a and b are hidden. You have to extract them from clues. Two points are the minimum clues you need. Plus, one point? Infinite possibilities. Two points? Usually one unique exponential curve (unless they’re vertically aligned, which is a degenerate case we’ll ignore).
Why Bother? Because Everything Grows Exponentially (Or Decays)
This isn’t just math class nonsense. Understanding this is how you:
- Fight a pandemic: Early case numbers are exponential. If you only have Week 1 and Week 3 data, you need the function to predict Week 5 and see if your hospital will overflow.
- Invest wisely: Compound interest is exponential. Knowing the function from two account statements tells you the true annual return.
- Debunk bad science: Someone claims a “miracle cure” shows “rapid decline” in tumors. Is it really exponential decay, or just linear? The function tells the truth.
- Just pass the test: Yeah, okay, that’s a practical reason too.
What goes wrong when you don’t get this? You guess. You extrapolate linearly. And in an exponential world, linear guessing is catastrophically wrong. It’s the difference between “we’re fine” and “we have 10,000 cases in two weeks Small thing, real impact..
How to Actually Write the Thing: The Meat
Here’s the plan. Worth adding: we have two points: (x₁, y₁) and (x₂, y₂). We need to find a and b Small thing, real impact..
Step 1: Plug both points into y = ab^x. You get two equations:
- y₁ = a * b^(x₁)
- y₂ = a * b^(x₂)
Step 2: Divide to eliminate a. This is the key move. Divide equation 2 by equation 1: (y₂ / y₁) = [a * b^(x₂)] / [a * b^(x₁)]
The a's cancel. Sweet relief. (y₂ / y₁) = b^(x₂ - x₁)
Why? On top of that, because b^(x₂) / b^(x₁) = b^(x₂ - x₁). Exponent rules, baby.
Step 3: Solve for b. You have: (y₂ / y₁) = b^(Δx), where Δx = x₂ - x₁. To get b alone, you need to undo the exponent. You take the Δx-th root. Or, more practically, you raise both sides to the (1/Δx) power. b = (y₂ / y₁)^(1 / (x₂ - x₁))
This is your golden formula. The growth factor is the ratio of the y-values, raised to the power of one over the difference in x-values That alone is useful..
Step 4: Solve for a. Now that you have b, just plug it back into either original equation. Usually the simpler one. a = y₁ / (b^(x₁)) Or a = y₂ / (b^(x₂)). They should give the same answer Small thing, real impact..
Step 5: Write your final function. y = a * b^x, with your calculated a and b.
Let’s See It Live: A Concrete Example
Points: (1, 6) and (3, 24). Find the exponential function The details matter here..
-
Plug in: 6 = a * b^1 → 6 = a*b 24 = a * b^3
-
Divide: 24/6 = (ab^3) / (ab) → 4 = b^2
-
Solve for b: b = √4 = 2. (We take the positive root because an exponential base must be positive and not 1. b = -2 would give wild oscillations, not a clean curve).
-
Solve for a: From 6 = ab, 6 = a2, so a = 3.
-
Final function: y = 3 * 2^x
Check it: at x=1, y=32=6 ✅. Which means at x=3, y=38=24 ✅. Perfect Easy to understand, harder to ignore..
What If the x-values aren’t consecutive integers?
No problem. Think about it: the formula handles it. Let’s try (2, 10) and (7, 1210) Small thing, real impact..
- Δx = 7 - 2 = 5.
- Ratio y₂/y₁ = 1210 / 10 = 121.
- b = 121^(1/5). What’s the fifth root of 121? 121 is 11^2. So (11^2)^(1/5) = 11^(2/5). That’s not a nice whole number. But your calculator can handle it: 121^(0.2) ≈ 2.62996 (let’s keep it as 121^(1/5) for exactness if needed).
- a = 10 / (b^2) = 10 / (121^(2/5)). Messy, but exact. Or numerically: a ≈ 10 / (2.62996^2) ≈ 10 / 6.916 ≈ 1.445.
- Function: y ≈ 1.445 * (2.630)^x. It’s fine if b isn’t a pretty integer. Real-world data rarely is.
Common Mistakes That Will Haunt You
Mistake 1: Forgetting the base must be positive. When you take a root