Main content

### 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

© 2024 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Shape of a logarithmic parent graph

Sal graphs y=log₅(x). Created by Sal Khan and Monterey Institute for Technology and Education.

## Want to join the conversation?

- How do you graph logs with a base of, say, 3 on a TI-84(calculator)?(11 votes)
- There's a nice rule that log base n of X divided by log base n of Y is equal to log base Y of X, so log(27)/log(3) = log base 3 of 27 = 3.

Some TI calculators also have a logBASE(x,y) function that you can use for this purpose.(16 votes)

- what if the base is not given.. for example log 2122 or something... please explain..(2 votes)
- If the base is not shown, it is base 10. log wihtout a base means log base 10.(28 votes)

- so logs will never be proportional on a graph(7 votes)
- Good observation, indeed a logarithm is never a proportional function.(5 votes)

- Could you have a negative base so that you could have both negative and positive values for x?(4 votes)
- A negative base will actually just give you complex values, just like taking the logarithm of negative numbers.(5 votes)

- Ok the question i have is:

Sketch the graph of y=3-log2(x+2).

I understand that it basically says 3- log2^y = (x+2). But I dont understand how i would graph that.(4 votes)- You want to start with some x's that don't make really weird y's. I started with x=2 then I got

y=3-log2(2+2)

y=3-log2(4)

y=3-2

y=1

so you end up with (2,1). I tried some other numbers and baisicly for x you want

x=(2^x)-2

Here are the points I got.

(-1.75,5), (-1.5,4), (-1,3), (0,2), (2,1), (6,0), (14,-1), (30,-3)

You won't get a line, but it is predictable.

If you start at (0,2) then you can just do (x/2,y+1) to get the points on QII and (2x,y-1) for QI and QIV. As far as I can figure x will never equal -2. I hope this made sense.(2 votes)

- In exponential functions, what is the dependent variable and in logarithmic functions? Since x is the independent variable in exponential functions and logarithmic function is the inverse, shouldn't the dependent variable be x in the inverse function? I am confused!(4 votes)
- In function notation, "x" merely expresses the input to the function. It doesn't bear any connection to the "x" used elsewhere in the problem, or in the definition of a different function.

If you named both the input and output variables, then you would necessarily need to swap them to make a valid statement. Thus if y = e^x then x = ln(y). More likely, however, you'll see people write f(x) = e^x and g(x) = ln(x) where f(x) and g(x) are inverse functions. That is formally expressed by the property that f(g(x)) = g(f(x)) = x. Note that "y" never enters into it!(4 votes)

- What would Log_1 (1) be equal to? Is that a zero or One?(3 votes)
- Logs cannot have a base of 0 or 1. So, that is not defined.(3 votes)

- In linear equations, isn't the y dependent on the x? Why is it that in logarithms, the x is dependent on the y?(3 votes)
- Because with exponents, y is dependent on x, and since a logarithm is the inverse of an exponent (it "undoes" an exponent), it is just a graph of an equation with an exponent (not necessarily an exponential equation) flipped by 90 degrees. Technically, y is dependent on x, but it is usually easier to solve for x at a given value of y, rather than the way we normally do.(4 votes)

- What happens when you graph a logarithmic function on a logarithmic scale?(3 votes)
- why the base of the logarithm is 10 ?(2 votes)
- The common log is base 10 because we have a base 10 number system. Therefore, it is convenient to use a base 10 log.

More often, beginning in calculus, you would use natural logs almost exclusively. Natural logs are base e.

e is an irrational number that begins 2.718281828... It is a number, like π, that comes up repeatedly in math, science, and engineering.(3 votes)

## Video transcript

