Logarithms and their graphs
A logarithm is an exponent. When you write log base b of N equals k, you are saying that b raised to the power k gives N. The logarithmic function with base b is the inverse of the exponential with the same base, so its graph is the exponential graph reflected across y = x.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first session| x | 1/8 | 1/4 | 1/2 | 1 | 2 | 4 | 8 |
|---|---|---|---|---|---|---|---|
| y = log base 2 of x | −3 | −2 | −1 | 0 | 1 | 2 | 3 |
Each pair (x, y) here is the reverse of a pair on y = 2 to the x, which is the inverse relationship in numbers.
George Li Tutoring, computed from the definition: log base 2 of N is the exponent on 2 that gives N
How do you switch between log form and exponent form?
The two forms say the same thing. The base of the log is the base of the power, the log's value is the exponent, and the number inside the log is the result.
- log base 4 of 64 = 3, because 4 cubed is 64.
- log base 9 of one third = negative one half, because 9 to the negative one half is 1 over the square root of 9, which is one third.
- log of 0.001 = negative 3, because 10 to the negative 3 is 0.001. With no base written, a log means base 10 in most algebra courses.
- ln of e to the 5 = 5. The natural log, written ln, has base e, about 2.718, so it simply undoes e to a power.
To find an unknown base, use the same switch. If log base x of 81 = 4, then x to the 4 equals 81, so x = 3. The base must be positive and not equal to 1, which is why only 3 is allowed and not negative 3.
What do common and natural logarithms mean?
Two bases are common enough to get their own buttons. The common logarithm uses base 10 and is written log. The natural logarithm uses base e and is written ln. They behave identically in every rule. The difference is only the number you are counting powers of. A calculator gives log 1000 = 3 and ln of e squared = 2, and to compute any other base you convert with a quotient of two logs, as the page on log rules shows.
What are the features of a logarithmic function?
Take f(x) = log base b of x, with b positive and not 1.
- Domain: all x greater than 0, because no power of a positive base gives zero or a negative.
- Range: every real number, since the exponent can be anything.
- Intercept: the graph crosses the x-axis at (1, 0), because b to the 0 is 1. There is no y-intercept.
- Another easy point: (b, 1), since b to the 1 is b.
- Vertical asymptote: the y-axis, x = 0. As x shrinks toward 0 from the right, the outputs grow without bound in size: downward when b is greater than 1, upward when b is between 0 and 1.
- Direction: rising when b is greater than 1, falling when b is between 0 and 1.
- One-to-one: each output comes from only one input, which is what lets it have an inverse, the exponential.
- Symmetry: the graph mirrors the exponential across y = x.
Those facts transfer to any version of the function. When a problem gives you an unfamiliar log graph, find the domain and the asymptote first, then the point where the inside equals 1.
How do you find the domain of a log expression?
Make the inside positive and solve the inequality. For f(x) = log(5 minus 2x), you need 5 minus 2x greater than 0. Subtracting 5 gives negative 2x greater than negative 5, and dividing by negative 2 flips the sign, so x is less than 2.5. The domain is every x below 2.5, and the asymptote sits at x = 2.5.
How does shifting change the graph?
Worked example: Read the features of a shifted log graph. For g(x) = log base 2 of (x minus 3) plus 1, find the domain, the vertical asymptote and two points, then check them.
- The inside is x minus 3, so it must be positive: x greater than 3. The domain is x greater than 3.
- The graph of log base 2 of x has its asymptote at x = 0. Replacing x with x minus 3 slides everything 3 units right, so the asymptote is x = 3.
- Add 1 outside the log, which lifts the whole graph up 1 unit and leaves the asymptote alone.
- The base graph passes through (1, 0) and (2, 1). Move each right 3 and up 1: (4, 1) and (5, 2).
- Check (4, 1): log base 2 of 1 is 0, and 0 plus 1 is 1. Check (5, 2): log base 2 of 2 is 1, and 1 plus 1 is 2.
Answer: domain x greater than 3, asymptote x = 3, and the graph passes through (4, 1) and (5, 2).
A shift inside the log moves the asymptote. A shift outside the log, like the plus 1, moves the points up or down and leaves the asymptote where it is.
When does a tutor help with logarithms?
A tutor helps when the exponent form and the log form feel like two topics, or when graph questions slip because the domain and the asymptote are not the first things you look for. A session can take one function family at a time and end with a few problems you do alone. See the high school courses page, the packages page, or book a first session.
Common questions
What is a logarithm in simple terms?
It is the exponent you need on a given base to produce a number. The log base 3 of 27 is 3, since 3 cubed is 27.
What is the difference between log and ln?
Log with no base written means base 10 in most algebra courses, and ln means base e. Everything else about them is the same.
Why can't you take the log of a negative number?
Because no positive base raised to any real power gives a negative result, so there is no exponent to report.
What does the graph of a log function look like?
It rises or falls slowly, crosses the x-axis at (1, 0), has the y-axis as a vertical asymptote and stays to the right of that axis.