Functions · AA SL & HL
Rational and logarithmic functions
Sketch functions with asymptotes and excluded inputs, distinguish holes from poles, and use domains to reject invalid solutions.
Course focus: AA SL & HL: shared methods are taught first. Sections labelled HL extension go beyond SL requirements.
Before you start: Factorisation, division, logarithms and graph transformations.
Build it from the beginning
A formula is only usable where its operations make sense. A denominator cannot be zero and a real logarithm needs a positive argument. Work out those conditions before simplifying, because algebra can hide excluded inputs.
A first walkthrough
Find the domain of \(f(x)=1/(x-2)\).
- The denominator is \(x-2\).
- It equals zero at \(x=2\), where division is undefined.
- All other real inputs are permitted. The graph has a vertical asymptote at 2.
The foundations behind the method
Understand what the symbols mean
A denominator equal to zero excludes an input; a logarithm requires a positive argument. Simplifying an expression does not restore inputs excluded by its original definition. An asymptote describes limiting behaviour, while a removable hole describes a missing point where nearby values approach a finite value.
How the ideas connect
Factor before classifying a rational graph. A cancelled denominator factor can produce a hole; an uncancelled factor may produce a vertical asymptote. End behaviour depends on the relative degrees, with polynomial division exposing an oblique or higher-degree asymptote when needed. Check one-sided behaviour near excluded inputs.
Start with the idea
Build your understanding
The domain is the starting point for these graphs. Rational functions can be undefined because of division; logarithmic functions because of nonpositive arguments. Simplification can change the appearance of an expression without changing its original exclusions.
Hole versus pole
A cancelled factor can produce a missing point with a finite limiting height. A surviving denominator zero can produce an unbounded branch.
Range by solving backwards
To test possible output values, solve the defining equation for the input and determine which outputs fail or force an excluded input.
Compare the approaches
Choose by the information in the question, rather than the formula you recognise first.
Factor and cancel
When it helpsUse to identify removable holes.
Check before using itKeep the original domain written separately.
Solve for x in terms of y
When it helpsUse to derive range or an inverse.
Check before using itCheck both impossible denominators and cancelled exclusions.
Your method plan
- Find the original exclusions before simplifying.
- Identify holes and genuine asymptotes separately.
- Use intercepts and a range calculation to complete the graph.
Learn the methods
Learn step by step
1. Domains first
A rational function excludes zeros of its original denominator. A logarithmic function requires a positive argument. Mark these restrictions before simplifying. If a common factor cancels, the simplified formula agrees only on the original domain; the missing point is a hole, not a restored value.
Log domain
Why this formula works
A real logarithm reverses a positive-base exponential. That exponential produces only positive values, so its inverse can accept only positive arguments. Zero and negative arguments are excluded.
\(\ln(g(x))\) requires \(g(x)>0\).
Quick example
For \(\ln (2x-6)\), require \(2x-6>0\), so \(x>3\). The boundary is a strict inequality.
Worked example: A removable hole
Describe \(f(x)=\frac{x^{2}-1}{x-1}\).
- Factor and cancel to obtain \(x+1\), but retain \(x\ne 1\).
- The graph is the line \(y=x+1\) with a hole at \((1,2)\).
- There is no vertical asymptote at \(x=1\): the limit there is 2, while the function is undefined. Its range excludes 2.
2. Vertical and horizontal behaviour
An uncancelled denominator root usually produces a vertical asymptote. Find horizontal or oblique behaviour by polynomial division or comparing degrees. For equal degrees the ratio of leading coefficients is the horizontal limit. A horizontal asymptote may be crossed; a vertical asymptote cannot be part of the domain.
A reciprocal approaches its asymptotes
- y = 1/x
Fractional linear form
Why this formula works
Subtract the leading constant \(\frac{a}{c}\) from the fraction and combine over the denominator. The remainder becomes \((bc-ad)/\)[\(c(cx+d)\)], exposing the asymptotes and the exceptional cancellation case \(bc-ad=0\).
\((ax+b)/(cx+d)=a/c+(bc-ad)/[c(cx+d)]\) \(c\ne 0\) \(x\ne -\frac{d}{c}\).
Quick example
\((3x+1)/(x-2)=3+7/(x-2)\). The remainder 7 prevents cancellation, so \(x=2\) is a pole and the horizontal limit is 3.
Equal-degree horizontal limit
Why this formula works
Divide numerator and denominator by their highest common degree \(x^{n}\). Lower-degree terms then tend to zero as \(|x|\) increases, leaving the ratio of the leading coefficients.
The limit as x tends to ±∞ is the ratio of leading coefficients.
Quick example
\((5x^2+1)/(2x^2-3)=(5+1/x^2)/(2-3/x^2)\to5/2\).
3. Intercepts and branches
For rational x-intercepts, solve \(\text{numerator}=0\) at allowed inputs. For a vertical intercept evaluate \(x=0\) only if allowed. Determine signs on intervals separated by roots and poles, and inspect one-sided behaviour near each pole. These features are more reliable than a few plotted points.
Worked example: Sketch a rational function
Find the main features of \(f(x)=\frac{2x+1}{x-3}\).
- Divide: \(f(x)=2+\frac{7}{x-3}\). The asymptotes are \(x=3\) and \(y=2\).
- The intercepts are \((-\frac12,0)\) and \((0,-\frac{1}{3})\).
- For \(x>3\) the function is above \(y=2\); for \(x<3\) it is below. The range excludes \(y=2\).
4. Log graphs
The basic log graph passes through \((1,0)\), has vertical asymptote \(x=0\) and domain \(x>0\). A shift changes the boundary and intercept. A negative outside multiplier reflects vertically; a base below 1 reverses monotonicity. Logarithm laws can simplify equations but must preserve original argument restrictions.
5. Range and inverse
Solving \(y=f(x)\) for x can expose an excluded y-value. For a fractional linear function with nonzero determinant, the horizontal asymptote value is excluded from the range. For more complicated rational functions, this simple rule may fail, so solve or analyse carefully.
6. Derive a rational range and preserve cancelled holes
To find a range, introduce an output variable y and solve \(y=f(x)\) for x. A denominator in that rearrangement may exclude an output, but also check every original domain restriction. If factors cancel, a missing input can remove an output from the range only when no other allowed input attains it. An asymptote describes limiting behaviour and does not automatically decide the range of a more complicated rational function.
Derive a rational range and preserve cancelled holes
Why this formula works
An output belongs to the range exactly when at least one allowed input produces it. Rearranging the equation tests existence of such an input and exposes impossible output values without relying solely on the sketch.
For \(y=(ax+b)/(cx+d)\) \(x=(b-dy)/(cy-a)\) when \(cy-a\ne 0\); check the original domain and any degenerate coefficients.
Quick example
For \(\frac{2x+3}{x-1}\), \(y=2\) would imply \(2x-2=2x+3\), impossible. Every other real y gives an allowed input.
Worked example: A rational function with a hole
Find the domain and range of \(f(x)=\frac{x^{2}-9}{x-3}\).
- The original denominator excludes \(x=3\). For all remaining inputs, \(f(x)=x+3\).
- The simplified line would attain \(y=6\) only at \(x=3\), which is excluded.
- Thus the domain excludes 3 and the range excludes 6. The graph has a hole at \((3,6)\), not a vertical asymptote.
Quick formula reference
For revision once you understand the methods above. Check the conditions before using a formula.
Fractional linear form
\((ax+b)/(cx+d)=a/c+(bc-ad)/[c(cx+d)]\), \(c\ne 0\), \(x\ne -\frac{d}{c}\).
Return to the explanation →Equal-degree horizontal limit
The limit as x tends to ±∞ is the ratio of leading coefficients.
Return to the explanation →Derive a rational range and preserve cancelled holes
For \(y=(ax+b)/(cx+d)\), \(x=(b-dy)/(cy-a)\) when \(cy-a\ne 0\); check the original domain and any degenerate coefficients.
Return to the explanation →Learn to diagnose an error
Spot the mistake
The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.
\((x^2-1)/(x-1)=x+1\) for every real x.
Explain and repair the mistake
The equality holds only for \(x\ne1\). The rational graph has a hole at (1,2). It does not have a vertical asymptote there because the nearby values remain finite.
Connect and apply
Put the ideas together
A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.
A cancelled factor removes one output too
Analyse \(f(x)=\frac{x^2-1}{x-1}\).
- The original expression excludes \(x=1\). For every other input it simplifies to \(f(x)=x+1\).
- The graph is the line \(y=x+1\) with the point \((1,2)\) missing. There is no vertical asymptote at that input.
- The output 2 would require input 1, so the range excludes 2. The inverse rule is \(x-1\), but its domain must exclude 2.
- The limit at input 1 is still 2. A limit describes nearby values and does not fill the missing point.
Can you define a new function with value 2 at input 1?
Check your reasoning
Yes, as an explicit extension. That changes the function’s domain and graph; it is not justified merely by cancelling the original fraction.
Common mistakes and how to avoid them
- A cancelled denominator root is still excluded.
- A horizontal asymptote is not always an excluded output.
- Log arguments must be strictly positive, not merely nonnegative.
Practise independently
Build confidence, then apply it
Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.
- 1
Build confidence
Find the domain of \(g(x)=\ln(x+4)\).
Need a starting point?
The argument must be strictly positive.
Show the worked solution
- \(x+4>0\), so \(x>-4\).
- The endpoint -4 is excluded because \(\ln0\) is undefined.
- 2
Apply and explain
Simplify \((x^2-9)/(x-3)\) and state its domain.
Need a starting point?
Factor the numerator but keep the old exclusion.
Show the worked solution
- \(x^2-9=(x-3)(x+3)\).
- The expression equals \(x+3\) only for \(x\ne3\); the original graph has a hole there.
- 3
Check your understanding
Find the domain of \(\ln(3-x)\).
Show the worked solution
Require \(3-x>0\), giving \(x<3\). The endpoint is excluded, since the logarithm of zero is undefined.
- 4
Use the method
Find the domain and vertical asymptote of \(\ln (x-4)\).
Show the worked solution
Domain \(x>4\); vertical asymptote \(x=4\). The vertical line marks the domain boundary.
- 5
Combine the skills
Derive a rational range and preserve cancelled holes
Find the range of \(\frac{1}{x^{2}+1}\) on all real x.
Show the worked solution
The denominator is at least 1 and tends to infinity. The maximum 1 is attained at zero, while zero is only approached. The range is (0,1].
Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.
Using these methods in exam questions
AA Paper 1
No calculatorPractise the algebra and exact values by hand. Keep fractions, surds and multiples of π exact where required. Show the steps that justify the result.
AA Paper 2
GDC requiredUse graphing, numerical solving or statistical tools when appropriate. Write the setup before giving the output, and keep extra precision until the final answer.
For this topic: Label axes, intercepts and relevant asymptotes. For a numerical root, state the equation and search interval; a graph window that misses an intersection is not evidence that no solution exists.
Paper 3: build a connected argument
Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.
- Identify what the first part establishes and record the conditions under which it holds.
- When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
- Check the conclusion against an earlier numerical case and explain its meaning or limitation.
For the first-assessment-2021 courses. IB assessment reference ↗
Find a specific method or formula
Now practise the method
If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.
Practise this subtopic →Want a broader practice session? Explore IB Maths AA SL practice questions →Explore IB Maths AA HL practice questions →Try free IB Maths exam-style questions and worked solutions →
Core-topic coverage checked against Haese Core Topics HL (2019), chapters 15D (rational functions). The explanations, diagrams and exercises here are original Arc material.
Original Arc Practice teaching notes for Maths AA. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.