2.2 Quadratic Functions

1. The Simplest Quadratic: $y=x^2$

The graph of a quadratic function is a symmetric curve called a parabola. The simplest quadratic function is $$y=x^2.$$ It is the parent graph for many quadratic transformations.

$x$ $-3$ $-2$ $-1$ $0$ $1$ $2$ $3$
$y=x^2$ $9$ $4$ $1$ $0$ $1$ $4$ $9$
  • The domain of $y=x^2$ is $x\in\mathbb{R}$.
  • The range of $y=x^2$ is $y\geq 0$, or $[0,\infty)$.
  • The function $y=-x^2$ is the reflection of $y=x^2$ across the $x$-axis.
  • The range of $y=-x^2$ is $y\leq 0$, or $(-\infty,0]$.

2. The Quadratic Function $y=ax^2+bx+c$

A general quadratic function has the form $$y=ax^2+bx+c,\qquad a\neq 0.$$ The coefficient $a$ controls the concavity and vertical stretch, while $b$ and $c$ affect the position of the parabola.

  1. Concavity:
    • If $a>0$, the graph is concave up.
    • If $a<0$, the graph is concave down.
  2. Discriminant: $$\Delta=b^2-4ac.$$ The discriminant determines how many real roots the quadratic has.
    • If $\Delta>0$, there are two distinct real roots.
    • If $\Delta=0$, there is one repeated real root.
    • If $\Delta<0$, there are no real roots.
  3. Roots / $x$-intercepts: $$x=\dfrac{-b\pm\sqrt{\Delta}}{2a},\qquad \Delta\geq 0.$$
  4. $y$-intercept: set $x=0$. Since $$y=a(0)^2+b(0)+c=c,$$ the $y$-intercept is $(0,c)$.
  5. Axis of symmetry: $$x=-\dfrac{b}{2a}.$$ This is also the $x$-coordinate of the vertex.
  6. Vertex from roots: if the roots are $r_1$ and $r_2$, then the axis of symmetry is $$x=\dfrac{r_1+r_2}{2}.$$

Key Features of a Parabola

Discriminant Cases

EXAMPLE 1

Analyze the quadratic function $$y=2x^2-12x+10.$$

Since $a=2>0$, the graph is concave up.
The discriminant is $$\begin{aligned} \Delta&=b^2-4ac\\ &=(-12)^2-4(2)(10)\\ &=144-80\\ &=64. \end{aligned}$$ Since $\Delta>0$, the graph has two distinct real roots.
The roots are $$\begin{aligned} x&=\dfrac{-b\pm\sqrt{\Delta}}{2a}\\ &=\dfrac{12\pm\sqrt{64}}{4}\\ &=\dfrac{12\pm 8}{4}. \end{aligned}$$ Therefore, $$x=1\qquad\text{or}\qquad x=5.$$
The $y$-intercept is found by setting $x=0$: $$y=10.$$ Therefore, the $y$-intercept is $$(0,10).$$
The axis of symmetry is $$x=-\dfrac{b}{2a}=-\dfrac{-12}{2(2)}=3.$$ Substituting $x=3$: $$\begin{aligned} y&=2(3)^2-12(3)+10\\ &=18-36+10\\ &=-8. \end{aligned}$$ Therefore, the vertex is $$V(3,-8).$$

NOTICE FOR THE GDC (Casio)

  • Use Equation $\rightarrow$ Polynomial $\rightarrow$ degree 2 to find the roots.
  • Use Graph mode $\rightarrow$ G-Solv (F5) to find graph features.
Option Purpose In this example
F1 ROOT Find roots / $x$-intercepts $1$ and $5$
F2 MAX / F3 MIN Find the vertex $(3,-8)$
F4 Y-CEPT Find the $y$-intercept $10$

3. Quadratic Inequalities

Quadratic inequalities have one of the following forms:

  • $ax^2+bx+c>0$ or $ax^2+bx+c\geq 0$
  • $ax^2+bx+c<0$ or $ax^2+bx+c\leq 0$

Once the roots are known, the graph shows where the quadratic is positive, negative, or zero.

