The graph of quadratic functions

The graph of a quadratic function

f(x)=ax2+bx+cf(x)=ax^2+bx+c

is shaped like a \cup or \cap, and is called parabola. The highest point of the \cap-graph, or the lowest point of the \cup-graph, is called the vertex of ff. The vertices for the two parabolas shown below are indicated by a small dot.

The simplest quadratic function is

f(x)=x2f(x)=x^2

We call it the reference quadratic function. Using a table of values to draw its graph

xy=x239241100112439\begin{array}{r|l} x & y=x^2 \\ \hline -3 & 9\\ -2 & 4\\ -1 & 1\\ 0 & 0\\ 1 & 1\\ 2 & 4\\ 3 & 9\\ \end{array}

we get the figure below. It has a \cup shape and the vertex is at the origin: S(00)S(0|0). Furthermore, the graph passes through the points P(11)P(-1|1) and Q(11)Q(1|1).

Determining the graph of a quadratic function in standard form

f(x)=ax2+bx+cf(x)=ax^2+bx+c

is not straight forward, as not all coefficients a,ba, b and cc have a clear geometric interpretation. For the parameters of the vertex form

f(x)=A(xv)2+bf(x)=A(x-v)^2+b

however, there is a clear geometric interpretation, and is therefore the preferred form if we need to draw the graph of ff. We have the following interpretation of the parameters A,vA, v, and bb:

So you see, the parameters vv and bb are simply the coordinates of the vertex SS of the parabola.

Let's try to understand why these geometric interpretations of the parameters A,vA, v and bb are correct. Below you see the quadratic function in vertex form represented as a machine.

Notice that AA multiplies the output of the ()2(\,)^2-machine, and bb adds to it. Because the output of a machine is the yy-coordinate of its graph, we see that AA stretches every point of the graph of x2x^2 by the factor AA in yy-direction, and bb shifts the points vertically up or down. So the effect of AA and bb on the reference graph x2x^2 should be clear.

To understand the effect of vv, let's find the position of the vertex of f(x)=A(xv)2f(x)=A(x-v)^2, that is, b=0b=0. So we know from above, that the vertex will be on the xx-axis. So let's calculate the xx-intercept of ff:

A(xv)2=0:A,xxv=0+vx=v\begin{array}{lll} A(x-v)^2=0 \quad | :A, \sqrt{\phantom{x}}\\ x-v = 0\quad | +v\\ x=v \end{array}

and we see that the vertex of ff is at S(v0)S(v|0). In other words, for v>0v>0 the reference graph is shifted to the right, and for v<0v<0 the reference graph is shifted to the left.

Let us summarise and formulate the theorem

Theorem 1

Consider the vertex form of a quadratic function

f(x)=A(xv)2+bf(x)=A(x-v)^2+b

The graph of ff is a stretched version of the reference graph x2x^2 (stretched in yy-direction by the factor of AA). Its vertex is at S(vb)S(v|b). The graph of ff is \cup-shaped for A>0A>0 and \cap-shaped for A<0A<0.

Example 1

Consider the function f(x)=2x2+4x4f(x)=2x^2+4x-4.

  1. Determine the stretching factor in yy-direction and the coordinates of its vertex.

  2. Sketch the graph without a table of values, just by considering the succession of transformations applied to x2x^2.

Solution

We bring ff into vertex form:

f(x)=2x2+4x4=2(x2+2x)4=2((x+1)212)4=2(x+1)26=2(x(1))26\begin{array}{lll} f(x) & = & 2x^2+4x-4\\ & = & 2(x^2+2x)-4\\ & = & 2((x+1)^2-1^2)-4\\ & = & 2(x+1)^2-6\\ & = & 2(x-(-1))^2-6\\ \end{array}
  1. Thus, ff is stretched in yy-direction by A=2A=2, and the vertex is at S(16)S(-1|-6) (v=1,b=6v=-1, b=-6).
  2. First, draw the graph of the reference function, and stretch it by a factor of 22 in yy-direction. Then shift this new graph to the point S(16)S(-1|-6). See figure below.
Exercise 1: Function equation \rightarrow graph
Solution

