Graph the function. y = |x| + x, −2 ≤ x ≤ 2
Advertisements
Question
Graph the function.
y = |x| + x, −2 ≤ x ≤ 2
Graph
Advertisements
Solution
\[ y = |x| + x, \ -2 \leq x \leq 2 \]
For \(-2 \leq x < 0\), \(|x| = -x\)
\[ \therefore y = -x + x = 0 \]
For \(0 \leq x \leq 2\), \(|x| = x\)
\[ \therefore y = x + x = 2x \]
Table of values:
\[ \begin{array}{|c|c|c|c|c|c|} \hline x & -2 & -1 & 0 & 1 & 2 \\ \hline y & 0 & 0 & 0 & 2 & 4 \\ \hline \end{array} \]
Plotting these points and joining them, we get the graph of \(y = |x| + x\) as shown in the figure.

Domain = [−2, 2], Range = [0, 4]
shaalaa.com
Is there an error in this question or solution?
