How to graph a parent function
Exponential functions each have a parent function that depends on the base; logarithmic functions also have parent functions for each different base. The parent function for any log is written f(x) = logb x. For example, g(x) = log4 x corresponds to a different family of functions than h(x) = log8 x. This example graphs the common log: f(x) = log x.-
Change the log to an exponential.
Because f(x) and y represent the same thing mathematically, and because dealing with y is easier in this case, you can rewrite the equation as y = log x. The exponential equation of this log is 10y = x.
-
Find the inverse function by switching x and y.
You find the inverse function 10x = y.
-
Graph the inverse function.
Because you’re now graphing an exponential function, you can plug and chug a few x values to find y values and get points. The graph of 10x = y gets really big, really fast. You can see its graph in the figure.
y = 10x."/>Graphing the inverse function y = 10x. -
Reflect every point on the inverse function graph over the line y = x.
The next figure illustrates this last step, which yields the parent log’s graph.
f(x) = log x."/>Graphing the logarithm f(x) = log x.
How to graph a transformed log
All transformed logs can be written aswhere a is the vertical stretch or shrink, h is the horizontal shift, and v is the vertical shift.
So if you can find the graph of the parent function logb x, you can transform it. However, most students still prefer to change the log function to an exponential one and then graph. The following steps show you how to do just that when graphing f(x) = log3(x – 1) + 2:
-
Get the logarithm by itself.
First, rewrite the equation as y = log3(x – 1) + 2. Then subtract 2 from both sides to get y – 2 = log3(x – 1).
-
Change the log to an exponential expression and find the inverse function.
If y – 2 = log3(x – 1) is the logarithmic function, 3y – 2 = x – 1 is the exponential; the inverse function is 3x – 2 = y – 1 because x and y switch places in the inverse.
-
Solve for the variable not in the exponential of the inverse.
To solve for y in this case, add 1 to both sides to get 3x – 2 + 1 = y.
-
Graph the exponential function.
The parent graph of y = 3x transforms right two (x – 2) and up one (+ 1), as shown in the next figure. Its horizontal asymptote is at y = 1.
The transformed exponential function. -
Swap the domain and range values to get the inverse function.
Switch every x and y value in each point to get the graph of the inverse function. The next figure shows the graph of the logarithm.
You change the domain and range to get the inverse function (log).