We're asked to graph, y is
equal to log base 5 of x. And just to remind us
what this is saying, this is saying that y
is equal to the power that I have to raise
5 to to get to x. Or if I were to write
this logarithmic equation as an exponential
equation, 5 is my base, y is the exponent that I
have to raise my base to, and then x is what I get when
I raise 5 to the yth power. So another way of writing
this equation would be 5 to the y'th power is
going to be equal to x. These are the same thing. Here, we have y as
a function of x. Here, we have x as
a function of y. But they're really saying
the exact same thing, raise 5 to the y'th
power to get x. When you put it as a
logarithm, you're saying, well, what power do I have
to raise 5 to to get x? We'll have to raise it to y. Here, what do I get when I
raise five to the y power? I get x. That out of the way, let's
make ourselves a little table that we can use to
plot some points, and then we can
connect the dots to see what this curve looks like. So let me pick some
x's and some y's. And we, in general, want to
pick some numbers that give us some nice round answers, some
nice fairly simple numbers for us to deal with,
so that we don't have to get the calculator. And so in general,
you want to pick x values where the power
that you have to raise 5 to to get that x value is a
pretty straightforward power. Or another way to
think about it, you could just think about
the different y values that you want to raise
5 to the power of, and then you could
get your x values. So we could actually
think about this one to come up with our
actual x values. But we want to be clear that
when we express it like this, the independent variable is x,
and the dependent variable is y. We might just look at
this one to pick some nice even or nice x's that give
us nice clean answers for y. So here, I'm actually going
to fill in the y first, just so we get nice clean x's. So let's say we're
going to raise five to the-- let's say we're going
to raise it-- I'm going to pick some new colors-- negative
2, negative 2 power-- and let me do some other
colors-- negative 1, 0, 1. I'll do one more, and then 2. So once again, this is
a little nontraditional, where I'm filling in the
dependent variable first. But the way that
we've written it over here, it's actually given
the dependent variable, it's easy to figure out what
the independent variable needs to be for this
logarithmic function. So, what x gives me
a y of negative 2? What x gives me--
what does x have to be for y to be
equal to negative 2? Well, 5 to the negative 2 power
is going to be equal to x. So 5 to the negative
2 is 1 over 25. So we get 1 over 25. If we go back to
this earlier one, if we say log base
5 of 1 over 25, what power do I have to
raise 5 to to get 1 over 25? We'll have to raise it
to the negative 2 power. Or you could say 5
to the negative 2 is equal to 1 over 25. These are saying the
exact same thing. Now let's do another one. What happens when I raise
5 to the negative 1 power? I get one fifth. So if we go to this
original one over there, we're just saying that
log base 5 of one fifth. Want to be careful. This is saying, what power
do I have to raise 5 to in order to get one fifth. We'll have to raise it
to the negative 1 power. What happens when I take
5 to the 0'th power? I get one. And so this relationship--
This is the same thing as saying log base 5 of 1. What power do I have
to raise 5 to to get 1? I just have to raise
it to the 0th power. Let's do the next two. What happens when I raise
5 to the first power? Well, I get 5 So if you go look
over here, that's just saying, log, what power do I have
to raise 5 to to get 5? We'll have to just raise
it to the first power. And then finally, if I
take 5 squared, I get 25. So when you look at it from
the logarithmic point of view, you say, well, what power
do I have to raise 5 to to get to 25? We'll have to raise it
to the second power. So I took the inverse of
the logarithmic function. I wrote it as an
exponential function. I switched the dependent
and independent variables, so I can derive nice clean x's
that will give me nice clean y's. Now with that out of the way,
but I do want to remind you, I could have just picked
random numbers over here, but then I would have probably
gotten less clean numbers over here. I would have had to
use a calculator. The only reason why
I did it this way, is so I get nice clean results
that I can plot by hand. So let's actually graph it. Let's actually graph
this thing over here. So the y's go between
negative 2 and 2. The x's go from 1/25th
all the way to 25. So let's graph it. So that is my y-axis,
and this is my x-axis. Draw it like that. That is my x-axis. And then the y's start at 0. Then, you get to
positive 1, positive 2. And then you have negative 1. And you have negative 2. And then on the x-axis,
it's all positive. And I'll let you think about
whether the domain here is-- well, when you
think about it-- is a logarithmic
function defined for an x that is not positive? So is there any power that I can
raise five to that I can get 0? No. You could raise five to an
infinitely negative power to get a very, very, very, very
small number that approaches zero, but you can
never get-- there's no power that you can
raise 5 to to get 0. So x cannot be 0. And there's no power
then you could raise 5 to get another negative number. So x can also not be
a negative number. So the domain of this function
right over here-- and this is relevant, because we want
to think about what we're graphing-- the domain here is
x has to be greater than zero. Let me write that down. The domain here is that x
has to be greater than 0. So we're only going
to be able to graph this function in
the positive x-axis. So with that out of the
way, x gets as large as 25. So let me graph-- we
put those points here. So that is 5, 10,
15, 20, and 25. And then let's plot these. So the first one is in blue. When x is 1/25 and
y is negative 2-- When x is 1/25 so
1 is there-- 1/25 is going to be really close to
there-- Then y is negative 2. So it's going to be
like right over there, not quite at the y-axis. We're at 1/25 to the
right of the y-axis. But pretty close. So that's right over there. That is 1 over 25, comma
negative 2 right over there. Then, when x is one
fifth, which is slightly further to the right, one
fifth y is negative 1. So right over there. So this is one
fifth, negative 1. Then when x is 1, y is 0. So 1 might be right there. So this is the point 1,0. And then when x is 5, y is 1. When x is 5, I covered it
over here, when this is five, y is 1. So that's the point 5,1. And then finally,
when x is 25, y is 2. So this is 25,2. And then I can
graph the function. And I'll do it-- let me do it
in a color-- I'll use this pink. So as x gets super, super,
super, super small, y goes to negative infinity. It gets really small-- to
get x's or as x becomes-- if you say what power do
you have to raise 5 to to get 0.0001? It has to be very, very,
very negative power. So y is going to be very
negative as we approach 0. And then it kind of
moves up like that. And then starts to kind of
curve to the right like that. And this thing
right over here, is going to keep going down at
a steeper and steeper rate. And it's never going
to quite touch. the y-axis. It's going to get closer
and closer to the y-axis. But it's never going
to be quite touch it.