DoAssignment.ca

A2.1 · Graph logarithmic functions and identify key features

Learn to graph logarithmic functions and identify key features through clear examples and targeted practice.

Ontario Grade 12 Mathematics

Exponential and Logarithmic Functions

Ontario Grade 12 Mathematics — A2.1

A logarithm answers a question about an exponent. For example, log⁡28=3\log_2 8=3 because 23=82^3=8. This connection helps us graph logarithmic functions. Points on an exponential graph become points on its inverse logarithmic graph, with the coordinates switched. In this lesson, you will use that relationship, a value table, and key graph features to sketch and describe logarithmic functions.

What you will learn

1. Prerequisite bridge: logarithms and powers

A power has a base and an exponent. In 23=82^3=8, the base is 22 and the exponent is 33. A logarithm asks which exponent produces a given number. Thus, log⁡28=3\log_2 8=3.
In log⁡bx\log_b x, bb is the base and xx is the input. The logarithm is defined when xx is positive, and the base must be positive and not equal to 11. In this lesson, the bases are greater than 11. The defining relationship is that log⁡bx=y\log_b x=y exactly when by=xb^y=x.
The domain is the set of allowed input values. The range is the set of possible output values. An intercept is a point where a graph meets an axis. For the logarithmic graphs in this lesson, a vertical asymptote is a vertical line that the graph approaches but does not meet. It marks the boundary of the domain.
log⁡bx=y  ⟺  by=x\log_b x=y\iff b^y=x

2. From a value table to a graph

Start with y=log⁡2xy=\log_2 x. To make a table, choose simple exponents and use powers of 22 to find the matching inputs. If the exponent is −2-2, then the input is 2−2=142^{-2}=\frac14. This gives the point (14,−2)(\frac14,-2).
The graph also passes through (1,0)(1,0) because 20=12^0=1. It passes through (2,1)(2,1) because 21=22^1=2, and through (4,2)(4,2) because 22=42^2=4. Plotting points such as these shows the graph’s shape. The graph increases from left to right: larger positive inputs give larger outputs.
The inputs must be positive, so the domain is x>0x>0. The output can be any real number, so the range is all real numbers. As the input approaches 00 from the positive side, the output decreases without bound. The graph approaches the vertical line x=0x=0 but does not meet it. This line is the vertical asymptote. The graph crosses the xx-axis at (1,0)(1,0) and has no yy-intercept because x=0x=0 is not in its domain.
by=xb^y=x

3. Transformations and key features

A transformation moves or changes a graph. In y=log⁡b(x−h)+ky=\log_b(x-h)+k, the horizontal shift is controlled by hh, and the vertical shift is controlled by kk. The input of the logarithm must remain positive, so require x−h>0x-h>0. This gives a domain of x>hx>h and a vertical asymptote at x=hx=h.
The range remains all real numbers. The basic point (1,0)(1,0) moves to (h+1,k)(h+1,k). To find an xx-intercept, set y=0y=0 and solve for xx. To check for a yy-intercept, set x=0x=0 and make sure that this input is in the domain before evaluating the function.
For y=alog⁡b(x−h)+ky=a\log_b(x-h)+k, the factor aa changes the vertical scale and may reflect the graph. When b>1b>1, the basic logarithmic graph increases. If a>0a>0, it still increases; if a<0a<0, it decreases. For a≠0a\ne0, the range remains all real numbers, and the vertical asymptote and domain are unchanged by this outside factor.
y=alog⁡b(x−h)+ky=a\log_b(x-h)+k

4. A reliable graphing process

First, find the domain by requiring the logarithm’s input to be positive. The boundary value gives the vertical asymptote for the logarithmic graphs in this lesson. Next, use convenient powers of the base to make points. Include the point that comes from an exponent of 00, since it often makes a useful anchor.
Then identify the direction of change and any shifts or reflections. Plot the points on the allowed side of the vertical asymptote, and draw a smooth curve through them that approaches the asymptote without meeting it. Finally, find intercepts by testing y=0y=0 and x=0x=0, checking the domain each time.

Points for the worked example

Exponent usedInput xxOutput yyPoint
−1-173\frac7322(73,2)\left(\frac73,2\right)
003311(3,1)(3,1)
115500(5,0)(5,0)

Worked example

Graph and describe a transformed logarithmic function

