Piecewise Quadratics

EXAMPLE 1:

Let's first look at an example of a function with "three pieces."

f(x) = {  \left.\rule{0pt}{3.5em}\right\{\;

x2 - 2, x < 1
4, x = 1
3 - x, x >1

① The first piece, f(x) = x2 - 2 when x < 1 is a parabola. Since the coefficient of x2 is positive, you know that it is a upward opening parabola. If that leading coefficient had been negative, then the graph would be an "upside down" parabola, or a parabola opening downwards.The most important point to include on a parabola is its vertex.

For a regular, normal y = x2 parabola, the vertex is located at (0,0). However, for this parabola, we have subtracted a 2 after the x2. There are two ways we can use this information to find the vertex. This is a shift downward of the parabola which tells you that the vertex is (0, -2).

Another method is to think of the equation as being in the general form of a standard quadratic, y = ax2 + bx + c where b = 0. In this form, the vertex is found by calculating the point (-b/2a, y) which would yield (0/2,y ). Substituting 0 for x you get y = -2. That gives you the point (0, -2) which is identical to our other method of finding the vertex.

② The second piece f(x) = 4 when x = 1, gives you one point on the graph, (1, 4), which would be a "solid circle" when graphed.

③ The final piece is f(x) = 3 - x when x > 1. This piece is linear since there are no powers of x.

Let's now look at a table of values for f(x) to learn how "big of a graph" you will need to use.

When choosing values for x in the first parabolic piece, you want to look at keeping the symmetry around the vertex of the parabola, hence the choices of x = -1, 0, and 1.

Notice x = 1 is in all three pieces. This is because each domain statement contains the function's behavior around 1.

xf(x)
-1-1 }  x2−2,  x<1\left.\rule{0pt}{3.5em}\right\}\;x^2 - 2,\;x<1
0-2
1-1 (open)
14 (closed) }  4    x=1\left.\rule{0pt}{1.5em}\right\}\;4\;\;x =1
12 (open) }  3−x    x>1\left.\rule{0pt}{3.5em}\right\}\;3-x\;\;x>1
21
32

To set up your graph, you want to examine the smallest and largest value required for both x and y.

When graphing on the AP exam, if there is no scale on an axis the assumption is that the scale is 1. An arrow at the end of a graphed segment tells the reader that the graph "continues on with the same behavior."

Before moving on to the next problem, you need to make sure that the graph is "reasonable."

EXAMPLE 2:

g(x) = {  \left.\rule{0pt}{2.0em}\right\{\;

1 - x2, x < 0
x - 1, x ≥0

As you look at the pieces, you see

Again you need to set up a table of values for g(x).There will be "two parts" to the table since there are two pieces to the function.

Since the vertex is at (0, 1) and 0 is an endpoint in our table, we know that we will be graphing "half" of the parabola.

xg(x)
-2-3 }  1−x2,  x<0\left.\rule{0pt}{3.5em}\right\}\;1-x^2,\;x<0
-10
01 (open)
0-1 (closed) }  x−1,  x≥0\left.\rule{0pt}{3.5em}\right\}\;x-1,\;x \ge 0
10
21

To set up your graph, you want to examine the smallest and largest value required for both x and y. As in the previous example, we can scale our axes by ones.

EXAMPLE 3:

In this example, you are given the graph of a piecewise function for which you are asked to write the equations for its pieces.

On a graph remember that arrows running "off of the paper" signify that the behavior continues to +∞ and -∞ and MUST have arrows.

To begin the solution you need to consider how many pieces make up the function, in this case there are 4. To complete our task, each piece must have its domain stated correctly, as well as f(x) for that piece.

① For the 1st piece there is an arrow to the left and an open circle at (0, 0) which tells you that the domain is x < 0. This piece has the shape of a line, so you would use y = mx + b to calculate its equation.

  • looking at positions on the line, you can see that it goes down one, over one, so the slope is -1.
  • the line runs right into the y-axis at 0, so the y-intercept would be 0.
  • y = mx + b → y = (-1)x + 0 → y = -1

② The second function piece is the single dot whose coordinates are (0, 1).

③For third linear piece we can again use y = mx + b.

  • looking at positions on the line, you can see that the line goes up one, over one, so the slope is +1.
  • the line runs right into the y-axis at 0, so the y-intercept would be 0.
  • y = mx + b → y = (1)x + 0 → y = 1
  • this section has two endpoints, both of which are open circles, which means you would use < signs.

④This last piece is linear with a slope equal to 0. Even though it does not actually touch the y-axis, you can "extend it back" and see the y-intercept = 1. This gives us the equation for this piece as y = 1. It has a closed circle at x = 3.

Your answer to this problem is summarized below.

g(x) = {  \left.\rule{0pt}{3.5em}\right\{\;

- x2, x < 0 (open)
1, x = 0 (closed)
x, 0 < x < 2 (open)
1, x ≥3

Examining other details