Let rr denote the reference function: r(x)=x2r(x)=x^2, and SS the vertex.

  1. f(x)=(x2)2+3f(x)=(x-2)^2+3, thus A=1,v=2,b=3A=1, v=2, b=3, and therefore S(23)\underline{S(2|3)}.That is, graph rr is shifted to S(23)S(2|3).
  2. g(x)=2(x+2)21g(x)=-2(x+2)^2-1, thus A=2,v=2,b=1A=-2, v=-2, b=-1, and therefore S(21)\underline{S(-2|-1)}.That is, graph rr is stretched in yy-direction by the factor of 22, reflected about the xx-axis, and shifted to S(21)S(-2|-1).
  3. h(x)=x22x+5=(x1)2+4h(x)=x^2-2x+5 = (x-1)^2+4, thus A=1,v=1,b=4A=1, v=1, b=4 and therefore S(14)\underline{S(1|4)}That is, graph rr is shifted to S(14)S(1|4).
  4. i(x)=(x+2)2i(x)=(x+2)^2, thus A=1,v=2,b=0A=1, v=-2, b=0, and therefore S(20)\underline{S(-2|0)}.That is, graph rr shifted to S(20)S(-2|0).
  5. k(x)=0.5x2+1=0.5(x0)2+1k(x)=-0.5x^2+1 = -0.5(x-0)^2+1, thus A=0.5,v=0,b=1A=-0.5, v=0, b=1 and therefore S(01)\underline{S(0|1)}.That is, graph rr is stretched in yy-direction by the factor of 0.50.5, reflected about the xx-axis, and shifted to S(01)S(0|1).
  6. j(x)=34x26x+152=34(x4)24.5j(x)=\frac{3}{4}x^2-6x+\frac{15}{2} =\frac{3}{4}(x-4)^2-4.5, thus A=34,v=4,b=4.5A=\frac{3}{4}, v=4, b=-4.5 and therefore S(44.5)\underline{S(4|-4.5)}.That is, graph rr is stretched in yy-direction by the factor of 3/43/4, and shifted to S(44.5)S(4|-4.5).
  7. l(x)=3(2x4)2+2=3(2(x2))2+2=322(x2)2+2=12(x2)2+2l(x)=3(2x-4)^2+2=3(2(x-2))^2+2=3\cdot 2^2(x-2)^2+2=12(x-2)^2+2, thus A=12,v=2,b=2A=12, v=2, b=2 and therefore S(22)\underline{S(2|2)}. That is, graph rr is stretched in yy-direction by the factor of 1212, and shifted to S(22)S(2|2).

Determine the coordinates of the vertex and the stretching factor in yy-direction, then use this information to sketch the graph:

  1. f(x)=(x2)2+3f(x)=(x-2)^2+3
  2. g(x)=2(x+2)21g(x)=-2(x+2)^2-1
  3. h(x)=x22x+5h(x)=x^2-2x+5
  4. i(x)=(x+2)2i(x)=(x+2)^2
  5. k(x)=0.5x2+1k(x)=-0.5x^2+1
  6. j(x)=34x26x+152j(x)=\frac{3}{4}x^2-6x+\frac{15}{2}
  7. l(x)=3(2x4)2+2l(x)=3(2x-4)^2+2
Exercise 2: Graph \rightarrow function equation
Solution
  • ff: Diagram S(10)\rightarrow S(1|0), thus f(x)=A(x1)2+0f(x)=A(x-1)^2+0. To find AA, we see that f(2)=1A(21)2+0=1A=1f(2)=1 \rightarrow A(2-1)^2+0=1 \rightarrow A=1. Thus, we have f(x)=1(x1)2+0=(x1)2f(x)=1\cdot (x-1)^2+0=\underline{(x-1)^2}.The value of AA can also be directly inferred from the diagram if you compare with the reference function x2x^2 (one to the right from the vertex, one up).

  • gg: Diagram S(33)\rightarrow S(-3|3), thus g(x)=A(x+3)2+3g(x)=A(x+3)^2+3. To find AA, we see that g(2)=2g(-2)=2, thus A(2+3)2+3=2A=1A(-2+3)^2+3=2 \rightarrow A=-1. Thus we have g(x)=(x+3)2+3g(x)=\underline{-(x+3)^2+3}. The value A=1A=-1 can also be derived directly by comparing with the reference function x2x^2.

  • hh: Diagram S(00)\rightarrow S(0|0), thus h(x)=A(x0)2+0=Ax2h(x)=A(x-0)^2+0=Ax^2. To find AA, we see that h(2)=1h(2)=1 and thus A22=1A=14A\cdot 2^2=1\rightarrow A=\frac{1}{4}. Thus we have h(x)=14x2h(x)=\frac{1}{4}x^2. Again, by comparing with the reference function x2x^2, we could infer AA directly (two to the right from the vertex, 4 up, so we have to scale by 1/41/4).

  • kk: Diagram S(53)\rightarrow S(5|-3) thus k(x)=A(x5)23k(x)=A(x-5)^2-3. To find AA, we see that k(6)=0k(6)=0 and thus A(65)23=0A=3A(6-5)^2-3=0 \rightarrow A=3. Thus we have k(x)=3(x5)23k(x)=\underline{3(x-5)^2-3}. Again, we can infer AA directly by comparing with the reference function.

