If we just look at the function we can infer that this equation is nonlinear since it has a variable with and exponent (x^2), so from the start we know it is not linear.
Now, solving for the values given, we complete the table:
x = -2 => y = 5
x = -1 => y = 2
x = 0 => y = 1
x = 1 => y = 2
x = 2 => y = 5
Now in the graph mode: