Graphing-Adding Ordinates
Every question with a fully worked solution.
- Graphing-Adding Ordinates - Video - Addition of ordinates for graphs of circular functions Watch
Theory
Adding ordinates builds the graph of \(y=f(x)+g(x)\) by adding the \(y\)-values of two graphs at each \(x\). This Year 11 Mathematics Extension 1 page shows how to evaluate a sum of functions, find its domain, locate its \(x\)-intercepts and asymptotes, use odd and even symmetry, and find the range and the number of solutions of \(f(x)+g(x)=k\).
The ordinate of a point is its \(y\)-value. The sum of two functions \(f\) and \(g\) is the function \[(f+g)(x)=f(x)+g(x).\] To graph \(y=f(x)+g(x)\) by adding ordinates, take each \(x\)-value in turn and add the two heights, keeping their signs. A point of \(f\) at height \(3\) and a point of \(g\) at height \(-1\) give a point of the sum at height \(3+(-1)=2\).
The sum exists only where both functions exist, so its domain is the set of \(x\)-values that are in both domains. For \(f(x)=\sqrt{x+1}\) and \(g(x)=\dfrac{1}{x-3}\), the sum needs \(x\ge-1\) and \(x\ne3\).
A few kinds of points control the sketch. Where \(g(x)=0\), the sum equals \(f(x)\), so the graph of the sum meets the graph of \(f\) (and where \(f(x)=0\) it meets the graph of \(g\)). Where \(f(x)\) and \(g(x)\) are the same distance from the \(x\)-axis on opposite sides, \(f(x)+g(x)=0\): that is an \(x\)-intercept of the sum. In an interval where one graph is further from the axis than the other, that graph decides the sign of the sum.
Where one function becomes very large, it dominates the sum. Where one function approaches \(0\), the sum approaches the other function, which gives an asymptote: as \(x\to\pm\infty\), \(\dfrac{3}{x}\to0\), so \(y=2x+\dfrac{3}{x}\) approaches the line \(y=2x\). Where one function is undefined, such as \(\dfrac{3}{x}\) at \(x=0\), the sum has a vertical asymptote.
Symmetry saves work. The sum of two odd functions is odd (point symmetry about the origin) and the sum of two even functions is even (symmetric about the \(y\)-axis). Sketch the graph for \(x\ge0\), then reflect.
To find the range, a maximum or a minimum, write the sum as one expression and use algebra: the vertex of a parabola, completing the square, or a substitution such as \(u=\sqrt{x}\). The number of solutions of \(f(x)+g(x)=k\) is the number of times the horizontal line \(y=k\) meets the graph of the sum.
The sum of two functions, and its value at \(x=a\):
The domain of the sum is where both functions are defined:
\(x\)-intercepts of the sum: the two ordinates are equal and opposite.
Odd plus odd is odd. If \(h(x)=f(x)+g(x)\), with \(f(-x)=-f(x)\) and \(g(-x)=-g(x)\):
| \(f\) | \(g\) | \(f+g\) | Graph of the sum |
|---|---|---|---|
| odd | odd | odd | point symmetry about the origin |
| even | even | even | symmetric about the \(y\)-axis |
How to sketch \(y=f(x)+g(x)\) by adding ordinates
- State the domain: the \(x\)-values where both \(f\) and \(g\) are defined.
- Check for symmetry: odd plus odd is odd, even plus even is even.
- Tabulate \(f(x)\), \(g(x)\) and their sum at a few easy \(x\)-values, such as \(0\), \(\pm1\), \(\pm2\) and the zeros of \(f\) and \(g\).
- Find the \(x\)-intercepts by solving \(f(x)+g(x)=0\): the points where the ordinates are equal and opposite.
- Compare distances from the \(x\)-axis in each interval: the graph further from the axis decides the sign of the sum.
- Describe the behaviour near any \(x\) where a function is undefined and as \(x\to\pm\infty\). If one part approaches \(0\), the sum approaches the other part (an asymptote).
- Join the points smoothly and label the intercepts, turning points and asymptotes.
Range, maximum or minimum, and number of solutions
- Write the sum as one expression.
- Find the turning point: the vertex formula, completing the square, a substitution \(u=\sqrt{x}\), or the \(\dfrac{(x-a)^2}{x}\ge0\) step.
- State the range from the turning point and the behaviour at the ends of the domain.
- Count the solutions of \(f(x)+g(x)=k\) by sliding the line \(y=k\) up and down the graph.
(i) Find \((f+g)(-2)\).
(ii) For another function \(k\), the graph of \(y=f(x)+k(x)\) passes through the point \((2,1)\). Find \(k(2)\).
(i) Add the ordinates at \(x=-2\):
| \(f(-2)\) | \(=\) | \(2(-2)^2=8\) |
| \(g(-2)\) | \(=\) | \(5-3(-2)=11\) |
| \((f+g)(-2)\) | \(=\) | \(f(-2)+g(-2)\) |
| \(\) | \(=\) | \(8+11\) |
| \(\) | \(=\) | \(\mathbf{19}\) |
(ii) Add the ordinates at \(x=2\). The graph passes through \((2,1)\), so \(f(2)+k(2)=1\).
| \(f(2)\) | \(=\) | \(2(2)^2=8\) |
| \(1\) | \(=\) | \(8+k(2)\) |
| \(\therefore k(2)\) | \(=\) | \(\mathbf{-7}\) |
Add the ordinates at some easy \(x\)-values:
| \(x\) | \(-2\) | \(0\) | \(2\) | \(4\) | \(6\) |
|---|---|---|---|---|---|
| \(f(x)\) | \(2\) | \(0\) | \(2\) | \(8\) | \(18\) |
| \(h(x)\) | \(4\) | \(0\) | \(-4\) | \(-8\) | \(-12\) |
| \(g(x)\) | \(6\) | \(0\) | \(-2\) | \(0\) | \(6\) |
At \(x=4\), \(f(4)=8\) and \(h(4)=-8\) are the same distance from the \(x\)-axis on opposite sides, so \(g(4)=0\).
| \(g(4)\) | \(=\) | \(f(4)+h(4)=8+(-8)=0\) |
| \(g(0)\) | \(=\) | \(f(0)+h(0)=0\) |
The sum is the parabola \(g(x)=\dfrac{1}{2}x^2-2x\). Axis of symmetry:
| \(x\) | \(=\) | \(-\dfrac{-2}{2\times\dfrac{1}{2}}=2\) |
| \(g(2)\) | \(=\) | \(\dfrac{1}{2}(2)^2-2(2)=-2\) |
\(\therefore\) \(x\)-intercepts \(x=0\) and \(x=4\); minimum value \(\mathbf{-2}\) at \((2,-2)\).
(i) Sketch the graph, showing its asymptotes.
(ii) Show that \(x+\dfrac{4}{x}\ge4\) for \(x\gt 0\), and hence find the range.
(i) The domain is \(x\ne0\). Both \(f\) and \(g\) are odd, so \(y=x+\dfrac{4}{x}\) is an odd function.
At \(x=2\), \(f(2)=g(2)=2\ \rightarrow\ y=4\). At \(x=-2\), \(y=-4\).
For \(0\lt x\lt 2\), as \(x\to0^{+}\), \(\dfrac{4}{x}\to+\infty\), so \(y\to+\infty\): \(x=0\) is an asymptote.
For \(x\gt 2\), as \(x\to+\infty\), \(\dfrac{4}{x}\to0\), so \(y\to x\): \(y=x\) is an asymptote.
For \(x\lt 0\), use the point symmetry about the origin.
(ii) For \(x\gt 0\):
| \(x+\dfrac{4}{x}-4\) | \(=\) | \(\dfrac{x^2-4x+4}{x}\) |
| \(\) | \(=\) | \(\dfrac{(x-2)^2}{x}\ge0\) |
\(\therefore x+\dfrac{4}{x}\ge4\), with equality at \(x=2\). The function is odd, so for \(x\lt 0\), \(y\le-4\) (equality at \(x=-2\)). As \(x\to0^{+}\) or \(x\to\infty\), \(y\to\infty\), so every value \(\ge4\) is reached.
\(\therefore\) range: \(\mathbf{y\le-4}\) or \(\mathbf{y\ge4}\).
(i) Show that \(y\) is an even function.
(ii) Find the \(x\)-intercepts and the coordinates of the turning points.
(iii) Hence find the values of \(k\) for which \(|x|-\dfrac{x^2}{4}=k\) has exactly four solutions.
(i)
| \(y(-x)\) | \(=\) | \(|-x|-\dfrac{(-x)^2}{4}\) |
| \(\) | \(=\) | \(|x|-\dfrac{x^2}{4}=y(x)\) |
\(\therefore\) \(y\) is even: its graph is symmetric about the \(y\)-axis.
(ii) For \(x\ge0\), \(|x|=x\):
| \(y\) | \(=\) | \(x-\dfrac{x^2}{4}\) |
| \(\) | \(=\) | \(-\dfrac{1}{4}\left(x^2-4x\right)\) |
| \(\) | \(=\) | \(-\dfrac{1}{4}(x-2)^2+1\) |
Intercepts: \(x\left(1-\dfrac{x}{4}\right)=0\), so \(x=0,\ 4\). Maximum \((2,1)\).
By symmetry: \(x\)-intercepts \(\mathbf{-4,\ 0,\ 4}\); maxima \(\mathbf{(\pm2,1)}\); local minimum (a sharp point) at \(\mathbf{(0,0)}\).
(iii) Count the intersections of the graph with the line \(y=k\):
\(k\gt 1\): 0; \(k=1\): 2; \(0\lt k\lt 1\): 4; \(k=0\): 3; \(k\lt 0\): 2.
\(\therefore\) exactly four solutions when \(\mathbf{0\lt k\lt 1}\).
Common pitfalls
Frequently asked questions
What does adding ordinates mean?
It means building the graph of \(y=f(x)+g(x)\) by adding the \(y\)-values (ordinates) of the two graphs at each \(x\)-value, keeping their signs.
How do you find the domain of f(x) + g(x)?
The sum is defined only where both functions are defined. Write down the condition for each function and keep the \(x\)-values that satisfy both.
Where does the graph of f(x) + g(x) cross the x-axis?
Where \(f(x)=-g(x)\): the two graphs are the same distance from the \(x\)-axis on opposite sides. Solve \(f(x)+g(x)=0\).
How do you find the asymptotes of a sum of functions?
Look for \(x\)-values where one function is undefined (vertical asymptotes), and for parts that approach \(0\) as \(x\to\pm\infty\). If \(g(x)\to0\), the sum approaches \(f(x)\), so \(y=f(x)\) is an asymptote.
Is the sum of two odd functions odd?
Yes. If \(h(x)=f(x)+g(x)\), then \(h(-x)=f(-x)+g(-x)=-f(x)-g(x)=-h(x)\). Likewise the sum of two even functions is even.
How do you find the number of solutions of f(x) + g(x) = k?
Sketch \(y=f(x)+g(x)\) and count how many times the horizontal line \(y=k\) meets it. The count changes at the turning points and at the ends of the graph.