How to Graph Logarithmic Functions?

TL;DR: A logarithmic graph is the inverse of an exponential graph. The parent graph \(y=\log_b(x)\) has domain \(x>0\), range all real numbers, vertical asymptote \(x=0\), and key points \((1,0)\), \((b,1)\), and \((b^2,2)\).

  • If \(b>1\), the parent log graph increases. If \(0
  • For \(y=a\log_b(x-h)+k\), the vertical asymptote moves to \(x=h\).
  • Use easy log inputs \(1\), \(b\), and \(b^2\) to build reliable points quickly.
  • A log graph often has no y-intercept because the input of the logarithm must be positive.

Graphing logarithmic functions is much easier when you stop hunting for random x-values. A log graph has a wall, called a vertical asymptote, and it has a few dependable points that come from powers of the base. In this lesson, we will use those pieces like a tutor would: find the asymptote, build easy points, apply the transformations, and check the shape.

How to Graph Logarithmic Functions?
Tutor-style math help

Graph Logarithmic Functions: what to notice and how to work it

Logarithms skill
A logarithm is an exponent question written backward. Before using log rules, translate the statement into the power it is asking about.

What to notice first

Identify the base and the input. The input of a logarithm must be positive in real-number work.

Common student mistake

Do not split a sum inside a logarithm. \(\log_b(M+N)\) is not \(\log_b M+\log_b N\).

Key formulas and cues

\(\log_b(x)=y\Leftrightarrow b^y=x\)
\(\log_b(MN)=\log_b M+\log_b N\)
\(\log_b(M^p)=p\log_b M\)
\(\log_b(x-h)\text{ needs }x>h\)
vertical asymptote

A reliable path

  1. Translate firstAsk: the base to what power gives the input?
  2. Use rules legallyProducts, quotients, and powers have rules; sums do not split.
  3. Protect the domainKeep the log input positive and track asymptotes when graphing.

Worked examples

Evaluate a log

Example: \(\log_3(81)\)
  1. Ask 3 to what power equals 81.
  2. 3 to the fourth power is 81.
  3. The logarithm is that exponent.
Answer: \(4\)

Find a log domain

Example: \(y=\log_2(x-5)\)
  1. The input is x – 5.
  2. Require x – 5 > 0.
  3. Solve the inequality.
Answer: \(x>5\)
Try one before moving on
Try: Evaluate \(\log_4(64)\).
Answer: \(3\), because \(4^3=64\).
Next step: do the matching worksheet or quiz while the method is still fresh, then come back and explain the first step in your own words.

What a logarithmic graph means

A logarithm asks an exponent question:

Free tool: try the problems from this lesson in our Logarithm Calculator.

\[y=\log_b(x) \quad \Longleftrightarrow \quad b^y=x\]

So \(\log_2(8)=3\) because \(2^3=8\). On a graph, the input \(x\) must be positive, because there is no real exponent that makes a positive base equal to zero or a negative number.

Compared with the basic reference idea: knowing the parent graph is only the start. To graph logarithmic functions well, you also need to handle shifts, stretches, reflections, asymptotes, and domain changes.

The parent graph \(y=\log_b(x)\)

FeatureWhat it means
Base\(b>0\) and \(b\ne1\). Bases greater than 1 increase; bases between 0 and 1 decrease.
Domain\(x>0\), because the log input must be positive.
RangeAll real numbers. The graph can go up or down without a highest or lowest y-value.
Vertical asymptote\(x=0\). The graph approaches the y-axis but never touches it.
Key points\((1,0)\), \((b,1)\), and \((b^2,2)\). These come from \(\log_b(1)=0\), \(\log_b(b)=1\), and \(\log_b(b^2)=2\).
Inverse relationship\(y=\log_b(x)\) reflects \(y=b^x\) across \(y=x\).
One-to-oneEvery horizontal line hits the graph at most once, so a logarithmic function has an inverse.
Parent logarithmic graph sketches for two base ranges One logarithmic curve increases when the base is greater than one, and another decreases when the base is between zero and one. Base b > 1: increasing (1,0) (b,1) (b^2,2) x=0 Base 0 < b < 1: decreasing (1,0) (b,1) (b^2,2) x=0

End behavior and special log facts

The graph behavior near the asymptote depends on the base.

Base rangeAs \(x\to0^+\)As \(x\to\infty\)Shape
\(b>1\)\(y\to-\infty\)\(y\to\infty\)Increasing
\(0\(y\to\infty\)\(y\to-\infty\)Decreasing

Two more facts are worth keeping close:

  • \(\ln(x)=\log_e(x)\), where \(e\approx2.718\).
  • Change of base: \(\log_b(x)=\dfrac{\ln x}{\ln b}\). This is why graphing tools can use natural logs to graph logs with many different bases.

How to graph \(y=a\log_b(x-h)+k\)

Most log graph problems in school math are transformations of the parent graph. Use this reliable process:

  1. Find the vertical asymptote. Set the log input equal to zero. For \(x-h\), the asymptote is \(x=h\).
  2. Find the domain. Make the log input greater than zero. For \(x-h\), the domain is \(x>h\).
  3. Choose easy inputs. Make the inside of the log equal \(1\), \(b\), and \(b^2\).
  4. Transform the y-values. The parent y-values \(0\), \(1\), and \(2\) become \(k\), \(a+k\), and \(2a+k\).
  5. Sketch the curve. The curve should approach the asymptote and pass through your transformed points.
\[(h+1,k),\quad (h+b,a+k),\quad (h+b^2,2a+k)\]

Those three points are the fastest clean graphing points for \(y=a\log_b(x-h)+k\).

Worked example 1: graph \(f(x)=2\log_3(x+1)\)

Step-by-step

  1. The input is \(x+1\), so set \(x+1=0\). The vertical asymptote is \(x=-1\).
  2. The domain is \(x+1>0\), so \(x>-1\).
  3. Use inside values \(1\), \(3\), and \(9\). That gives x-values \(0\), \(2\), and \(8\).
  4. The parent outputs \(0\), \(1\), and \(2\) are multiplied by 2, so the y-values are \(0\), \(2\), and \(4\).

Graphing data

Asymptote: \(x=-1\)

Domain: \((-1,\infty)\)

Range: all real numbers

Points: \((0,0)\), \((2,2)\), \((8,4)\)

The graph is increasing because the base is \(3>1\) and the coefficient is positive.

Worked example 2: graph \(g(x)=-\log_2(x-4)+1\)

This one has a horizontal shift, a reflection across a horizontal line, and a vertical shift.

  1. Set \(x-4=0\). The vertical asymptote is \(x=4\), and the domain is \(x>4\).
  2. Use inside values \(1\), \(2\), and \(4\), giving x-values \(5\), \(6\), and \(8\).
  3. The parent outputs are \(0\), \(1\), and \(2\).
  4. Multiply by \(-1\) and add \(1\), giving y-values \(1\), \(0\), and \(-1\).

Graph \((5,1)\), \((6,0)\), and \((8,-1)\), then sketch a decreasing curve approaching \(x=4\).

Worked example 3: graph \(h(x)=\log_{1/2}(x)+2\)

The base is between 0 and 1, so the graph decreases as x increases.

Inside valueLog valueAfter adding 2Point
\(1\)\(0\)\(2\)\((1,2)\)
\(1/2\)\(1\)\(3\)\((1/2,3)\)
\(2\)\(-1\)\(1\)\((2,1)\)

Common mistakes to avoid

  • Using random x-values first. Pick inside values \(1\), \(b\), and \(b^2\) instead. They make the log values easy.
  • Forgetting the domain. The inside of the log must be greater than zero, not greater than or equal to zero.
  • Drawing a y-intercept automatically. Many log graphs never touch the y-axis.
  • Mixing up shifts. In \(\log_b(x-h)\), the asymptote is \(x=h\), not \(x=-h\).
  • Ignoring a negative coefficient. A negative value of \(a\) flips the graph vertically.

Practice problems

  1. For \(f(x)=\log_4(x-2)\), find the vertical asymptote and domain.
  2. For \(g(x)=3\log_2(x)+1\), list three easy points.
  3. For \(h(x)=-2\log_5(x+3)\), find the asymptote and say whether the graph increases or decreases.
  4. For \(p(x)=\log_{1/3}(x)-4\), find the point that comes from the parent point \((1,0)\).
  5. For \(q(x)=2\log_3(x-1)-5\), find the asymptote, domain, range, three graphing points, and whether the graph increases or decreases.

Answers:

  1. Asymptote \(x=2\); domain \(x>2\).
  2. Use inside values \(1,2,4\): points \((1,1)\), \((2,4)\), \((4,7)\).
  3. Asymptote \(x=-3\). The graph decreases because the base is greater than 1 and the coefficient is negative.
  4. The point \((1,0)\) shifts down 4, so \((1,-4)\).
  5. Asymptote \(x=1\); domain \(x>1\); range all real numbers. Use inside values \(1,3,9\), so x-values are \(2,4,10\). Parent outputs \(0,1,2\) become \(-5,-3,-1\). Points: \((2,-5)\), \((4,-3)\), \((10,-1)\). The graph increases because \(3>1\) and the coefficient is positive.

Related EffortlessMath lessons

If a piece of this lesson feels rusty, these pages connect directly to the skills used here:

Recommended EffortlessMath Books

For a workbook that builds logarithmic graphs into a full exponential-and-log unit, the Algebra II for Beginners walks through every transformation with worked examples. For pre-calc-level coverage that prepares you for calculus and natural logs, see the Pre-Calculus for Beginners.

Original price was: $27.99.Current price is: $17.99.
Satisfied 1 Students

Frequently Asked Questions

How do you graph logarithmic functions step by step?

Start by finding the vertical asymptote: set the log input equal to zero. Next, pick easy inputs that make the log equal 0, 1 and 2 (input 1, the base b, and b²), then apply any stretch, reflection or shift to those points. Plot them and draw a smooth curve that hugs the asymptote on one side and keeps rising or falling slowly on the other.

How do you graph logarithmic functions with transformations?

Write the function as y = a·log_b(x − h) + k. The asymptote moves to x = h, k shifts every point up or down, and a stretches the graph (a negative a flips it over the x-axis). For f(x) = 2·log₃(x + 1), the asymptote is x = −1 and the parent points (1, 0) and (3, 1) become (0, 0) and (2, 2).

How do you graph logarithmic functions using a table of values?

Choose x-values that are powers of the base so the outputs come out as whole numbers. For y = log₂(x), use x = 1/2, 1, 2, 4 and 8, which give y = −1, 0, 1, 2 and 3. Plot those pairs, remember that x must stay greater than 0, and connect them with a smooth curve that drops toward the y-axis.

Is a logarithmic function increasing or decreasing?

It depends on the base. When the base is greater than 1, such as log₂(x) or log₁₀(x), the graph always increases. When the base is between 0 and 1, such as log_{1/2}(x), the graph always decreases. A negative coefficient in front of the log also flips the direction, so −log₂(x) decreases.

Are log graphs functions?

Yes. A logarithmic graph passes the vertical line test, because each allowed x-value gives exactly one y-value. It also passes the horizontal line test, which makes it one-to-one. That is why y = log_b(x) has an inverse, the exponential function y = bˣ, and the two graphs are mirror images across the line y = x.

How do you graph logarithmic functions on Desmos?

Type the function directly, for example y = log_3(x + 1). Desmos reads log_3 as base 3, log as base 10 and ln as base e. Once it is drawn, click the curve to see key points such as the x-intercept, and compare it with your hand sketch to check the asymptote and the direction of the graph.

Related to This Article

What people say about "How to Graph Logarithmic Functions"?

No one replied yet.

Leave a Reply