Sign In
Consider two cases where the inside absolute value is negative and positive. Then, write the absolute value function as a piecewise function.
We are asked to graph the following equation.
y= 1/2|x| +4|x-1|
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 =
1/2(- x), for x < 0
1/2(x), for x ≥ 0 Now, we will do the same for 4|x-1|.
y_2=
4(-(x-1)), for x < 1
4(x-1), for x≥ 1
This means that our equation will change in each interval. Then, we can write it as a 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!
In this case we have the following expressions. y_1= 1/2(- x) and y_2=4(- (x-1)) Let's substitute these expressions into the given equation.
1/2|x|= 1/2(- x), 4|x-1|= 4(- (x-1))
-(b-a)=a-b
Distribute 4
a(- b)=- a * b
a+(- b)=a-b
a/c* b = a* b/c
Commutative Property of Addition
a = 2* a/2
Put minus sign in front of fraction
Subtract fractions
Put minus sign in front of fraction
Notice that this case includes x<1 and x≥ 0. Then, we can consider both intervals as a compound inequality. 0 ≤ x <1 Here, we have the following values for the absolute value expressions. y_1= 1/2(x) and y_2=4(- (x-1)) Now, we will substitute these expressions into the given equation.
1/2|x|= 1/2( x), 4|x-1|= 4(- (x-1))
-(b-a)=a-b
Distribute 4
a(- b)=- a * b
a+(- b)=a-b
a/c* b = a* b/c
Commutative Property of Addition
a = 2* a/2
Subtract fractions
Put minus sign in front of fraction
Finally, for this case we have the next values. y_1= 1/2(x) and y_2=4(x-1) We will substitute these expressions into the given equation.
1/2|x|= 1/2( x), 4|x-1|= 4(x-1)
Distribute 4
a(- b)=- a * b
a+(- b)=a-b
a/c* b = a* b/c
a = 2* a/2
Subtract fractions
Let's combine the functions to write the given equation as a piecewise function. y= -9/2x+4, for x < 0 -7/2x+4, for 0 ≤ x < 1 9/2x-4, for 1 ≤ x Now, we are ready to graph!
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!
The domain of this function is less than 0, the line segment will be sketched to left of x=0 line and the point at x=0 will be an open circle.
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 1, so the end of the line will be an open circle at x=1.
Here, the domain of the function is greater than or equal to 1, so the line segment will be sketched to right of x=1 line and the point at x=1 will be a closed circle.
Combining the graph of each segment line, we can have our final graph of y= 12|x|+4|x-1|.