If −1 and 1 both square to 1, can squaring still be a function?
At your school maths club, you try a machine that squares whatever number you enter. You enter minus one and your friend enters one. You both get one. Can squaring still be a function if two different inputs give the same output?
Think back to the number machine. The table records what goes in and what comes out. Read across each row: minus one pairs with one, zero pairs with zero, and one pairs with one. Write the input first and the output second.
Follow the arrows from the inputs. Minus one goes to one, zero goes to zero, and one goes to one. Two arrows reach one, while none reach two or three. Each input has exactly one arrow leaving it, so this mapping is a function.
Suppose two and three are the only inputs. Two maps to seven, and three also maps to seven. Those are all the arrows. Is this mapping a function? Pick the answer with the reason that fits.
In the squaring diagram, minus one, zero and one are the allowed inputs. Together they form the domain. Zero, one, two and three make up the stated target set, called the co-domain. The range contains only the values the arrows actually reach.
Read the first notation as ‘f maps x to x squared’. The next one, f of x equals x squared, gives the output for input x. If you call the output y, you can write y equals x squared. All three describe the same rule.
Square minus one by multiplying minus one by itself. You get one. Zero squared is zero, and one squared is one. The outputs are one, zero and one. In the range, list zero and one, each just once. Leave out two and three because neither is reached.
Now the inputs are minus two, zero and two, and the rule is still to square the input. The co-domain is zero, one, two and four. Work out where each input lands, then pick the set of outputs you actually get.
It’s easy to look at where the arrows end and think a shared output breaks the rule. On the left, each input has one arrow, so it works. On the right, one input has two arrows to different outputs. That mapping fails the function test.
Plot each table pair with its input on the horizontal axis and its output on the vertical axis. Leave the three points separate because there are only three inputs. If an exam asks you to write down the range, read the y-values. The lowest is zero; both other points have y-value one.