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 equation 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 . Let's start with the line to the left of the vertex. We can identify the
y-intercept and slope from the graph.
For this line, the y-intercept is b=-12 and the slope is m=-7. Therefore, the equation is y=-7x−12. We will now do the same with the line to the right of the vertex.
For the second line, the
y-intercept is
b=2 and the slope is
m=7. Therefore, the equation is
y=7x+2. Knowing the equations for both lines, we can now write the absolute value function
7∣x+1∣−5 as the combination of two functions.
y={-7x−12-7x+2
Last, let's decide the domain of each piece. The pieces meet and change directions at
x=-1, so this is where our domain needs to change. The point at
x=-1 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={-7x−12,-7x+2,ififx≤-1x>-1ory={-7x−12,-7x+2,ififx<-1x≥-1