2.
Rewrite as hybrid. I get this far: =| x^2-3x+2, ......)
|_
.
I'm not too sure how to write the less/greater than for x.
Thanks. 
Now remember a mod makes whatever is inside it positive, so its is negative (y<0) then it will be made positive.
So when

then you are just left with the positive of it, i.e.

. When

, it i s negative and being made positive hence we have
+2)
.
So you have to work out when

Because it is not linear, we need to draw it out and visually work out when it is above 0. So intercepts are needed x(x-3)=0, x=0,3
https://www.desmos.com/calculator/bntqyrvf32So it is above or equal to 0 when x<=0 and x=>3
So that is your domain for the

For
+2=-x^{2}+3x+2)
it will be when its less then 0, so 0<x<3
Hope that helps

EDIT: Beaten.