Solveeit Logo

Question

Question: How do you write \(y=\left| 6+2x \right|+1\) as a piecewise function?...

How do you write y=6+2x+1y=\left| 6+2x \right|+1 as a piecewise function?

Explanation

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+2x06+2x\ge 0 and the other for 6+2x<06+2x<0.

Complete step-by-step solution:
The function given in the above question is
y=6+2x+1......(i)\Rightarrow y=\left| 6+2x \right|+1......\left( i \right)
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+2x06+2x\ge 0
6+2x0\Rightarrow 6+2x\ge 0
Subtracting 66 from both sides
6+2x606 2x6 \begin{aligned} & \Rightarrow 6+2x-6\ge 0-6 \\\ & \Rightarrow 2x\ge -6 \\\ \end{aligned}
Dividing both sides by 22
2x262 x3 \begin{aligned} & \Rightarrow \dfrac{2x}{2}\ge \dfrac{-6}{2} \\\ & \Rightarrow x\ge -3 \\\ \end{aligned}
Since in this case, the argument of the modulus function is non-negative, its absolute value will be equal to the argument. Therefore for x3x\ge -3 we can write
6+2x=6+2x\Rightarrow \left| 6+2x \right|=6+2x
Substituting this in the equation (i) we get
y=6+2x+1 y=2x+7 \begin{aligned} & \Rightarrow y=6+2x+1 \\\ & \Rightarrow y=2x+7 \\\ \end{aligned}
Case II: When 6+2x06+2x\ge 0
6+2x<0\Rightarrow 6+2x<0
Subtracting 66 from both sides
6+2x6<06 2x<6 \begin{aligned} & \Rightarrow 6+2x-6<0-6 \\\ & \Rightarrow 2x<-6 \\\ \end{aligned}
Dividing both sides by 22
2x2<62 x<3 \begin{aligned} & \Rightarrow \dfrac{2x}{2}<\dfrac{-6}{2} \\\ & \Rightarrow x<-3 \\\ \end{aligned}
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<3x<-3 we can write
6+2x=(6+2x)\Rightarrow \left| 6+2x \right|=-\left( 6+2x \right)
Substituting this in the equation (i) we get

& \Rightarrow y=-\left( 6+2x \right)+1 \\\ & \Rightarrow y=-6-2x+1 \\\ & \Rightarrow y=-2x-5 \\\ \end{aligned}$$ From the above two cases, we can write the given function in the piecewise form as $$\Rightarrow y=\left\\{ \begin{aligned} & 2x+7;x\ge -3 \\\ & -2x-5;x<-3 \\\ \end{aligned} \right\\}$$ We can see these two pieces of the given function in the below graph. ![](https://www.vedantu.com/question-sets/e475270f-1dc8-4fab-a385-40c90fc8f7fc3425767697476635958.png) Hence, we have written the given function in the piecewise form. **Note:** Whenever a function is defined in terms of modulus, greatest integer, fractional part etc. it is written in the piecewise form, since these have different definitions for the different intervals. We can put the equality sign on both of the inequalities for two intervals also.