Determining rules for graphs of exponential and logarithmic functions
Theory
Determining the rule of an exponential function \(y=a\,b^x\ (+c)\) or a logarithmic function \(y=a\log_b(x-h)+c\) from a graph, a table or two or three points means solving for the unknown parameters. Read any asymptote first, use the \(y\)-intercept or a point for \(a\), and use a ratio of two points (exponential) or the point where the log is \(0\) for the remaining parameter.
An exponential function \(y=a\,b^x\) (with \(b>0\)) has two unknowns: the coefficient \(a\) (its \(y\)-intercept, since \(b^0=1\)) and the base \(b\) (the growth or decay factor). Add a constant to get \(y=a\,b^x+c\), whose graph has the horizontal asymptote \(y=c\). A logarithmic function \(y=a\log_b(x-h)+c\) has a vertical asymptote at \(x=h\).
To determine the rule is to find those parameters from what the graph shows. Each parameter is tied to one readable feature: an asymptote fixes the shift (\(c\) or \(h\)); the \(y\)-intercept or a substituted point fixes \(a\); and a ratio of two points (for \(y=a\,b^x\)) or a logarithm law (for the log form) fixes the base or rate.
The same idea uses base \(e\): for \(y=A\,e^{kx}\) the \(y\)-intercept gives \(A\), and a second point with the natural logarithm gives \(k\). This is the “find the equation” counterpart to sketching a graph from a known rule.
An exponential rule from two points (divide to cancel \(a\)):
An exponential with a vertical shift (the asymptote gives \(c\)):
A logarithmic rule (the vertical asymptote gives \(h\)):
How to determine the rule from a graph or points
- Asymptote first. A horizontal asymptote \(y=c\) gives the vertical shift of an exponential; a vertical asymptote \(x=h\) gives the horizontal shift of a logarithm.
- Use the \(y\)-intercept or an easy point. For \(y=a\,b^x\) the \(y\)-intercept is \(a\) (since \(b^0=1\)); for a log, the point where \(x-h=1\) makes \(\log_b(1)=0\), giving \(c\).
- Ratio for the base. With two points on \(y=a\,b^x\), divide the equations so \(a\) cancels: \(\dfrac{y_2}{y_1}=b^{\,x_2-x_1}\); solve for \(b>0\). For base \(e\), take \(\ln\) to find \(k\).
- Back-substitute and check. Put the values back and verify the rule reproduces every given point.
| \(4\) | \(=\) | \(a\,b^{1}\) |
| \(16\) | \(=\) | \(a\,b^{3}\) |
| \(\dfrac{16}{4}\) | \(=\) | \(\dfrac{a\,b^{3}}{a\,b^{1}}\) |
| \(4\) | \(=\) | \(b^{2}\) |
| \(b\) | \(=\) | \(2\quad(b>0)\) |
| \(4\) | \(=\) | \(a(2)\) |
| \(a\) | \(=\) | \(2\) |
| \(c\) | \(=\) | \(3\) |
| \(5\) | \(=\) | \(a(2^{0})+3\) |
| \(5\) | \(=\) | \(a(1)+3\) |
| \(a\) | \(=\) | \(5-3=2\) |
| \(b\) | \(=\) | \(1\) |
| \(3\) | \(=\) | \(a\log_2(2-1)+c\) |
| \(3\) | \(=\) | \(a\log_2(1)+c\) |
| \(3\) | \(=\) | \(a(0)+c\) |
| \(c\) | \(=\) | \(3\) |
| \(7\) | \(=\) | \(a\log_2(5-1)+3\) |
| \(7\) | \(=\) | \(a\log_2(4)+3\) |
| \(7\) | \(=\) | \(2a+3\) |
| \(2a\) | \(=\) | \(4\) |
| \(a\) | \(=\) | \(2\) |
| \(20\) | \(=\) | \(A\,e^{k(0)}\) |
| \(20\) | \(=\) | \(A(1)\) |
| \(A\) | \(=\) | \(20\) |
| \(60\) | \(=\) | \(20\,e^{5k}\) |
| \(e^{5k}\) | \(=\) | \(3\) |
| \(5k\) | \(=\) | \(\ln 3\) |
| \(k\) | \(=\) | \(\dfrac{\ln 3}{5}\) |
| \(\approx\) | \(0.22\) |
Common pitfalls
Frequently asked questions
How do you find the rule y = a b^x from two points?
Substitute both points, then divide so \(a\) cancels: \(\dfrac{y_2}{y_1}=b^{\,x_2-x_1}\). Solve for \(b>0\), then back-substitute for \(a\).
How does a horizontal asymptote help find the rule?
For \(y=a\,b^x+c\) the asymptote is \(y=c\), so it gives \(c\) directly. Then a point gives \(a\) (and a second point gives \(b\)).
How do you find A and k for y = A e^(kx)?
The \(y\)-intercept gives \(A\) (since \(e^0=1\)). A second point gives \(e^{kx}\); take \(\ln\), e.g. \(e^{5k}=3\Rightarrow k=\dfrac{\ln 3}{5}\).
How do you determine a logarithmic rule?
The vertical asymptote is \(x=h\), so read \(h\) first. The point where \(x-h=1\) makes \(\log_b(1)=0\), giving \(c\); another point gives \(a\).
Why divide instead of subtracting?
\(a\) is a factor, not a term. Dividing cancels the common factor and leaves a pure power of \(b\) to solve; subtracting does not isolate \(b\).
What do you read off the graph first?
Any asymptote: \(y=c\) fixes an exponential's vertical shift, \(x=h\) fixes a logarithm's horizontal shift. Then use points for \(a\) and the base.