1D

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:

WhereSum $f + g$Difference $f - g$
the graphs intersectdouble the heightzero
heights are oppositeszerodouble 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.
y = x + k/x as a sum of two graphs

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.

Try this

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$?

Example 1●●●

Sketch $y = x + \dfrac4x$ by adding $y = x$ and $y = \dfrac4x$.

Vertical asymptote $x = 0$: $y \to +\infty$ as $x \to 0^+$, $y \to -\infty$ as $x \to 0^-$.
4/x has a vertical asymptote at x = 0 and the line is finite there, so the sum keeps the asymptote. Near 0⁺, 4/x is huge and positive, so the sum is too.
The curve approaches the line $y = x$ as $x \to \pm\infty$.
Far from the origin 4/x is tiny, so the sum is almost the same as the line.
Points $(2, 4)$ and $(-2, -4)$.
The graphs meet where x = 4/x, at x = ±2. There the sum is double the height.
No $x$-intercepts. The right branch is positive, the left branch is negative.
For positive x, both graphs are positive, so the sum is never zero. For negative x, both are negative.

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$.

Flashcards
Zeroes of $f + g$
Where the heights of $f$ and $g$ are opposites.
Zeroes of $f - g$
Where the graphs of $f$ and $g$ intersect.
Where $f(x) = 0$
$f + g$ meets the graph of $g$.
Domain of $f pm g$
The overlap of the two domains.
Practice
  1. $f(2) = 4$ and $g(2) = 3$. Find the value of $f(2) + g(2)$, the height of the sum at $x = 2$.

  2. The zeroes of $y = f(x) - g(x)$ are where:

  3. Where $f(x) = 0$, the graph of $y = f(x) + g(x)$:

  4. $f(x) = x^2 - 16$ and $g(x) = 6x$. Find the zeroes of $y = f(x) + g(x)$. Enter both, separated by &.

  5. The graphs of $f$ and $g$ intersect at $(5, 8)$. Find the height of $y = f(x) + g(x)$ at $x = 5$.

  6. As $x \to \infty$, the graph of $y = x + \dfrac{3}{x}$ approaches:

  7. The domain of $y = \sqrt{x + 2} + \dfrac{1}{x - 2}$ is $x \ge a$, $x \ne b$. Enter $b$.

  8. $f(x) = x^2 - 9$ and $g(x) = 2x - 6$. The graph of $y = f(x) - g(x)$ cuts the $x$-axis at:

  9. 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$.

  10. 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$?

Formula sheet