For $$2x^2-12x+10>0,$$ the roots are $1$ and $5$, and the parabola is concave up.

  • The expression is positive for $$x<1\qquad\text{or}\qquad x>5.$$ Hence, $$x\in(-\infty,1)\cup(5,\infty).$$
  • The inequality $$2x^2-12x+10\leq 0$$ has solution $$x\in[1,5].$$

NOTICE

If $$ax^2+bx+c>0\quad\text{for every }x\in\mathbb{R},$$ or $$ax^2+bx+c<0\quad\text{for every }x\in\mathbb{R},$$ then the graph does not intersect the $x$-axis. Therefore, the quadratic has no real roots, so $$\Delta<0.$$

EXAMPLE 2

Let $$f(x)=2x^2-4x+k.$$ Determine the values of $k$ for each condition.

The discriminant is $$\begin{aligned} \Delta&=b^2-4ac\\ &=(-4)^2-4(2)(k)\\ &=16-8k. \end{aligned}$$
  1. Exactly one root: $$\Delta=0\quad\Longrightarrow\quad 16-8k=0\quad\Longrightarrow\quad k=2.$$
  2. Exactly two roots: $$\Delta>0\quad\Longrightarrow\quad 16-8k>0\quad\Longrightarrow\quad k<2.$$
  3. No real roots: $$\Delta<0\quad\Longrightarrow\quad 16-8k<0\quad\Longrightarrow\quad k>2.$$
  4. Has real roots: $$\Delta\geq 0\quad\Longrightarrow\quad k\leq 2.$$
  5. $f(x)>0$ for every $x\in\mathbb{R}$: Since $a=2>0$, the parabola opens upward. To stay strictly above the $x$-axis, it must have no real roots: $$\Delta<0\quad\Longrightarrow\quad k>2.$$
  6. $f(x)\geq 0$ for every $x\in\mathbb{R}$: The parabola may touch the $x$-axis once or float above it: $$\Delta\leq 0\quad\Longrightarrow\quad k\geq 2.$$

4. Forms of a Quadratic Function

  • Traditional form: $$y=ax^2+bx+c.$$
  • Factorized form: $$y=a(x-r_1)(x-r_2),$$ where $r_1$ and $r_2$ are the roots.
  • Vertex form: $$y=a(x-h)^2+k,$$ where $(h,k)$ is the vertex.

EMPHASIS ON STRATEGY: If the roots are known, the $x$-coordinate of the vertex is the midpoint of the roots:

$$x=\dfrac{r_1+r_2}{2}.$$

This midpoint property also agrees with the formula $$x=-\dfrac{b}{2a}.$$

NOTICE: Finding the Vertex

  • From $y=ax^2+bx+c$, use $$x=-\dfrac{b}{2a}.$$
  • From $y=a(x-r_1)(x-r_2)$, use $$x=\dfrac{r_1+r_2}{2}.$$
  • After finding the $x$-coordinate $h$, substitute $x=h$ into the function to find $k$.
  • Then write the quadratic as $$y=a(x-h)^2+k.$$

♦ JUSTIFICATION OF THE VERTEX FORM $y=a(x-h)^2+k$

1) The point $(h,k)$ is the vertex.

  • If $a>0$, then $$a(x-h)^2\geq 0.$$ Therefore, $$a(x-h)^2+k\geq k.$$ Hence $y\geq k$, and the minimum value is $k$ at $x=h$.
  • If $a<0$, then $$a(x-h)^2\leq 0.$$ Therefore, $$a(x-h)^2+k\leq k.$$ Hence $y\leq k$, and the maximum value is $k$ at $x=h$.

2) Any quadratic can be written in vertex form by completing the square. For example:

$$\begin{aligned} y&=2x^2-12x+10\\ &=2(x^2-6x)+10\\ &=2(x^2-6x+9-9)+10\\ &=2(x-3)^2-18+10\\ &=2(x-3)^2-8. \end{aligned}$$

This agrees with the vertex $(3,-8)$ found earlier.

EXAMPLE 3

Express $$y=2x^2-12x+10$$ in factorized form and vertex form.