Sketch y=−log⁡3(x−2)+1y=-\log_3(x-2)+1. Identify its domain, range, vertical asymptote, intercepts, and direction of change.
  1. Find the domain and asymptote
    The logarithm’s input must be positive. Solving x−2>0x-2>0 gives the allowed inputs. The boundary value is the vertical asymptote for this logarithmic graph.
    x>2,x=2x>2,\quad x=2
  2. Build points from powers
    Choose exponents −1-1, 00, and 11. Their corresponding logarithm inputs are 13\frac13, 11, and 33. Since the input is x−2x-2, add 22 to each value to find xx. Then apply the negative sign and add 11 to find yy.
    (73,2),(3,1),(5,0)\left(\frac73,2\right),\quad (3,1),\quad (5,0)
  3. Identify the range and direction
    A logarithm with base 33 can produce any real output. Multiplying by −1-1 and adding 11 still allows every real output. The negative factor reflects the increasing basic graph, so this graph decreases from left to right.
    y∈Ry∈\mathbb{R}
  4. Find the intercepts
    The point table gives the xx-intercept at (5,0)(5,0). A yy-intercept would require x=0x=0, but 00 is outside the domain x>2x>2. Therefore, the graph has no yy-intercept.
    (5,0)(5,0)
Answer: The graph decreases, has domain x>2x>2, range all real numbers, and vertical asymptote x=2x=2. Its xx-intercept is (5,0)(5,0), and it has no yy-intercept.
Check: At x=3x=3, the logarithm input is 11, so y=−log⁡31+1=1y=-\log_3 1+1=1. This confirms the point (3,1)(3,1). The other points follow from 3−1=133^{-1}=\frac13 and 31=33^1=3.

Common mistakes and how to avoid them

Allowing zero or negative values inside a logarithm.
Correction: Require the logarithm’s input to be greater than zero. For example, x−2>0x-2>0 gives x>2x>2.
Giving the vertical asymptote the wrong sign after a horizontal shift.
Correction: Set the logarithm’s input equal to zero to locate the boundary. For an input of x−hx-h, the asymptote is x=hx=h.
Assuming every logarithmic graph increases.
Correction: Check the outside factor. For a base greater than 11, a negative factor reflects the basic increasing graph, making it decrease.
Claiming a yy-intercept without checking whether x=0x=0 is allowed.
Correction: Test x=0x=0 against the domain before finding the output. If 00 is outside the domain, the graph has no yy-intercept.

Lesson summary

Check your understanding

Question 1

For y=log⁡5(x+4)−2y=\log_5(x+4)-2, which statement gives the domain and vertical asymptote?
  1. Domain x>−4x>-4; asymptote x=−4x=-4
  2. Domain x>−4x>-4; asymptote x=4x=4
  3. Domain x≥−4x\geq-4; asymptote x=−4x=-4
  4. Domain all real numbers; asymptote x=0x=0
Show answer and explanation
Domain x>−4x>-4; asymptote x=−4x=-4
The logarithm’s input must satisfy x+4>0x+4>0, so x>−4x>-4. The boundary is the vertical asymptote x=−4x=-4.

Question 2

For y=−log⁡2xy=-\log_2 x, which description is correct?
  1. It increases and has range y>0y>0.
  2. It decreases and has range all real numbers.
  3. It increases and has vertical asymptote y=0y=0.
  4. It decreases and has domain all real numbers.
Show answer and explanation
It decreases and has range all real numbers.
The basic graph for base 22 increases, and the negative factor reflects it so it decreases. The domain is x>0x>0, the range is all real numbers, and the vertical asymptote is x=0x=0.

Key terms

Logarithm
The exponent that a base must have to produce a given positive number.
Domain
The set of input values for which a function is defined.
Range
The set of output values a function can produce.
Intercept
A point where a graph meets the xx-axis or the yy-axis.
Vertical asymptote
For the logarithmic graphs in this lesson, a vertical line that the graph approaches but does not meet.
Transformation
A shift, stretch, or reflection that changes a graph’s position or shape.

Continue through MHF4U

View the complete MHF4U Ontario Grade 12 Mathematics curriculum and lessons

About this lesson

Published by DoAssignment. This AI-assisted lesson follows Ontario Grade 12 Mathematics (MHF4U), expectation A2.1. It is a study resource, not an official curriculum publication.

Official curriculum reference

Report a correction or ask a question