Pearson Algebra 2 Common Core, 2011
PA
Pearson Algebra 2 Common Core, 2011 View details
7. Absolute Value Functions and Graphs
Continue to next subchapter

Exercise 49 Page 112

Consider two cases where the inside absolute value is negative and positive. Then, write the absolute value function as a piecewise function.

Practice makes perfect

We are asked to graph the following equation. y= |2x| +|x-4| Before we graph this function, recall that for any absolute value we can consider two cases, the first one occurs when the expression inside the absolute value is positive and the second one occurs when the expression inside is negative. y= |x| = - x, for x < 0 |x| = x, for x ≥ 0 Our equation is the sum of two absolute value expressions, so we need to consider the two cases for each expression. Let's analyze each expression at time! y_1 = -2x, for x < 0 2x, for x ≥ 0 Now, we will do the same for |x-4|. y_2= -(x-4), for x < 4 x-4, for x≥ 4 This means that our equation will change in each interval. Then, we can write it as a piecewise function.

Piecewise Function

To write a piecewise function, we can start by analyzing the value of the equation in each case. To do so, we will substitute the obtained expressions into the given equation. Let's do one at time!

Case x<0

In this case we have the following expressions. y_1= -2x and y_2=- (x-4) Let's substitute these expressions into the given equation.

y= |2x|+|x-4|
y = - 2x + ( - (x-4) )
â–¼
Simplify
y = - 2x +(4-x)
y= - 2x +4 +(- x)
y= - 2x + 4 -x
y= - 3 x +4

Case x≥ 0

Notice that this case includes x<4 and x≥ 0. Then, we can consider both intervals as a compound inequality. 0 ≤ x <4 Here, we have the following values for the absolute value expressions. y_1= 2x and y_2=- (x-4) Now, we will substitute these expressions into the given equation.

y= |2x|+|x-4|
y = 2x + ( - (x-4) )
â–¼
Simplify
y = 2x +(4-x)
y= 2x +4 +(- x)
y= 2x + 4 -x
y= x +4

Case x≥ 4

Finally, for this case we have the next values. y_1= 2x and y_2= x-4 We will substitute these expressions into the given equation.

y= |2x|+|x-4|
y = 2x + ( x-4 )
â–¼
Simplify
y= 2x +x +(- 4)
y= 2x + x -4
y= 3 x -4

Write the Piecewise Function

Let's combine the functions to write the given equation as a piecewise function. y= - 3x+4, for x < 0 x+4, for 0 ≤ x < 4 3x-4, for 4 ≤ x Now, we are ready to graph!

Graphing the Piecewise Function

To graph a piecewise function, we need to analyze the domain of each function and graph the parts separately. Then, we will combine them to get the graph of the given equation. Let's do it!

First Function

The domain of this function is less than 0, so the line segment will be sketched to left of x=0 line and the point at x=0 will be an open circle.

Second Function

In this case the domain of the function is greater than or equal to 0, this means that the line segment will be sketched to the right of x=0 and it will be a closed circle. Notice that the function also is less than 4, so the end of the line will be an open circle at x=4.

Third Function

Here, the domain of the function is greater than or equal to 4, so the line segment will be sketched to right of x=4 line and the point at x=4 will be a closed circle.

Combining the Graphs

Combining the graph of each segment line, we can have our final graph of y=|2x|+|x-4|.