- Translations of graphs
- Inverse functions
- Reflection of a shape · coming soon
- Stretches of graphs
- Combined transformations
- Graphs of sin, cos and tan · coming soon
The square root of a negative number
You know that has no real value. No real number multiplied by itself gives a negative answer.
So what does the graph of look like? Many students say it has no graph at all, because the square root of a negative is not allowed.
Try one input before you decide. Put . Then , and . So the point is on the graph. The input was negative, but the number under the root was positive.
In fact, every negative input works, and every positive input fails. The graph of is the graph of flipped to the other side of the -axis, like a reflection in a mirror. A single minus sign has flipped a whole graph. This lecture shows exactly why, and what happens when the minus sign goes in a different place.
Two places for a minus sign
The last lecture showed that there are only two places to change a function. You can change the output, after the function has worked. Or you can change the input, before the function works.
A minus sign can go in either place. In , the function works first, and then its output is made negative. In , the input is made negative first, and then the function works. These two give two different reflections.
Changing the sign of the output
Take . Compare with .
| 5 | 0 | −3 | −4 | −3 | 0 | 5 | |
| −5 | 0 | 3 | 4 | 3 | 0 | −5 |
The inputs are the same. Each output has changed sign. A height of 5 above the -axis has become a depth of 5 below it. A depth of 4 below has become a height of 4 above. So each point moves to .
Every point stays at the same distance from the -axis, on the other side of it, exactly as in a mirror. The graph of is the reflection of the graph of in the -axis. The -axis is the mirror line.
The two roots did not move, because the negative of 0 is 0. And the lowest point of has become the highest point of : a reflection in the -axis turns the graph upside down.
Changing the sign of the input
Now put the minus sign inside the bracket. Compare with .
This time, the function does not work on the input you give it. It works on the negative of that input. At , the new function works on , so it gives . At , it gives .
| 0 | −4 | −3 | 0 | 12 | |
| 12 | 0 | −3 | −4 | 0 |
Look for outputs you recognise. The old at is now at . The old 0 at is now at . Every output appears again, at the input with the opposite sign.
This is the hard part of the lecture. Spend time here. Let us write the reason once, for any function .
Take any point on the graph of . This means that . Where does give the same output ? It needs . That happens when , so when .
Every point keeps its height and moves to the other side of the -axis, at the same distance. So the graph of is the reflection of the graph of in the -axis.
The last lecture promised that its main sentence would come back here. Here it is. A change to the input moves the graph the opposite way, because the input must be changed back before the function sees the number it needs. For , the change was "subtract 3", so the input had to be 3 bigger. For , the change is "change the sign", and the only way to undo that is to change the sign again. So the point at moves to .
That is it. That is the whole idea. A minus sign on the output flips every height. A minus sign on the input flips every position left to right.
Think of the output as a height and the input as a position along a road. The minus sign outside says: "stay at your place on the road, but go as far below the road as you were above it". The minus sign inside says: "keep your height, but stand at the same distance on the other side of the start".
is the reflection of in the -axis. Every point moves to .
is the reflection of in the -axis. Every point moves to .
is both reflections together. Every point moves to , which is a half-turn (a rotation of 180°) about the origin O.
Now try both minus signs on five different graphs.
Choose a graph. Then press the two buttons to put a minus sign outside the function, inside it, or both. Watch the marked point, and read the new equation.
The graph of , where , is the reflection of in the -axis. Its equation is .
The same three changes for all five graphs in the graph builder:
- y = x² + 2x − 3. Outside: y = −x² − 2x + 3. Inside: y = x² − 2x − 3. Both: y = −x² + 2x + 3.
- y = √x. Outside: y = −√x. Inside: y = √(−x), with domain x ≤ 0. Both: y = −√(−x).
- y = x³ − 4x. Outside: y = −x³ + 4x. Inside: the same, y = −x³ + 4x. Both: the original graph again.
- y = x² − 4. Outside: y = −x² + 4. Inside: the original graph again. Both: y = −x² + 4.
- y = 1/(x − 2). Outside: y = −1/(x − 2). Inside: y = −1/(x + 2), with the asymptote moved to x = −2. Both: y = 1/(x + 2).
What should you have seen? With the minus outside, every point moved straight up or down, across the -axis. With the minus inside, every point moved straight across the -axis. Two graphs behaved strangely. For , the minus inside changed nothing. For , the two minus signs gave the same graph. The rest of this lecture explains both.
Both minus signs: a half-turn
Put a minus sign in both places, . The input changes sign, so becomes . The output changes sign, so becomes . The point moves to .
Now picture the two points. The origin O is exactly halfway between and . So you can reach one from the other by turning the plane through 180° about O. A reflection in one axis followed by a reflection in the other is the same as a half-turn.
The order of these two reflections does not matter: either order gives . A later lecture shows that this is not true for every pair of transformations.
Reflect the graph of in the -axis. Then, starting again, reflect it in the -axis. Which reflection gives which graph?
Show the answer
They give the same graph. In the -axis: . In the -axis: . The equations are identical, so the graphs are identical. This does not break the rules. It is a fact about this curve. Because , changing the sign of the input has exactly the same effect as changing the sign of the output. Functions with this property have a name, and the next section gives it.
Graphs that match their own reflection
Some functions are unchanged by one of these moves. They have names.
A function is even if for every in its domain. Reflecting its graph in the -axis gives back the same graph. So the graph is symmetric about the -axis. The classic example is , because .
A function is odd if for every in its domain. Here the reflection in the -axis gives the same graph as the reflection in the -axis. Doing both gives back the original, so the graph is unchanged by a half-turn about O. The classic example is , because .
The names come from powers of . An even power keeps its sign when changes sign: . An odd power changes sign: . So a polynomial with only even powers is an even function, and a polynomial with only odd powers is an odd function. A constant counts as an even power, because .
Most functions are neither: they simply fail both tests. To decide, always work out and compare it with and with . Sort the functions below with that test.
Work out f(−x) for each function on paper. Then put each card in the right box.
Each function is tested by working out .
| Function | f(−x) | Type |
|---|---|---|
| x⁴ − 3x² | x⁴ − 3x², the same as f(x) | even |
| x² + 5 | x² + 5, the same as f(x) | even |
| 3 | 3, the same as f(x) | even |
| x³ + x | −x³ − x, which is −f(x) | odd |
| 1/x | −1/x, which is −f(x) | odd |
| 5x | −5x, which is −f(x) | odd |
| x³ + 1 | −x³ + 1, neither f(x) nor −f(x) | neither |
| x² + x | x² − x, neither f(x) nor −f(x) | neither |
| (x − 1)² | (x + 1)², neither f(x) nor −f(x) | neither |
A third mirror you have already met
There is one more mirror line in this course. In the lecture on inverse functions, the graph of was the reflection of the graph of in the line . That reflection swaps the input and the output: moves to .
So each of the three mirrors is one simple change to a point: change the sign of , change the sign of , or swap them.
Worked examples
. Find the equation of , its lowest point and its roots.
Replace every with , in a bracket:
The term does not change, because a negative number squared is positive. The term changes sign. The constant does not change, because it has no in it.
Completing the square, , so the lowest point of is . A reflection in the -axis moves it to . The roots of are and , so the new roots are and .
Check by factorising: , with roots and . ✓ Check the lowest point: . ✓
The graph of passes through . Find the matching point on (a) , (b) , (c) .
(a) The minus is outside, so the output changes sign. moves to .
(b) The minus is inside, so the position changes sign. moves to .
(c) Both change sign. moves to , a half-turn about O.
Check (b) by substituting. At , the new function gives . ✓ The input is changed back to before sees it, which is exactly the reason for the reflection.
Reflect the graph of in the -axis. Find the new equation and its asymptote.
Replace with :
The old graph approaches the vertical line , where the denominator is zero. A reflection in the -axis moves every position to , so this line moves to . In the new equation, the denominator is zero at . ✓
Check one point. is on the old graph, because . It should move to . In the new equation: . ✓
Show that is odd. Then decide whether is odd, even or neither.
For : . And . These are equal for every , so is odd.
See what this means for the roots. , so the roots are , and . They come in pairs , with 0 in the middle. An odd function defined at 0 must have , so . Its graph always passes through O.
For : . Compare with and with . It matches neither, so is neither odd nor even.
Check: and , which are neither equal nor opposites. ✓ The odd power does not make odd. The graph of has been moved up by 1, so its centre of half-turn symmetry is now , not O.
Three classic mistakes
A minus sign outside changes the heights, so points move up or down, and the mirror line is the -axis. A minus sign inside changes the positions, so points move left or right, and the mirror line is the -axis. If you are unsure, take one point, such as , and ask which of its coordinates changes sign.
means the negative of the whole output. For , it is , with every term changed. Writing changes only the first term, and it is a different graph. Always put in a bracket first.
In , every is replaced by , with its bracket. , because the minus is squared too. But means , which is negative. Without the bracket, for would wrongly become , the reflection in the -axis, not the -axis.
Work each one on paper first. Open a hint only when you are stuck.
-
. Write the equations of and . Give the turning point of each graph, and say whether it is highest or lowest.
Hint 1
Find the turning point of first, by completing the square. Then move it.
Hint 2
. For , change the sign of every term. For , replace with .
Full answer
, so its lowest point is . . The reflection in the -axis moves to , and turns the graph upside down, so is a highest point. . The reflection in the -axis moves to , still a lowest point. Check: , lowest point . ✓
-
The graph of has a highest point at and crosses the -axis at and . Describe the graphs of and in the same way.
Hint 1
For each reflection, decide which coordinate changes sign. Then ask whether a highest point stays a highest point.
Hint 2
A reflection in the -axis turns the graph upside down. A reflection in the -axis does not.
Full answer
: every height changes sign. The highest point becomes a lowest point at . The crossing points are on the mirror line, so they stay at and . : every position changes sign. The highest point moves to , and it is still a highest point. The crossings move to and . Check one: at is . ✓
-
Decide whether each function is even, odd or neither. Show the working. (a) (b) (c) (d)
Hint 1
Work out , and compare it with and with .
Hint 2
An even power of is positive. An odd power of is negative.
Full answer
(a) , so it is even. (b) , so it is odd. (c) . This is not , and not , so it is neither. Check with : and , which are neither equal nor opposites. ✓ (d) , so it is odd.
-
. (a) Show that for every number . What does this tell you about the graph? (b) Is an even function? (c) Write as a translation of an even function.
Hint 1
Complete the square first. Then substitute and .
Hint 2
. For (b), test one pair of inputs, and .
Full answer
(a) . So and . They are equal. Points at the same distance to the right and left of have the same height, so the graph is symmetric about the vertical line . (b) No. but , so . Its mirror line is , not the -axis. (c) is even, because . And , so the graph of is the graph of moved 2 to the right. The mirror line moved with it, from to . Check: and . ✓
A reflection is a question about symmetry, and symmetry saves work. If you know a function is even, you only need to draw the right half of its graph. The left half is its mirror image. If it is odd, the left half is the right half turned through 180°. When you meet the graphs of sine and cosine, you will find that cosine is even and sine is odd, and much of their behaviour follows from that one fact.
Asking "what happens if I change the sign?" is one of the most useful questions in mathematics and physics. A pattern that survives a mirror or a half-turn tells you something about the rule that made it.
- The graph of is the reflection of in the -axis, because every output changes sign: moves to .
- The graph of is the reflection of in the -axis, because the input must change sign again to give the same output: moves to .
- The graph of is a half-turn about the origin, which moves to .
- A function is even if , so its graph is symmetric about the -axis, and odd if , so its graph is unchanged by a half-turn about O.
- To test a function, work out with every in a bracket, and compare it with and ; most functions are neither even nor odd.