Given the parabola f(x)=ax^2 we are moving it one unit on the x-axis, and two units on the y-axis. What would be the equation of the new parabola ?

I got a hunch it would be f(x)=a(x-1)^2 + 2 but I would be grateful if someone could explain the solution and the way I approach such questions.