Main content

## Algebra 2 (Eureka Math/EngageNY)

### Course: Algebra 2 (Eureka Math/EngageNY) > Unit 3

Lesson 9: Topic C: Lessons 17-22: Graphs of exponential and logarithmic functions- Relationship between exponentials & logarithms
- Relationship between exponentials & logarithms: graphs
- Relationship between exponentials & logarithms: tables
- Relationship between exponentials & logarithms
- Transforming exponential graphs
- Transforming exponential graphs (example 2)
- Graphing exponential functions
- Graphs of exponential functions
- Graphical relationship between 2ˣ and log₂(x)
- Shape of a logarithmic parent graph
- Graphs of logarithmic functions
- Graphs of logarithmic functions

© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Graphs of logarithmic functions

CCSS.Math: , ,

Sal is given a graph of a logarithmic function with four possible formulas, and finds the appropriate one. Created by Sal Khan.

## Want to join the conversation?

- At5:37, why is it log base 2 (x+2) and not (x-2)? The blue graph is shifted 2 points to the left and not the right.(13 votes)
- In terms of the x - h example above, I've been finding it helpful to think that "the graph must compensate for h".

E.g. when you see log_2(x-2), you have "lost" 2 units, and must compensate by moving the graph 2 units to the right. Likewise when you see log_2(x+2), you have "gained" 2 units, and must compensate by moving the graph 2 units to the left.(5 votes)

- even after watching all the videos related to logarithmic functions I still can't comprehend let alone complete the practice session! Can you post another video that thoroughly explains how to find which equation matches the graph.(16 votes)
- You can always just plot points for each graph and see which one fits. It will take a bit longer though.(5 votes)

- How do you actually do the math for a negative logarithm?(7 votes)
- Do you mean the negative of a logarithm, or the logarithm of a negative number?

The logs of negative numbers (and you really need to do these with the natural log, it is more difficult to use any other base) follows this pattern.

Let k > 0

ln (−k) = ln (k) + π 𝑖

For other bases the pattern is:

logₐ(−k) = logₐ(k) + logₐ(e)*π 𝑖

If you mean the negative of a logarithm, such as

y = − log x, then you just change the sign of y as you would with any other negation.(6 votes)

- What's up with that red guy who appears sometimes above a video and then disappears?(4 votes)
- to see if you are actually watching the videos! Hahaha(2 votes)

- At1:34Sal states that 2 to the 0th power is 1, why? Shouldn't it be 0 because anything times 0 = 0? Plus 2 times itself 0 times...I'm confused. :l

Already answered.(1 vote)- The easiest way to explore is this:

Anything divided by itself is 1. [Except 0, 0/0 is undefined]

So (n^a)/(n^a)=1

What happens when divide bases to powers? We subtract them.

( n ^ a ) / ( n ^ a ) = n ^ ( a - a ) .

a-a=0.

Therefore

n ^ 0 = n ^ ( a - a ) = ( n ^ a ) / ( n ^ a ) = 1

n ^ 0 = 1.

However, since 0/0 is undefined, 0^0 is also undefined. So it is a MOSTLY true statement. One exception, however, isn't bad when you realize losing that exception breaks mathematics.(4 votes)

- For the 4th option, where y = - log2(x+2) , if I put y= -2 , I get x=14, which doesn't match the curve he's drawn?(1 vote)
- See if this helps:

Like Sal mentioned, ask yourself, "What power (i.e y) of the base (i.e 2) will give x"?

With y=-2, we have to find 2^-2. We can write this in the form 1/(2^-2), which is 1/4.

Also, check out the earlier video on rules of exponents.(3 votes)

- This is easier to understand, but is there a faster way of calculating this?(2 votes)
- when graphing log 2 X, I get confused. you keep saying that X is equal to 8, but isn't Y technically equal to 8? X is the exponent, not the total? please elaborate.(1 vote)
**y=log2x**is the*same thing*as**2^y=x**so if**x=8**we can subsitute it in.**2^y=8**

we know that**2^3=8**so**y=3**(2 votes)

- How do you find the vertex given the equation?(1 vote)
- Because this is a logarithmic equation, there is no vertex like there would be in a quadratic equation (a parabola).(1 vote)

- How about when there's a number in front of the log?

i.e. f(x)=2log base 2 ^(x-2) +1

how would I go about graphing this?(1 vote)

## Video transcript

