Now, let's graph part2 ):

y = ( x - 1 )^2  ...  shift right to x = 1  ...  Closed dot since he owns the fence... and he can't jump the fence.

Done!

 


TRY ONE:

y = ( -3 ; x is less than or equal to -1  ...  -x^2 + 4 ; x > -1 )



Let's do one with three pieces...

Graph

y = ( | x + 3 | ; x is less than or equal to -3  ...  4 ; -3 < x is less than or equal to 2  ...  5 - x ; x > 2 )
 

Let's put up the fencing:
 

y = | x + 3 | lives in the leftmost neighborhood  ...  y = 4 lives in the middle neighborhood  ...  y = 5 - x lives in the rightmost neighborhood  ...  the fences are vertical on x = -3 and x = 2