Skip to main content
Mathovia

Algebra / Exponential & Logarithmic Functions

Graphing Logarithmic Functions

A logarithmic graph is an exponential graph turned on its side. It starts at a vertical asymptote, crosses the x-axis at 1, and then climbs forever but ever more slowly. Once you know that shape, shifts and reflections work exactly as they do for any other function.

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

Logarithmic functions appear whenever a quantity grows more and more slowly — loudness against sound energy, the pH of a solution against its acidity, the time to double an investment against its interest rate. Their graphs share one unmistakable shape, which is the exponential graph reflected across the line . Learn that shape and its key features once and you can sketch any logarithmic function, including the natural log graph you will meet constantly in calculus.

Transformed logarithmic function g(x) = a log base b of (x minus h) plus k, with vertical asymptote x = h
The transformed logarithmic function and its asymptote

Logarithmic Function Definition

A logarithmic function is a function of the form

It is the inverse of the exponential function : is the exponent that must be raised to in order to give . Because only positive numbers can be powers of , the input must be positive. See the logarithms lesson for the definition in detail.

The Parent Graph

The easiest way to make a table for is to choose powers of the base as inputs, so every output is a whole number:

As shrinks toward , the output plunges toward ; as grows, the output rises — by only each time doubles.

Graph of y = log base 2 of x with vertical asymptote x = 0 and points (1/2, -1), (1, 0), (2, 1), (4, 2)
y = log₂ x: x-intercept (1, 0), vertical asymptote x = 0

Key Features of Logarithmic Functions

FeatureValue for
Domain — positive inputs only
Range — every real number
x-intercept, because
y-interceptnone — is not in the domain
Vertical asymptote (the y-axis)
Directionincreasing if ; decreasing if
Also passes through and

Every row is the matching feature of with and swapped — the domain and range trade places, and the horizontal asymptote becomes the vertical asymptote .

Graph of Exponential and Logarithmic Functions Together

Domain
Range
Intercept
Asymptotehorizontal, vertical,

Plotted on the same axes, the two curves are mirror images across the line . The logarithms lesson shows this reflection for base .

The Natural Log Graph

The graph of is the logarithmic graph with base . Because , it is increasing, and its easiest points use powers of :

How to graph the natural log: draw the dashed asymptote along the y-axis, plot and , add close to the asymptote, and join them with a curve that drops steeply near and flattens to the right. The natural log function graph never levels off completely: it reaches at and at , gaining one unit each time is multiplied by .

Natural log graph y = ln x through (1/e, -1), (1, 0), (e, 1) and (e^2, 2), with the y-axis as vertical asymptote
The natural log graph: one unit up each time x is multiplied by e

Transformations of Logarithmic Functions

The transformed logarithmic function is

ChangeEffect on the graphEffect on key features
shift right (left if )asymptote moves to ; domain
shift up asymptote unchanged
reflect across the x-axisincreasing becomes decreasing
vertical stretchsteeper climb
reflect across the y-axisdomain becomes

This is the mirror of the exponential case: for a logarithm, the horizontal shift moves the asymptote, and the vertical shift does not.

Finding the Domain of a Logarithmic Function

Set the argument greater than zero and solve:

FunctionConditionDomain
all

The boundary value from the condition is also the vertical asymptote.

Example 1: Key Features From the Equation

FunctionAsymptoteDomainx-intercept

For the second row, gives , so . For the last, gives .

Worked Example

Graph and state its domain, range, asymptote and intercepts.

Step 1 — identify the shifts. Write :

The parent moves left and down .

Step 2 — the horizontal shift moves the asymptote:

Step 3 — find the x-intercept by setting :

Step 4 — find the y-intercept by setting :

Step 5 — plot a few more points, choosing as powers of :

The range is all real numbers, as for every logarithmic function.

Graph of g(x) = log base 2 of (x + 3) minus 1 with asymptote x = -3, x-intercept (-1, 0) and the dashed parent log base 2 of x
Left 3, down 1: the asymptote moves to x = −3

Writing the Equation of a Transformed Logarithm

To write an equation for a transformed logarithm shown on a graph, read the asymptote first, then two points.

The graph below has asymptote and passes through and .

  1. The asymptote gives , so the model is .
  2. At the argument is , and . Since there, .
  3. At the argument is and , so , meaning .

The equation is . Check a third point: at , , which matches the graph.

A logarithmic graph with vertical asymptote x = 2 through (3, 0), (4, 1) and (6, 2), which is y = log base 2 of (x - 2)
Asymptote x = 2, then (3, 0) and (4, 1) fix k = 0 and b = 2

Common Mistakes to Avoid

  • Putting a y-intercept on the parent graph. is undefined, so never touches the y-axis.
  • Moving the asymptote with . For logarithms the asymptote is vertical, so only the horizontal shift moves it.
  • Reading as a shift right. , a shift left by .
  • Drawing the curve levelling off. The log graph has no horizontal asymptote. It keeps rising, just slowly.

Practice Problems

Work each one before opening the answer.

Problem 1. Find the domain and vertical asymptote of .

Show answer

Step 1 — the argument must be positive:

Step 2 — the boundary is the asymptote:

Answer: domain , asymptote

Problem 2. Find the domain of .

Show answer

Step 1 — set the argument positive:

Step 2 — add to both sides, then divide by :

Answer:

Problem 3. Find the asymptote and x-intercept of .

Show answer

Step 1 — the argument is zero at the asymptote:

Step 2 — the x-intercept is where the argument equals :

Answer: asymptote , x-intercept

Problem 4. Describe the transformations in and find its x-intercept.

Show answer

Step 1 — the negative reflects across the x-axis; shifts up . The asymptote stays at .

Step 2 — set :

Answer: reflected and shifted up ; x-intercept

Problem 5. The graph of passes through . Find .

Show answer

Step 1 — substitute the point:

Step 2 — convert to exponential form:

The base must be positive, so is rejected.

Answer:

Problem 6. Give three points on and say whether the graph rises or falls.

Show answer

Step 1 — use powers of as inputs:

Step 2 — as increases from to , drops from to .

Answer: , , ; the graph falls

Logarithmic and exponential functions are two views of the same relationship. The exponential vs logarithmic functions lesson puts them side by side and shows how to decide which one a problem calls for.

Frequently Asked Questions

What is the domain of a logarithmic function?+

The argument of a logarithm must be positive, so the domain of is . After a shift, solve "argument ": for that gives , and for it gives . The range is always all real numbers.

Does the graph of ln x ever level off?+

No. The natural log graph keeps rising without bound — passes at and at — but it rises so slowly that it can look flat. It has no horizontal asymptote; its only asymptote is the vertical line .

How is the graph of a logarithmic function related to the exponential graph?+

They are reflections of each other across the line , because and are inverse functions. Every point on the exponential becomes on the logarithm, so the exponential's horizontal asymptote becomes the logarithm's vertical asymptote .

Related lessons