Question
Question: How do you write \(y=\left| 6+2x \right|+1\) as a piecewise function?...
How do you write y=∣6+2x∣+1 as a piecewise function?
Solution
A piecewise is a function which is defined differently in different intervals within its domain. So we have to write the different definitions of the given function in the different intervals of x, which can be determined by using the definition of the modulus function. The modulus function returns the absolute value of the argument. So we have to consider two cases, one for 6+2x≥0 and the other for 6+2x<0.
Complete step-by-step solution:
The function given in the above question is
⇒y=∣6+2x∣+1......(i)
We know that the modulus function returns the absolute value of the argument. Therefore, we can consider the two cases as below.
Case I: When 6+2x≥0
⇒6+2x≥0
Subtracting 6 from both sides
⇒6+2x−6≥0−6⇒2x≥−6
Dividing both sides by 2
⇒22x≥2−6⇒x≥−3
Since in this case, the argument of the modulus function is non-negative, its absolute value will be equal to the argument. Therefore for x≥−3 we can write
⇒∣6+2x∣=6+2x
Substituting this in the equation (i) we get
⇒y=6+2x+1⇒y=2x+7
Case II: When 6+2x≥0
⇒6+2x<0
Subtracting 6 from both sides
⇒6+2x−6<0−6⇒2x<−6
Dividing both sides by 2
⇒22x<2−6⇒x<−3
Since in this case, the argument of the modulus function is non-negative, its absolute value will be equal to the argument. Therefore for x<−3 we can write
⇒∣6+2x∣=−(6+2x)
Substituting this in the equation (i) we get