Voiceover:We have a graph right over here, and we have 4 potential function
definitions for that graph. What you might want to do
is pause the video right now and think about which of
these function definitions are actually being depicted
in this graph right over here? I'm assuming you've given a go at it. Now let's work through it together. Before we even address these, we all see that they all have a log base 2 in the function definition. Let's just remind ourselves what y equals log base
2 of x even looks like, and then we could think about what happens if we were to add 1 or subtract 1 from it, or if we were to shift it a little bit. Let's just think about some
interesting values here. Let's think about some interesting values. Let's think about what happens. We'll have x and y. Let's think about when x is equal to 2. I picked 2 because if x is equal to 2, you're saying log base 2 of 2, what power do I have to
raise 2 to to get to 2? We'll have to raise it to the 1st power. What about when x is equal to ... Actually, let me do several of them. Let's do an x is equal to 8. Log base 2 of 8 is 3. I raise 2 to the 3rd power. I get 8. Let's do 4. Log base 2 of 4 is 2. 2 to the 2nd power is equal to 4. Let's do 2, where we started off with. That log base 2 of 2 is going to be 1. 2 to the 1st power is equal to 2. Now let's think about
when x is equal to 1. We'd have to raise 2 too to get to 1. Well, I raise it to the 0th power. 2 to the 0th power is equal to 1. Now let's think about
how we would get to 1/2. What do I have to raise
2 to to get to 1/2? 2 to the negative 1 power
is going to be equal to 1/2, and I can keep going. What about 1/4? That's 2 to the negative 2 power is 1/4. I could go to 1/8. 2 to the negative 3 power is equal to 1/8. Now let's just graph some of these points. When x is equal to 8, y is equal to 3. When x is equal to 4, y is equal to 2. When x is equal to 2, y is equal to 1. When x is equal to 1, y is equal to 0. I think you see the general
shape already forming. When x is 1/2, y is negative 1. When x is 1/4, y is negative 2. I think you see where this is going. When x is 1/8, y is negative 3. See, you have a graph that
looks something like this. It looks something like this. I'm just connecting the dots. This is the behavior that we would expect. As x becomes really, really, really large, you think about what power
do I have to raise 2 to, 2 to to get that x? Well, it's going to increase, but it's going to increase
at an ever-decreasing rate. Then we see that as x
approaches 0 from the right, to get closer and closer to 0, you have to raise 2 to more and more and more negative values, so the log, as we approach 0, it becomes very, very, very, very, very negative. We could never quite get to x equals 0. If you put an actual 0 right over here, what power would you have
to raise 2 to to get to 0? Well, you can't. You could get close to 0
by raising 2 to a very, a very, very, very negative a very, very, very negative value, and this thing right over
here is not going to be even defined for negative, for any, for non-positive x's. That's why we have it not
defined for anything less than or equal to 0. This domain right over here
is only for positive x's. That's log base 2 of x. How is this thing right over here, how does this thing right
over here look different? Well, the obvious thing
that jumps out at me is that it's flipped over the x-axis, so that's a pretty good
sign that this is going ... we're going to have a
negative log base 2 of x. Let's actually now graph. Let's graph that. What's y is equal to
negative log base 2 of x going to look like? Each of these points, we're
just going to flip it over, we're just going to
flip it over the x-axis, so we're going to go there. We're going to go there. We're going to go there, and then this, this is going to go through
that point right over here, and then let's see, instead of it 1/2, it's
going to be like this. y equals negative log base 2 of x is going to look something like this. Let me see if I can draw it neatly. It's going to look something like this, something like this. We're getting close to the blue graph. That's y equals negative log base 2 of x. What's the difference between the green graph
and the blue graph? If you look carefully, you see, you see that the blue graph is essentially the green graph shifted to the left by 2, shifted to the left. We've shifted it to the left by 2. At every one of these points, we have shifted to the left by 2. How do you shift to the left by 2? You would replace the x with an x plus 2. You would replace the x with an x plus 2. One way to think about it is in the original negative log base 2 of x, we see this asymptote at x equals 0. Now we're going to see the asymptote when this whole expression, x plus 2 is equal to 0, x plus 2 is equal to 0 when
x is equal to negative 2. When x is equal to negative 2, you see the asymptote right over there. I encourage you, you could
try values out if you like. You could essentially
take all of these values. You could take all of these
values and subtract 2 from them, and then when you add 2, you're going to get back to these values. If you shift to the left by 2, that's like replacing
the x with an x plus 2. This is what is being graphed. Once again, try out the values
if you don't believe me.