GATE 2023 XE — all source sections – Question 9
Which of the figures P, Q, R, S represents $f(x)=\bigl||x+2|-|x-1|\bigr|$?

Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) P
Explanation
Split at the inner absolute-value breakpoints −2 and 1, then at the outer zero −1/2:
$$f(x)=\begin{cases}
3,&x\le-2,\\
-2x-1,&-2\le x\le-1/2,\\
2x+1,&-1/2\le x\le1,\\
3,&x\ge1.
\end{cases}$$
Thus f(−2)=3, f(−1/2)=0 and f(1)=3. Outside that interval the graph is horizontal at height 3, and the middle is a V with slopes −2 and +2.
This is **P, A**. Omitting the outer absolute value would instead give a negative left plateau, as in a different option.
More Quantitative Aptitude: Algebra, Geometry and Mensuration questions
- GATE 2023 XL — all source sections Q7
- GATE 2023 XL — all source sections Q9
- GATE 2019 AG Q3
- GATE 2019 AR Q3
- GATE 2019 ST Q3
- GATE 2019 IN Q3
All Quantitative Aptitude: Algebra, Geometry and Mensuration questions →