From Example 1, the roots are $1$ and $5$. Therefore, the factorized form is $$y=2(x-1)(x-5).$$
The vertex $x$-coordinate is the midpoint of the roots: $$x=\dfrac{1+5}{2}=3.$$ Substitute $x=3$: $$y=2(3)^2-12(3)+10=-8.$$ Hence the vertex is $$(3,-8).$$
Therefore, the vertex form is $$y=2(x-3)^2-8.$$
Verification from factorized form: $$\begin{aligned} 2(x-1)(x-5) &=2(x^2-6x+5)\\ &=2x^2-12x+10. \end{aligned}$$
Verification from vertex form: $$\begin{aligned} 2(x-3)^2-8 &=2(x^2-6x+9)-8\\ &=2x^2-12x+18-8\\ &=2x^2-12x+10. \end{aligned}$$

EXAMPLE 4

Let $$y=-3x^2-15x+42.$$ Express it in factorized form and vertex form.

Using the GDC or the quadratic formula, the roots are $$x=-7\qquad\text{and}\qquad x=2.$$ Therefore, the factorized form is $$y=-3(x+7)(x-2).$$
The vertex $x$-coordinate is $$x=\dfrac{-7+2}{2}=-\dfrac{5}{2}=-2.5.$$
Substitute $x=-2.5$: $$y=-3(-2.5)^2-15(-2.5)+42=60.75.$$ Therefore, the vertex is $$V(-2.5,60.75).$$
Thus the vertex form is $$y=-3(x+2.5)^2+60.75.$$

EXAMPLE 5

Consider $$f(x)=3x^2+12x.$$ Find the roots, vertex, and vertex form.

Factorize: $$f(x)=3x(x+4).$$ Therefore, the roots are $$x=0\qquad\text{and}\qquad x=-4.$$
The vertex $x$-coordinate is the midpoint of the roots: $$x=\dfrac{0+(-4)}{2}=-2.$$
Substitute $x=-2$: $$f(-2)=3(-2)^2+12(-2)=12-24=-12.$$ Therefore, the vertex is $$V(-2,-12).$$
Hence the vertex form is $$y=3(x+2)^2-12.$$

EXAMPLE 6 (Polynomial with Imaginary Roots)

Let $$y=2x^2-8x+14.$$ Find the vertex and vertex form.

First check the discriminant: $$\begin{aligned} \Delta&=(-8)^2-4(2)(14)\\ &=64-112\\ &=-48. \end{aligned}$$ Since $\Delta<0$, the quadratic has no real roots.
The vertex $x$-coordinate can still be found using $$x=-\dfrac{b}{2a}=-\dfrac{-8}{2(2)}=\dfrac{8}{4}=2.$$
Substitute $x=2$: $$y=2(2)^2-8(2)+14=8-16+14=6.$$ Therefore, the vertex is $$V(2,6).$$
Hence the vertex form is $$y=2(x-2)^2+6.$$
The complex roots are $$x=2\pm i\sqrt{3}.$$ Their midpoint is still $$\dfrac{(2+i\sqrt{3})+(2-i\sqrt{3})}{2}=2,$$ which agrees with the vertex $x$-coordinate.

5. Vieta Formulas

Given the quadratic $$y=ax^2+bx+c,$$ with roots $r_1$ and $r_2$, Vieta's formulas state:

  • Sum of roots: $$S=r_1+r_2=-\dfrac{b}{a}.$$
  • Product of roots: $$P=r_1r_2=\dfrac{c}{a}.$$

Conversely, if a monic quadratic has sum of roots $S$ and product of roots $P$, then $$x^2-Sx+P=0.$$

EXAMPLE 7

For $$y=2x^2-12x+10,$$ the roots are $1$ and $5$. Verify Vieta's formulas.

The sum of the roots is $$1+5=6.$$ Vieta's formula gives $$-\dfrac{b}{a}=-\dfrac{-12}{2}=6.$$
The product of the roots is $$1\cdot 5=5.$$ Vieta's formula gives $$\dfrac{c}{a}=\dfrac{10}{2}=5.$$
Therefore, the monic quadratic with roots $1$ and $5$ is $$x^2-6x+5=0.$$ Multiplying by $2$ gives $$2x^2-12x+10=0.$$