Translating a parabola

Translate the parabola y=x2y = x^2 by 22 in the xx-direction and 11 in the yy-direction. Replacing xx with x2x - 2 and adding 11 gives y=(x2)2+1y = (x - 2)^2 + 1.

In general, shifting y=x2y = x^2 by pp horizontally and qq vertically yields y=(xp)2+qy = (x - p)^2 + q, moving the vertex from the origin (0,0)(0, 0) to (p,q)(p, q). Here the vertex moves from (0,0)(0, 0) to (2,1)(2, 1); the large dots mark the two vertices.