Those three points work because they come straight from the definition of a logarithm. The sections below show why, how to avoid the trap that costs the most points (the asymptote comes from the inside of the parentheses after factoring), and how to check a sketch in under a minute.
How do you graph a basic logarithmic function?
The parent graph is with and . It has a vertical asymptote along the y-axis, , and it passes through three easy points. Each one comes from the definition in What Is a Logarithm?: means . Since , and , the points , and always lie on the curve.
The trick is to choose -values that are powers of the base, so the outputs are whole numbers. For the table looks like this:
The domain is and the range is all real numbers. The curve approaches the y-axis but never touches it, and it never levels off on the right. A common slip is to draw the curve crossing the y-axis, or to end it at a dot on the axis. Instead, bend it downward so it runs alongside the asymptote.
Quick check
Answer:
Why is a log graph the mirror image of an exponential graph?

The function is the inverse of . Inverse functions swap inputs and outputs, so every point on the exponential graph becomes on the log graph. Geometrically, the log graph is the exponential graph reflected across the line . The horizontal asymptote turns into the vertical asymptote , and the y-intercept turns into the x-intercept . If you already know how to graph exponential functions, you already know the shape of a log graph.
This reflection explains the slow growth. An exponential graph explodes upward, so its mirror image has to creep. For to reach a height of , must be .
Because , a million on the x-axis sits only units high. A log graph never flattens completely, but it gains just one unit each time is multiplied by the base.
The base controls how flat the curve is. Every log graph passes through , but for a larger base gives a lower curve. At , , and . The natural logarithm uses the base , so its key points are and . Where that constant comes from is covered in Euler’s number e.
How do transformations move a logarithmic graph?

Every transformed log graph fits one template:
Each letter does one job:
- slides the graph right (left if negative) and moves the asymptote to .
- slides the graph up or down and leaves the asymptote alone.
- stretches the graph vertically by , and flips it over the x-axis if .
- sets how steeply the curve climbs.
The trap is the sign of . In the value is , so the asymptote is , not . The second trap is a coefficient inside the log. In the shift is not . The argument has to be factored as first, so the shift is . Writing awkward expressions in a simpler form with expanding logarithms often makes the shifts visible.
A faster way to read any log graph uses two settings of the argument. Set it to to get the asymptote. Set it to to get an anchor point, because and the output is then exactly .
Try this: For , find the asymptote (argument ) and the anchor point (argument ) without graphing. Answer: the asymptote is , and the anchor point is .
Graphing logarithmic functions with shifts and stretches: worked examples
Example 1. Graph . Here , , , .
- The asymptote is .
- The key points , and become , and .
- Check one point: . ✓
- The domain is and the range is all real numbers.
To find the x-intercept, set , a method from solving logarithmic equations. Then , so , so and
Example 2. Graph . Start with the domain: gives , so the asymptote is . Now factor the argument and use the product property from the logarithm rules:
This is the parent graph shifted right and up. The key points are , and . Check: . ✓
Example 2 shows a useful general fact. A factor inside the log, , looks like a horizontal squeeze, but it is the same curve as a vertical shift of . Log graphs have no true horizontal stretch. That is why only and move the picture sideways and up.
Quick check
Answer:
How do you find the equation from a log graph?
Work backwards with the same two settings. Read the asymptote to get . Then find the point whose is exactly one unit to the right of the asymptote. Its height is , because the log term is zero there. A third point gives .
Example 3. A graph with form has asymptote and passes through and .
- The asymptote gives , so .
- At the argument is , so . The point gives .
- At : , so and .
- The equation is .
Check both points: and . ✓
This method has a limit. A picture alone cannot tell and apart. The curve is identical to , because . That is the change of base formula at work. Problems therefore either give the base or ask for any equivalent form.
What changes with a base below 1 or a negative input?
A base between and flips the graph. Let . Then , which means , so . The result is
So is the mirror image of in the x-axis. It still has asymptote and passes through . Its key points are and , and it falls from left to right.
Replacing by gives a different reflection, across the y-axis. For the argument must be positive, so . The domain is , the asymptote is still , and the curve passes through . For example, at the value is , so is on the graph. Writing keeps both branches, since the absolute value makes every nonzero valid.
Never plot a point with on a plain . No real power of a positive base gives zero or a negative number, so those inputs are undefined, and the graph has nothing there.
Quick check
Answer:
How do you check a log graph, and where is it used?
Before moving on, run these four checks on any sketch:
- Set the argument to . The curve must run along that vertical line without touching it.
- Set the argument to . The point must have height .
- Set the argument to . The point must have height .
- Confirm direction: with rises, and a negative or a base below falls.
If the equation is a sum of logs, such as , condense it into one log first. The domain then comes from the original terms: both and must hold. On a calculator, enter for base , since most keys only offer base and base .
Chemists define , which is a reflected log graph. A concentration of gives a pH of , and each drop of one pH unit means ten times more acid.
Log graphs show up wherever a quantity spans huge ranges. Sound level in decibels is , so doubling the intensity adds only about dB. Reading a log graph backwards also answers growth questions: it takes doublings to grow 1000-fold. For exact answers to questions like that, see solving exponential equations with logarithms.
Practice problems
0 of 5 solved
- State the vertical asymptote of .
Answer:
The asymptote is where the argument equals . Solve . This gives . The moves the graph down and does not affect the asymptote. - Find the domain of .
Answer:
The argument must be positive: . Subtract and divide by , which flips the inequality: . The graph is a reflection, so it lies to the left of its asymptote . - Find the x-intercept of .
Answer:
Set : . Rewrite in exponential form: . So . - A graph has the form , with vertical asymptote and passes through and . Find the equation.
Answer:
The asymptote gives . At the argument is , so and . At : , so and . The equation is . - Rewrite as a shifted parent graph, then give its asymptote and x-intercept.
Answer:
Factor: , so . The asymptote is . For the intercept, , so and .
Common questions
How do you graph a logarithmic function step by step?
Draw the vertical asymptote by setting the argument equal to . Then plot the points where the argument equals , and (after shifting), and draw a smooth curve that hugs the asymptote and rises slowly to the right.
What is the vertical asymptote of a logarithmic function?
For it is the line . Find it by setting the expression inside the log equal to . Stretches, reflections and vertical shifts never move it.
What are the domain and range of a logarithmic function?
The domain is every that makes the argument positive, such as for . The range is all real numbers, because the graph keeps falling near the asymptote and keeps rising forever.
Why can you not take the logarithm of a negative number?
A logarithm asks which power of a positive base gives the number. A positive base raised to any real power is always positive, so no real exponent produces zero or a negative result.
How do you graph log base 2 on a calculator?
Most calculators only have base 10 and base , so enter or . Many graphing tools also accept the base directly, as in log base 2 of x.
How do you graph the natural log function?
Draw the asymptote , then plot and , where . Add and sketch a curve that drops steeply near the asymptote and flattens to the right.