Transformations of graphs and rational functions

IB Math AA · Functions

Transformations of graphs

Starting from $y=f(x)$:

Changes outside $f$ act on $y$ and behave as you expect. Changes inside $f$ act on $x$ and behave in the opposite way: $f(x-3)$ moves the graph to the right, and $f(2x)$ makes it narrower.

Order matters

To read $y=f(qx+r)$, factorise first: $f\left(q\left(x+\dfrac{r}{q}\right)\right)$. The horizontal stretch of factor $\dfrac{1}{q}$ and the translation of $-\dfrac{r}{q}$ are then unambiguous.

The rational function

$$f(x)=\frac{ax+b}{cx+d},\qquad c\neq 0$$

has a vertical asymptote where the denominator vanishes, $x=-\dfrac{d}{c}$, and a horizontal asymptote $y=\dfrac{a}{c}$. Its range is $y\neq\dfrac{a}{c}$. Writing it as $f(x)=\dfrac{a}{c}+\dfrac{k}{cx+d}$ shows it as a transformation of $y=\dfrac{1}{x}$.

(2, 0) (0, 6) x = 1 y = 3 O x y 2 Read from the figure: the vertical asymptote is at the root of the DENOMINATOR, the horizontal asymptote is at the ratio of the leading coefficients.
A rational graph tells you four numbers. The vertical dashed line at $x=1$ is the root of the denominator; the horizontal dashed line at $y=3$ is the ratio of the leading coefficients. The two intercepts give the other two numbers: the graph crosses the x-axis at $x=2$ (the root of the numerator) and the y-axis at $y=6$ (the value at $x=0$). Those four facts are enough to rebuild the function: $f(x)=\dfrac{3x-6}{x-1}$. A point often overlooked when looking at this figure: the horizontal line $y=3$ is not a wall — for a linear-over-linear rational function the graph does not cross it, but many other functions do cross their own horizontal asymptote. And the range of this function is $y\neq 3$, read straight from the place the curve never touches.

Worked example: double transformation, inside and outside

The graph of $y=f(x)$ has a maximum point at $(1,4)$. Find the coordinates of the corresponding maximum point on the graph of $y=2f(2x+6)-1$.

Solution

Separate two parts: inside and outside.

Inside. The maximum point occurs when the expression in the bracket equals $1$, because that is where $f$ reaches its maximum:

$$2x+6=1\;\Longrightarrow\;x=-\frac{5}{2}=-2.5$$

Outside. The value $f=4$ is multiplied by $2$ and then has $1$ subtracted:

$$y=2(4)-1=7$$

So the new maximum point is $(-2.5,\,7)$.

Why you should not describe in words and then compute. If you interpret $f(2x+6)$ as "shift left by $6$ and then compress horizontally by half", then $x=1$ becomes $\dfrac{1-6}{1}$ and then $\div 2$… and everyone will end up with a different number. Only by factoring to $f\left(2(x+3)\right)$ can it be read correctly: compress horizontally by factor $\dfrac12$ first, then shift left by $3$ — giving $\dfrac12-3=-2.5$, matching the direct calculation above.

Worked example: splitting off the whole-number part of a rational function

Given $f(x)=\dfrac{2x+1}{x-3}$. State the two asymptotes and the two intercepts with the axes, describe $f$ as a sequence of transformations of $y=\dfrac{1}{x}$, then state the range of $f$.

Solution

Split off the whole-number part. Divide the numerator by the denominator:

$$\frac{2x+1}{x-3}=\frac{2(x-3)+7}{x-3}=2+\frac{7}{x-3}$$

Read directly from the split form. Vertical asymptote $x=3$; horizontal asymptote $y=2$ (the value $\dfrac{7}{x-3}$ tends to $0$ from). The x-intercept is when $2x+1=0$, i.e. $\left(-\dfrac12,0\right)$; the y-intercept is at $f(0)=\dfrac{1}{-3}$, i.e. $\left(0,-\dfrac13\right)$.

Sequence of transformations from $y=\dfrac1x$: shift right $3$ units, stretch vertically by factor $7$, then shift up $2$ units.

Range. Since $\dfrac{7}{x-3}$ takes every value other than $0$, $f$ takes every value other than $2$: the range is $y\neq 2$.

Note that $-\dfrac13$ is the y-intercept, not the horizontal asymptote. These two numbers get mixed up very often because both can be obtained by "substituting $x=0$" in the head of a rushed student.

Common mistake

Reading $y=f(qx+r)$ in the order it is written. With $y=f(2x+6)$, the student describes "translate left $6$ units then compress horizontally by factor $\dfrac12$", and the point $x=1$ of $f$ is taken to $\dfrac{1-6}{2}=-2.5$ — by coincidence correct. But with $y=f(2x-6)$ that description gives $\dfrac{1+6}{2}=3.5$ while the correct answer is $2x-6=1$, i.e. $x=3.5$ — correct again. The real trap shows up the other way: the student compresses first and then shifts, i.e. $\dfrac12-6=-5.5$ instead of $-2.5$. The mechanism: horizontal scaling and horizontal translation do not commute, and the way $f(2x+6)$ is written does not tell us which one is done first. Only the factored form $f\left(2(x+3)\right)$ fixes the order: compress by factor $\dfrac12$ first, shift left $3$ afterwards. The most reliable check is to drop the verbal description entirely, set the expression in the bracket equal to the old value, and solve for $x$.

Key takeaway

With graph transformations, don't translate into words and then compute — set the expression in the bracket equal to the old value and solve for $x$; apply the outside part directly to $y$. With rational functions, splitting off the whole-number part $\dfrac{a}{c}+\dfrac{k}{cx+d}$ is the step that gives both asymptotes, the range, and the sequence of transformations for free.

← Quadratic functions, the discriminant and restricted ranges · All IB Math AA lessons · Practice IB Math AA questions (free, instant scoring) · Radians, arcs, sectors and non-right-angled triangles →