Piecework-defined function help??

Answer:
10
-1
1
2
Step-by-step explanation:
f(3) this one we use the second question (because the value that x is equal to is between 0 and 4)
3²+1=10
f(6) = -1 because this value is greater than 4
because the second equation has 0 inclusive we use this one for f(0)
0²+1=1
F(-3) for this one the answer is just two because x is less than 0