This time we will begin with drawing the graph of our given function.
As we can see, the behavior of the absolute value function changes at the vertex. Therefore, this is a good point to separate the graph into two pieces, both being straight lines. Our next step will then be to find the equations for both lines. For this, let's recall the of an equation.
y=mx+b
In this form,
m is the of the line and
b is the . Now, we can start with the line to the left of the vertex first. We can identify the
y-intercept and slope from the graph shown below.
For this line, the y-intercept is b=-40 and the slope is m=5. Therefore, the equation for it is y=5x−40. We will now do the same with the line to the right of the vertex.
Then, for this second line, the
y-intercept is
b=40 and the slope is
m=-5. Therefore, the equation for it is
y=-5x+40. Knowing the equations for both lines, we can now write the absolute value function
-5∣x−8∣ as the combination of two functions.
y={-5x−40-5x+40
Last, let's decide the domain of each piece. The pieces meet and change directions at
x=8, so this is where our domain needs to change. The point at
x=8 can belong to either piece, as long as it belongs to
only one of them. This means that we can correctly write the piecewise function in two different ways.
y={-5x−40,-5x+40,if x≤8if x>8ory={-5x−40,-5x+40,if x<8if x≥8