Skip to main content

Logarithmic functions and their graphs (QCE Math Methods Unit 2)

Syllabus dot point

“Sketch and analyse logarithmic functions of the form y=log⁡b(x−h)+ky = \log_b(x - h) + k, state their domain, range and asymptote, relate them to exponential functions as inverses, and solve logarithmic equations”

7 min read

Quick answer

The function y=log⁡bxy=\log_b x is the inverse of y=bxy=b^x, so its graph is the reflection of the exponential graph in y=xy=x. For b>1b>1 it passes through (1,0)(1,0) and (b,1)(b,1), has the vertical asymptote x=0x=0, domain x>0x>0 and range all real numbers. For y=log⁡b(x−h)+ky=\log_b(x-h)+k the asymptote moves to x=hx=h and the domain becomes x>hx>h.

Jump to a section
  1. What this dot point is asking
  2. The basic graph
  3. Transformations
  4. Inverse relationship
  5. Solving logarithmic equations
  6. Practice questions

What this dot point is asking

In the 2025 QCAA Mathematical Methods syllabus, Unit 2 Topic 2 is titled Logarithms and logarithmic functions. The laws of logarithms are covered on the logarithms and log laws page. This page covers the functions and their graphs, and how to solve logarithmic equations. The official syllabus is at qcaa.qld.edu.au.

The basic graph

For b>1b>1, the graph of y=log⁡bxy=\log_b x:

  • passes through (1,0)(1,0), because b0=1b^0=1
  • passes through (b,1)(b,1), because b1=bb^1=b
  • has the vertical asymptote x=0x=0 and increases slowly as xx grows
  • has domain x>0x>0 and range R\mathbb{R}

It is the reflection of y=bxy=b^x in the line y=xy=x. The exponential has the horizontal asymptote y=0y=0 and the logarithm has the vertical asymptote x=0x=0.

Transformations

For y=log⁡b(x−h)+ky=\log_b(x-h)+k:

  • the vertical asymptote is x=hx=h and the domain is x>hx>h
  • the point (1,0)(1,0) moves to (h+1,k)(h+1,k)
  • the point (b,1)(b,1) moves to (h+b,k+1)(h+b,k+1)
Sketch y=log⁡2(x−3)+1y=\log_2(x-3)+1

The vertical asymptote is x=3x=3 and the domain is x>3x>3.

The key points come from shifting (1,0)(1,0) and (2,1)(2,1) by 33 right and 11 up: (4,1)(4,1) and (5,2)(5,2). Check: log⁡2(5−3)+1=log⁡22+1=2\log_2(5-3)+1=\log_2 2+1=2.

The xx-intercept needs log⁡2(x−3)=−1\log_2(x-3)=-1, so x−3=2−1=12x-3=2^{-1}=\tfrac12 and x=3.5x=3.5.

There is no yy-intercept, because x=0x=0 is outside the domain. The range is all real numbers.

Inverse relationship

To find the inverse of y=3x+1y=3^x+1, swap and solve: x=3y+1x=3^y+1, so 3y=x−13^y=x-1 and y=log⁡3(x−1)y=\log_3(x-1). The inverse has the domain x>1x>1, which is the range of the original function. The asymptote y=1y=1 of the exponential becomes the asymptote x=1x=1 of the logarithm.

Solving logarithmic equations

Use the laws of logarithms to combine terms, convert to exponential form, solve, and then check each answer against the domain.

Solve log⁡3x+log⁡3(x−2)=1\log_3 x+\log_3(x-2)=1

Combine with the product law: log⁡3(x(x−2))=1\log_3\big(x(x-2)\big)=1.

Convert: x(x−2)=31=3x(x-2)=3^1=3, so x2−2x−3=0x^2-2x-3=0 and (x−3)(x+1)=0(x-3)(x+1)=0.

The candidates are x=3x=3 and x=−1x=-1. The original equation needs x>2x>2, because both xx and x−2x-2 must be positive. Reject x=−1x=-1.

The solution is x=3x=3. Check: log⁡33+log⁡31=1+0=1\log_3 3+\log_3 1=1+0=1.

Common trap

Always check logarithmic solutions in the original equation. Combining logs can introduce an extraneous answer, such as x=−1x=-1 above. Also, do not write log⁡(x+y)\log(x+y) as log⁡x+log⁡y\log x+\log y, because the laws apply to products and quotients and not to sums.

Practice questions

1. State the domain, range and asymptote of y=log⁡2(x+4)y=\log_2(x+4).

Model answer: The domain is x>−4x>-4, the range is all real numbers and the vertical asymptote is x=−4x=-4.

2. Find the inverse of y=3x+1y=3^x+1 and state its domain.

Model answer: Swapping gives x=3y+1x=3^y+1, so y=log⁡3(x−1)y=\log_3(x-1). The domain is x>1x>1.

3. Solve log⁡3x+log⁡3(x−2)=1\log_3 x+\log_3(x-2)=1 and explain why one candidate is rejected.

Model answer: The equation reduces to x2−2x−3=0x^2-2x-3=0, so x=3x=3 or x=−1x=-1. The value x=−1x=-1 is rejected because the logarithm of a negative number is undefined, and only x=3x=3 satisfies the equation.

4. A graph of y=log⁡2(x−3)+1y=\log_2(x-3)+1 passes through (5,2)(5,2). Verify this.

Model answer: Substituting x=5x=5 gives log⁡22+1=1+1=2\log_2 2+1=1+1=2, so the point (5,2)(5,2) lies on the graph.

Practise this

Sources & how we know this

ExamExplained