Determine the vertex form of the graphs shown below by first identifying the coordinates of the vertex on the diagram, and then finding the scaling factor in yy-direction.

Exercise 3

The graph of the function f(x)=x2f(x)=x^2 is stretched in yy-direction by a factor of 1010, reflected about the xx-axis, shifted 44 to the right and 55 upwards. Determine the function equation of the new graph.

Solution

A=10,v=4,b=5A=-10, v=4, b=5, thus f(x)=10(x4)2+5f(x)=\underline{-10(x-4)^2+5}

Exercise 4
  1. The xx- and yy-intercepts of the parabola ff.
  2. The point of intersections between the parabola ff and the straight line gg.
  3. The points of intersection between the parabolas ff and hh.
Solution

We first determine the function equations.

  • graph gg has slope Δy/Δx=1/2=0.5\Delta y / \Delta x = 1/2=0.5 and yy-intercept 11, thus it is g(x)=0.5x+1g(x)=0.5x+1
  • For graph ff it is A=1,v=2,b=2A=1, v=2, b=-2, thus f(x)=(x2)22f(x)=(x-2)^2-2
  • For graph hh it is A=1,v=1,b=0A=-1, v=1, b=0, thus h(x)=(x1)2h(x)=-(x-1)^2
  1. yy-intercept of ff is f(0)=(02)22=2f(0)=(0-2)^2-2=\underline{2} (see diagram). For the xx-intercept, find xx with f(x)=(x2)22=0f(x)=(x-2)^2-2=0, thus (x2)2=2(x-2)^2=2 and therefore x1=2+2=3.41x_1=2+\sqrt{2}=\underline{3.41} and x2=22=0.59x_2=2-\sqrt{2}=\underline{0.59}.
  2. The points of intersections between gg and ff. Find xx with g(x)=f(x)g(x)=f(x): 0.5x+1=(x2)220.5x+1=x24x+20=x24.5x+1\begin{array}{rll} 0.5x+1 & = & (x-2)^2-2\\ 0.5x+1 & = & x^2-4x+2\\ 0 & = & x^2-4.5x+1\\ \end{array} Midnight formula: x1=4.27x_1=4.27 and x2=0.23x_2=0.23. The corresponding yy-coordinates are y1=g(4.27)=3.14y_1=g(4.27)=3.14 and y2=f(0.23)=1.12y_2=f(0.23)=1.12. Thus, the points of intersection are A1(0.231.12)\underline{A_1(0.23|1.12)} and A2(4.273.14)\underline{A_2(4.27|3.14)}.
  3. The points of intersections between ff and hh: Find xx with h(x)=f(x)h(x)=f(x): (x1)2=(x2)22x2+2x1=x24x+20=2x26x+3\begin{array}{rll} -(x-1)^2 & = &(x-2)^2-2\\ -x^2+2x-1 & = & x^2-4x+2\\ 0 & = & 2x^2-6x+3\\ \end{array} Midnight formula: x1=2.37x_1=2.37 and x2=0.63x_2=0.63. The corresponding yy-coordinates are y1=h(2.37)=1.88y_1=h(2.37)=-1.88 and y2=h(0.63)=0.14y_2=h(0.63)=-0.14. Thus, the points of intersection are C1(0.630.14)\underline{C_1(0.63|-0.14)} and C2(2.371.88)\underline{C_2(2.37|-1.88)}.
Exercise 5

