Academy
Formulas/maths/Straight Lines/Shifting of Origin

Shifting of Origin

When the origin is shifted to (h, k), new coordinates (X, Y) relate to old by x = X + h, y = Y + k.
Derivation

Let the origin shift to O(h,k)O'(h,k). A point PP with old coordinates (x,y)(x,y) has new coordinates (X,Y)(X,Y) relative to OO'.

Since P=O+(X,Y)P = O' + (X,Y):

x=X+h,y=Y+kx = X + h, \qquad y = Y + k

or:

X=xh,Y=ykX = x - h, \qquad Y = y - k

Effect on a line

ax+by+c=0ax + by + c = 0 becomes a(X+h)+b(Y+k)+c=0a(X+h) + b(Y+k) + c = 0, i.e.:

aX+bY+(ah+bk+c)=0aX + bY + (ah+bk+c) = 0

Slope is unchanged. If (h,k)(h,k) is chosen as the intersection of two lines, both simplify simultaneously — the standard use in pair-of-lines problems to eliminate linear terms.

What is preserved

Slopes, angles between lines, distances between points, the degree of any equation, the form of any equation.

What changes

Intercepts, coordinates of all points, the constant term in line equations.