# Video: Sketching Curves from their Roots

Solve 𝑥² − 4𝑥 + 4 = 0 by factoring, and hence determine which of the following figures would be a sketch of 𝑦 = 𝑥² − 4𝑥 + 4.

07:08

### Video Transcript

Solve 𝑥 squared minus four 𝑥 plus four equals zero by factoring, and hence determine which of the following figures would be a sketch of 𝑦 equals 𝑥 squared minus four 𝑥 plus four.

We have five figures, one of which is a sketch of 𝑦 equals 𝑥 squared minus four 𝑥 plus four. The question is which one. We’re told that solving 𝑥 squared minus four 𝑥 plus four equals zero will help us. We write down the equation. Now how do we solve it? The answer is by factoring.

We want to write the left-hand side of our equation as a product of two factors, 𝑥 plus something times 𝑥 plus something. Let’s call those somethings that we need to find 𝑎 and 𝑏. To find the values of 𝑎 and 𝑏, we use the fact that 𝑎 times 𝑏 must be equal to the constant term of the trinomial, four.

This is a fact that is well worth remembering. I’ll explain why it’s true at the end of the video. If we assume that 𝑎 and 𝑏 are going to be integers, then we can just list all the possible values of 𝑎 and 𝑏 for which 𝑎 times 𝑏 is four. For example, 𝑎 could be one, in which case 𝑏 is four. Or 𝑎 and 𝑏 could both be two. It turns out that we don’t need to include the case that 𝑎 is four and 𝑏 is one.

This is just the first possibility with the values of 𝑎 and 𝑏 swapped. What we do need to consider is the possibility that 𝑎 and 𝑏 could be negative. This gives the other two possibilities, that 𝑎 is equal to negative one and 𝑏 is equal to negative four and that 𝑎 and 𝑏 are both equal to negative two. We’ve listed all the factor pairs of four including negative possibilities.

What do we do now? The other fact that we’ll prove at the end of the video is that 𝑎 plus 𝑏 is equal to the coefficient of the 𝑥 term, in our case negative four. For each column in our table, we calculate 𝑎 plus 𝑏. We thought that 𝑎 could be one and 𝑏 could be four. But this gives a value of five for 𝑎 plus 𝑏 and not negative four as we want. And so these aren’t the values that we’re looking for.

Similarly, when 𝑎 and 𝑏 are both two, then 𝑎 plus 𝑏 is four, not what we’re looking for. The next possibility gives negative five. It turns out that it’s the last option when both 𝑎 and 𝑏 are negative two. That gives us what we want. 𝑎 plus 𝑏 is then negative four. We found that 𝑎 is negative two and 𝑏 is negative two. And we can get rid of our working.

We need to substitute the values of 𝑎 and 𝑏 that we found. We get 𝑥 plus negative two times 𝑥 plus negative two equals zero. We can make things easier for ourselves by subtracting two instead of adding negative two. Okay, so our left- hand side is factored as required. You can check that distributing really does give 𝑥 squared minus four 𝑥 plus four.

These two expressions really are equal. Of course you might have just recognized that this is the perfect square 𝑥 minus two squared. We have factored as required. How does this help us solve our equation? We use the zero product property, which says that if the product of two factors is equal to zero, then one of those factors is equal to zero.

As both of our factors are 𝑥 minus two, we have that 𝑥 minus two must be equal to zero. And adding two to both sides, we see that our only solution is 𝑥 equals two. We have solved this equation. But how does this help us with our figures? We’re looking for the sketch of 𝑦 equals 𝑥 squared minus four 𝑥 plus four. And we’ve just solved 𝑥 squared minus four 𝑥 plus four equals zero.

Comparing these two equations, we can see that we’ve basically solved 𝑦 equals zero. Our answer was 𝑥 equals two and so 𝑥 equals two is when 𝑦 equals zero. On a graph or sketch, 𝑦 equals zero is the equation of the 𝑥-axis. And so we’re expecting an 𝑥-intercept at 𝑥 equals two. We see that option A has this 𝑥-intercept marked. When 𝑥 is two, 𝑦 is equal to zero.

However, we also see an 𝑥-intercept at 𝑥 equals negative two. However, we found that our equation only had one solution, 𝑥 equals two. 𝑥 equals negative two was not a solution of our equation. And so 𝑥 equals negative two should not be an 𝑥-intercept of our graph. For that reason, we can eliminate option A as a possibility. Option B however only has an 𝑥-intercept at 𝑥 equals two, as required.

This remains a possibility, as does option C. Option D has an 𝑥 intercept at 𝑥 equals negative two, not what we want. And option E, much like option A, has two 𝑥-intercepts and so isn’t the right sketch. Solving the equation allowed us to narrow down the options to a choice between options B and C. But we’re still going to have to decide.

One way of doing this is to consider the 𝑦-intercept, that is the value of 𝑦 for which the graph crosses the 𝑦-axis. In other words, the value of 𝑦 when 𝑥 is zero. We can substitute 𝑥 equals zero into the equation of our graph. We get that 𝑦 is equal to zero squared minus four times zero plus four. Zero squared and four times zero are both zero. And so we’re left with just the constant term four.

Looking at our two options, we can see that while option B has a 𝑦-intercept of four as required, option C has a 𝑦-intercept of negative four. We therefore eliminate option C and choose option B. Another way of choosing between options B and C would be to consider the coefficient of the 𝑥 squared term. This coefficient is one. One is greater than zero. And so we’re looking for an upward facing curve like we see in option B and not a downward facing curve like in option C.

To end this video, we’ll just prove the fact that we used earlier which allowed us to say that the product of A and B should be four and their sum should be negative four. We can distribute these two brackets. We can distribute the terms in these parentheses. We get 𝑥 squared plus 𝑥 times 𝑏, which is 𝑏𝑥, plus 𝑎 times 𝑥 plus 𝑎 times 𝑏. We can swap and combine these like terms and we get 𝑥 squared plus 𝑎 plus 𝑏 times 𝑥 plus 𝑎𝑏.

We want to find values of 𝑎 and 𝑏 for which these two expressions are equal for all values of 𝑥. For these two expressions to be equal, their constant terms must be equal and so 𝑎𝑏 must equal four. This was the fact that we used to list several possibilities for the values of 𝑎 and 𝑏 in the integers.

And also the coefficient of 𝑥 of these two expressions must be equal. And so 𝑎 plus 𝑏 must equal negative four. This is what we used to choose between the possibilities that we had in our table. Having then found the values of 𝑎 and 𝑏, we wrote the equation of the graph in this form.