Any hints on how to graph this piece wise function?

63 Views Asked by At

I am supposed to sketch the graph of

y= |x-1| if 0≤x≤2

|x-3| if 2≤x≤4 and specify any x or y intercepts

i'm just confused about graphing it because of the absolute value signs. Any help or ideas?

2

There are 2 best solutions below

6
On

Your function is $$y=\begin{cases} -(x-1) & 0\le x\le 1\\ x-1 & 1\le x\le 2\\-(x-3) & 2\le x\le 3\\x-3 & 3\le x\le 4\end{cases}$$

0
On

You can sketch the functions $x-1$ on $0\leq x\leq2$ nad $x-3$ on $2\leq x\leq4$, then you can get absolute from of your graph and obtain main graph.