Complete the function table. Then write a rule for the function.

Input Output
-3. Square
-2. -4
-1. Square
0. Square
1. -1

Input Output

-3. 9
-2. -4
-1. 1
0. 0
1. -1

Rule: If the input is negative, square the input. If the input is non-negative, subtract 1 from the input.