Sums and differences of graphs
Sketch y = f(x) + g(x) and y = f(x) − g(x) by adding or subtracting ordinates, including graphs with asymptotes, and find the domain of the result.
Given sketches of $y = f(x)$ and $y = g(x)$, often with no equations, you can sketch $y = f(x) + g(x)$ by adding heights. It sounds slow, but a handful of special points do most of the work. You'll use this later to sketch $y = \sin x + \cos x$ and similar curves.
Add the heights
The ordinate of a point is its $y$-coordinate, its height. At each $x$, the ordinate of the sum is the ordinate of $f$ plus the ordinate of $g$. That is the whole idea. The trick is choosing $x$-values where the adding is easy.
Take $f(x) = x^2 - 16$ and $g(x) = 6x$, and let $s(x) = f(x) + g(x)$.
| $x$ | $-8$ | $-4$ | $-2$ | $0$ | $2$ | $4$ | $8$ |
|---|---|---|---|---|---|---|---|
| $f(x)$ | $48$ | $0$ | $-12$ | $-16$ | $-12$ | $0$ | $48$ |
| $g(x)$ | $-48$ | $-24$ | $-12$ | $0$ | $12$ | $24$ | $48$ |
| $s(x)$ | $0$ | $-24$ | $-24$ | $-16$ | $0$ | $24$ | $96$ |
Look at which columns were easy, and why:
The equation confirms it: $s(x) = x^2 + 6x - 16 = (x + 8)(x - 2)$. But the special points got us there without it, which is what the exam tests.
Differences
For $d(x) = f(x) - g(x)$, subtract the heights. The special points change roles:
| Where | Sum $f + g$ | Difference $f - g$ |
|---|---|---|
| the graphs intersect | double the height | zero |
| heights are opposites | zero | double the height of $f$ |
| $g(x) = 0$ | meets $f$ | meets $f$ |
| $f(x) = 0$ | meets $g$ | equals $-g(x)$ |
So for our pair, $d(x) = x^2 - 6x - 16 = (x - 8)(x + 2)$ is zero at $x = 8$ and $x = -2$, exactly where the parabola and the line cross. That also tells you the sign: $d \gt 0$ where $f$ is above $g$.
Graphs with asymptotes
Asymptotes are about what happens when a height becomes huge, so ask which graph "wins":
- If one graph has a vertical asymptote at $x = a$ and the other is defined and finite there, the sum has the same vertical asymptote.
- If $f(x) \to \infty$ and $g(x)$ stays bounded, then $f + g \to \infty$.
- If one graph tends to $0$, the sum ends up hugging the other graph.
- If $f \to \infty$ and $g \to -\infty$ together, you can't tell from the sketches alone.
Orange: the sum. Blue dashed: y = x. Pink dashed: y = k/x. Far from the origin the pink graph is almost zero, so the orange curve hugs the line.
With $k = 4$, the two dashed graphs meet at $x = 2$. Predict the height of the sum there, then check it is the turning point. Now make $k$ negative: why can't the sum ever be zero when $k \gt 0$, but can be when $k \lt 0$?
Sketch $y = x + \dfrac4x$ by adding $y = x$ and $y = \dfrac4x$.
The line $y = x$ in Example 1 is called an oblique asymptote. You only need to recognise it here. The points $(\pm 2, \pm 4)$ turn out to be the turning points, which you will be able to prove with calculus.
Domain of a sum or difference
To add $f(x)$ and $g(x)$ you need both to exist. So the domain of $f + g$ and of $f - g$ is the overlap of the two domains. For $y = \sqrt{x} + \dfrac{1}{x - 1}$, the square root needs $x \ge 0$ and the fraction needs $x \ne 1$, so the domain is $x \ge 0$, $x \ne 1$.
Your turn
$f(x) = x^2 - 9$ and $g(x) = 2x - 6$. Without expanding, where does $y = f(x) - g(x)$ cut the $x$-axis?
Show the working
The difference is zero where the graphs intersect: $x^2 - 9 = 2x - 6$, so $x^2 - 2x - 3 = 0$, giving $(x - 3)(x + 1) = 0$. So $x = 3$ or $x = -1$.
$f(2) = 4$ and $g(2) = 3$. Find the value of $f(2) + g(2)$, the height of the sum at $x = 2$.
Add the ordinates: $4 + 3 = 7$.
The zeroes of $y = f(x) - g(x)$ are where:
$f(x) - g(x) = 0$ means $f(x) = g(x)$, which is where the graphs cross.
Where $f(x) = 0$, the graph of $y = f(x) + g(x)$:
At that $x$, the sum is $0 + g(x) = g(x)$, so it has the same height as $g$.
$f(x) = x^2 - 16$ and $g(x) = 6x$. Find the zeroes of $y = f(x) + g(x)$. Enter both, separated by &.
$x^2 - 16 + 6x = x^2 + 6x - 16 = (x + 8)(x - 2)$, so $x = -8$ or $x = 2$. Check: at $x = 2$, $f = -12$ and $g = 12$ are opposites.
The graphs of $f$ and $g$ intersect at $(5, 8)$. Find the height of $y = f(x) + g(x)$ at $x = 5$.
Both heights are $8$, so the sum is $8 + 8 = 16$, double the common height.
As $x \to \infty$, the graph of $y = x + \dfrac{3}{x}$ approaches:
$\dfrac3x \to 0$ as $x \to \infty$, so the sum gets closer and closer to $x$.
The domain of $y = \sqrt{x + 2} + \dfrac{1}{x - 2}$ is $x \ge a$, $x \ne b$. Enter $b$.
The square root needs $x \ge -2$, and the fraction needs $x \ne 2$. The domain is the overlap: $x \ge -2$, $x \ne 2$. So $b = 2$.
$f(x) = x^2 - 9$ and $g(x) = 2x - 6$. The graph of $y = f(x) - g(x)$ cuts the $x$-axis at:
The difference is zero where the graphs meet: $x^2 - 9 = 2x - 6$, so $x^2 - 2x - 3 = (x - 3)(x + 1) = 0$.
Exam style: the two graphs $y = x$ and $y = \dfrac{4}{x}$ meet at $x = 2$. Find the height of $y = x + \dfrac4x$ at that point, which is its local minimum value for $x \gt 0$.
At $x = 2$ both graphs have height $2$, so the sum is $2 + 2 = 4$. (Calculus confirms this is the minimum: $y' = 1 - \dfrac{4}{x^2} = 0$ at $x = 2$.)
Exam style: $f(x) = \dfrac{1}{x}$ and $g(x) = x^2$. Which is true of $y = f(x) + g(x)$ for $x \gt 0$?
For $x \gt 0$ both heights are positive, so the sum is positive and never zero. As $x \to 0^+$, $\dfrac1x \to \infty$ while $x^2 \to 0$, so the sum $\to \infty$ (vertical asymptote $x = 0$). As $x \to \infty$, $x^2 \to \infty$, so the sum does too.
Coaching Centre