The graph of the function f(x)=ax2+bx+cf(x)=ax^2+bx+c has the vertex SS and passes through the point PP. Determine the parameters a,ba, b and cc of the standard form:

  1. S(15)S(-1|-5), P(311)P(3|11)

  2. S(412)S(4|12), P(04)P(0|4)

Solution

We start with the vertex form.

  1. S(15)S(-1|-5), thus v=1,b=5v=-1, b=-5 and therefore f(x)=A(x+1)25f(x)=A(x+1)^2-5. To find AA use f(3)=11f(3)=11 (as P(311)P(3|11) is on the graph of ff), thus A(3+1)25=16A5=11A(3+1)^2-5=16A-5=11 and therefore A=1A=1. It follows f(x)=(x+1)25=x2+2x4f(x)=(x+1)^2-5=x^2+2x-4 and therefore a=1,b=2,c=4\underline{a=1, b=2, c=-4}
  2. S(412)S(4|12), thus v=4,b=12v=4, b=12 and therefore f(x)=A(x4)2+12f(x)=A(x-4)^2+12. With f(0)=4f(0)=4 follows A(04)2+12=16A+12=4A(0-4)^2+12=16A+12=4, thus A=0.5A=-0.5. We have f(x)=0.5(x4)2+12=0.5x2+4x+4f(x)=-0.5(x-4)^2+12=-0.5x^2+4x+4, thus a=0.5,b=4,c=4\underline{a=-0.5, b=4, c=4}
Exercise 6

Find the parameter ss of the function f(x)=x2sx+4f(x)=x^2-sx+4 such that the vertex of the graph of ff has the yy coordinate 22. What is the corresponding xx-coordinate?

Solution

The vertex form of f(x)=x2sx+4f(x)=x^2-sx+4 is f(x)=(xs2)2(s2)2+4f(x)=\left(x-\frac{s}{2}\right)^2-\left(\frac{s}{2}\right)^2+4. So the vertex S(vB)S(v\vert B) has v=s2v=\frac{s}{2} and b=4(s2)2=4s24b=4-\left(\frac{s}{2}\right)^2=4-\frac{s^2}{4}. Since the yy-coordinate of the vertex is 22, we need to find ss such that b=4s24=2s=8b=4-\frac{s^2}{4}=2 \rightarrow s=\sqrt{8}. So it is f(x)=x28x+4f(x)=\underline{x^2-\sqrt{8}x +4} and the xx coordinate of the vertex is v=s2=82=1.41...v=\frac{s}{2}=\frac{\sqrt{8}}{2}=\underline{1.41...}.

Exercise 7

The product of two numbers with difference 11 should be as small as possible. Find the two numbers. Hint: vertex of quadratic function

Solution

Let xx be the smaller number, so the other number is x+1x+1. The product of the two numbers is thus f(x)=x(x+1)f(x)=x(x+1), and we need to find xx such that ff is as small as possible. ff is a quadratic function with vertex form

f(x)=x(x+1)=(x+0.5)20.25\begin{array}{lll} f(x) &= & x(x+1)\\ &= & (x+0. 5)^2-0.25\\ \end{array}

Since A=1A=1, the vertex S(0.50.25)S(-0.5\vert -0.25) is the lowest point, and thus the xx-value we are looking for is x=0.5x=-0.5. The two numbers are therefore 0.5\underline{-0.5} and 0.5\underline{0.5}.

Exercise 8

Which rectangle with a perimeter of 14cm14cm has the largest area? Hint: vertex of quadratic function

Solution

Let xx and yy be the side lengths of the rectangle. Thus

2x+2y=142x+2y=14

and

y=7xy=7-x

The area is thus

f(x)=xy=x(7x)f(x)=xy = x(7-x)

which is a quadratic function with vertex form

f(x)=x(7x)=x2+7x=(x27x)=(x3.5)2+12.25\begin{array}{lll} f(x) &= &x(7-x)\\ & =& -x^2+7x\\ & =& -(x^2-7x) \\ &= & -(x-3. 5)^2+12.25\\ \end{array}

Since A=1A=-1, the vertex S(3.512.25)S(3.5\vert 12.25) is the highest point, and so the area is largest for x=3.5x=\underline{3.5}. The other side has length 73.5=3.57-3.5=\underline{3.5}, therefore, it is a square.