Steply

Graph y = log(x + 2)

Step by step, with the reason for every step · Graphs of logarithms · Algebra 2

Step by step

The question

Question: graph y = log(x + 2).

A log with no small number is base 10.

y = log(x + 2)

A log is a power.

log of c is the power of 10 that makes c.

log c = the power of 10 that gives c

1 Find the domain

10 to any power is always more than 0.

So a log only takes positive numbers.

The inside must be more than 0.

a log only takes numbers > 0

The inside is x + 2.

So x + 2 > 0.

x + 2 > 0

To remove the + 2, we take away 2 on both sides.

x + 2 − 2 > 0 − 2

So the domain is x > −2.

x > −2

Books also write it as (−2, ∞).

The round bracket means −2 itself is not in.

∞ means it goes on for ever.

interval: (−2, ∞)

2 Vertical asymptote

At the edge, the inside is 0: x = −2.

Close to it, the graph goes down and down.

This is the vertical asymptote.

x + 2 = 0 → x = −2

Careful!

The asymptote is where the inside is 0, not where x is 0.

Here that is x = −2.

Careful: not asymptote x = 0 ✗

3 Find some points

The log is easy when the inside is a power of 10: 1/10, 1 and 10.

We choose x to make that happen.

inside = 110, 1, 10

Make the inside 1/10: x is −19/10.

log of 1/10 is −1, because 10 to the power −1 is 1/10.

So y is −1.

x + 2 = 110 → x = −1910, y = log 110 = −1

Inside 1: x is −1.

log of 1 is 0, because 10 to the power 0 is 1.

So y is 0.

x + 2 = 1 → x = −1, y = log 1 = 0

Inside 10: x is 8.

log of 10 is 1, because 10 to the power 1 is 10.

So y is 1.

x + 2 = 10 → x = 8, y = log 10 = 1

4 Draw the graph

Draw the grid.

The asymptote x = −2, dashed.

Plot the points.

Join them with a smooth curve.

Near x = −2 it goes down along the dashed line, but never touches it.

So: domain x > −2, asymptote x = −2.

= domain x > −2, asymptote x = −2

5 Check

Let's check: at x = −2 the inside is 0, and no power of 10 is 0.

So there is no point there: the asymptote is right.

x = −2: inside = 0, log 0: no power of 10 is 0

The purple curve is y = log x, the plain log.

Ours is that curve moved left 2.

The same shape.

It works!

Let's look back.

First: find the domain.

Then: vertical asymptote.

Then: find some points.

Then: draw the graph.

Last: check.

Answer
= domain x > −2, asymptote x = −2

Your turn

Try this one yourself, then check:

y = log(x + 4)
Show the answer
domain x > −4, asymptote x = −4

More from Graphs of logarithms

The whole lesson: Graphs of logarithms →