A quadratic (polynomial) is an expression of the form
where `a`, `b` and `c` are real numbers (and `a ne 0`).
So for example `x^2 + x+2` is a quadratic as is `x^2 - 3`.
We will see later that the forms `(x+p)^2 + q` or `q-(x+p)^2` are very useful for graphing quadratics and solving quadratic equations. In this section we will consider how to rearrange a quadratic into these forms.
Q: Write `x^2 + 6x` in the form `(x+p)^2 + q`.
A: First we take the coefficient of `x` and half it. That is `6/2 = 3` in this case.
Now work out `(x+3)^2 = x^2 + 6x + 9`. Rearranging this we get the required form
Q: Write `x^2 -8x +3` in the form `(x+p)^2 + q`.
A: Again we take the coefficient of `x` and half it to get `-8/2 = -4`.
Now work out `(x-4)^2 = x^2 - 8x +16`. So we can replace `x^2 -8x` in the quadratic above by `(x+4)^2 - 16`. That is
Q: Write `-6x^2 +30x -1/4` in the form `q - a(x+p)^2`.
A: This time we need to rearrange the quadratic in the equation before we can complete the square. We will take out a factor of `-6` to get
Now we complete the square for `x^2 - 5x`.
The solutions to `ax^2 + bx + c =0` are called the roots.
These are the places where the graph cuts the `x`-axis. A quadratic equation may have two, one or no (real) roots. Examples of each of these possibilities are shown on the graphs below.
Completing the square can always be used to solve quadratic equations.
Q: Solve `x^2 - 2x -2 = 0`.
A: By completing the square `x^2 - 2x -2 = (x-1)^2 -1-2 = (x-1)^2 -3`.
To solve `x^2 - 2x -2 = 0` we use the completed square form for the left hand side to get
Factorising can sometimes be used to solve quadratic equations.
Q: Solve `t^2 + 4t - 12 = 0`
A: Factorise to get `(t-2)(t+6) = 0`.
So `t-2 = 0` or `t+6 = 0`. That is `t=2` or `t=-6`.
To solve `ax^2 + bx + c = 0`,
The formula was found by using completing the square: see p149 of Heinemann.
Solve `x^2 + 14x + 47 = 0` using both the quadratic formula and completing the square. Which one is easier?
Solving Quadratics by:
For `ax^2 + bx + c =0`, we call `b^2 -4ac` the discriminant.
Notice that the discriminant is the expression that appears in the square root in the quadratic formula.
The discriminant can tell us how many roots a quadratic equation has. There are three cases:
On a sketch you must show the coordinates of
The completed square forms `a(x+p)^2 +q` or `q - a(x+p)^2` tell us the following information about the graph.
Q: Sketch the graph of `y=x^2 -8x +3`.
A: `y`-intercept: set `x=0`. So `y = 0^2-8 times 0 +3 =3`.
`x`-intercept: set `y=0`. So `0=x^2 - 8x +3`. Now complete the square to solve the quadratic equation
We can also use the completed square form to rewrite `y=x^2 -8x +3` as `y = (x-4)^2 -13`. Hence we know that the minimum value occurs at `(4,-13)`.
Therefore the completed graph is:
Method:
Q: Find the values for which `2x^2 + x -3 >0`.
A: By factorising `2x^2 + x - 3 = (2x + 3)(x-1)`. So the solutions to `2x^2 + x -3 = 0` are `x = -3/2` or `1`.
So `2x^2 + x -3 >0`
for `x>1` or `x<-3/2`
Q: Find the values for which `2x^2 + x -3 <0`.
A: Using the working and the sketch from the previous example we can see that the inequality holds when `-3/2 <x<1`.