HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Translation and Rotation of Axes
  1. 1Shifting the origin
  2. 2Rotating the axes
  3. 3Reducing a second-degree equation
  1. Mathematics
  2. /Translation and Rotation of Axes
  3. /Shifting the origin

Course 32.2·Lesson 1 of 3

Shifting the origin

Shifting the origin to O′(α,β)O'(\alpha, \beta)O′(α,β), with the new axes parallel to the old ones, gives x=X+αx = X + \alphax=X+α and y=Y+βy = Y + \betay=Y+β

about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Lesson 1 of 3Show all lessonsHide
Translation and Rotation of Axes
  1. 1Shifting the origin
  2. 2Rotating the axes
  3. 3Reducing a second-degree equation

Try the code and the simulations beside the lesson.

What you will be able to do

  • find the new coordinates of a point when the origin is shifted;
  • shift the origin to remove the first-degree terms of a curve;
  • find the centre of a curve of the second degree and the new constant.

A map with a new centre

A city map has its origin at the railway station. A new map puts the origin at the town hall, 3 km3\ \text{km}3 km east and 2 km2\ \text{km}2 km north of the station, with the same directions for the axes. Every place keeps its position, but its coordinates change. A school at (5,7)(5, 7)(5,7) on the old map is at (2,5)(2, 5)(2,5) on the new one. You met this shift of origin briefly in the chapter on straight lines. Here we use it to tidy up curves.

The formulas

Let the new origin be O′(α,β)O'(\alpha, \beta)O′(α,β) in the old coordinates, with the new axes parallel to the old ones. A point has old coordinates (x,y)(x, y)(x,y) and new coordinates (X,Y)(X, Y)(X,Y). Then

x=X+α,y=Y+β.\displaystyle x = X + \alpha, \qquad y = Y + \beta.x=X+α,y=Y+β.

Read it as: old = new + shift. So X=x−αX = x - \alphaX=x−α and Y=y−βY = y - \betaY=y−β.

What stays the same. A shift moves every point by the same vector. So the distance between two points, the slope of a line, every angle and every area stay the same. The degree of an equation stays the same too.

Grey old axes with the origin O. A blue parabola opens upwards with its lowest point at (3, 2). Red dashed new axes cross at that point, labelled O'. The new coordinates X and Y are measured from O'. The labels show x = X + 3 and y = Y + 2.

A parabola made simple

Take y=x2−6x+11y = x^2 - 6x + 11y=x2−6x+11. Complete the square: y−2=(x−3)2y - 2 = (x - 3)^2y−2=(x−3)2. Shift the origin to (3,2)(3, 2)(3,2), and the equation is Y=X2Y = X^2Y=X2. The vertex of the parabola is the new origin.

The general equation of the second degree

Every curve of the second degree can be written as

S=ax2+2hxy+by2\displaystyle S = ax^2 + 2hxy + by^2S=ax2+2hxy+by2
+2gx+2fy+c=0.\displaystyle \qquad + 2gx + 2fy + c = 0.+2gx+2fy+c=0.

The halves in 2h2h2h, 2g2g2g and 2f2f2f make later formulas neater. Put x=X+αx = X + \alphax=X+α and y=Y+βy = Y + \betay=Y+β. The terms of the second degree do not change. The new first-degree coefficients and the new constant are

g′=aα+hβ+g,\displaystyle g' = a\alpha + h\beta + g,g′=aα+hβ+g,
f′=hα+bβ+f,\displaystyle f' = h\alpha + b\beta + f,f′=hα+bβ+f,
c′=S(α,β).\displaystyle c' = S(\alpha, \beta).c′=S(α,β).

Removing both first-degree terms. Choose (α,β)(\alpha, \beta)(α,β) with g′=0g' = 0g′=0 and f′=0f' = 0f′=0:

aα+hβ+g=0,\displaystyle a\alpha + h\beta + g = 0,aα+hβ+g=0,
hα+bβ+f=0.\displaystyle h\alpha + b\beta + f = 0.hα+bβ+f=0.

These two lines meet at one point exactly when ab−h2≠0ab - h^2 \ne 0ab−h2=0. That point is the centre of the curve. Ellipses and hyperbolas have a centre; a parabola does not. At the centre the new constant has a short form,

c′=gα+fβ+c,\displaystyle c' = g\alpha + f\beta + c,c′=gα+fβ+c,

because S(α,β)=α g′+β f′+gα+fβ+cS(\alpha, \beta) = \alpha\,g' + \beta\,f' + g\alpha + f\beta + cS(α,β)=αg′+βf′+gα+fβ+c, and g′=f′=0g' = f' = 0g′=f′=0 there.

A worked example

Remove the first-degree terms of 2x2+3y2−8x+18y+29=02x^2 + 3y^2 - 8x + 18y + 29 = 02x2+3y2−8x+18y+29=0.

  1. Read the coefficients. a=2a = 2a=2, h=0h = 0h=0, b=3b = 3b=3, g=−4g = -4g=−4, f=9f = 9f=9, c=29c = 29c=29.
  2. The centre. 2α−4=02\alpha - 4 = 02α−4=0 and 3β+9=03\beta + 9 = 03β+9=0, so (α,β)=(2,−3)(\alpha, \beta) = (2, -3)(α,β)=(2,−3).
  3. The constant. c′=(−4)(2)+9(−3)+29=−6c' = (-4)(2) + 9(-3) + 29 = -6c′=(−4)(2)+9(−3)+29=−6.
  4. The new equation. 2X2+3Y2=62X^2 + 3Y^2 = 62X2+3Y2=6, that is X23+Y22=1\dfrac{X^2}{3} + \dfrac{Y^2}{2} = 13X2​+2Y2​=1. An ellipse with centre (2,−3)(2, -3)(2,−3).
  5. Check by completing squares. 2(x−2)2+3(y+3)2=8+27−29=62(x - 2)^2 + 3(y + 3)^2 = 8 + 27 - 29 = 62(x−2)2+3(y+3)2=8+27−29=6. The same.

A curve with a term in xyxyxy. For xy−2x+3y−10=0xy - 2x + 3y - 10 = 0xy−2x+3y−10=0, h=12h = \tfrac{1}{2}h=21​, g=−1g = -1g=−1, f=32f = \tfrac{3}{2}f=23​, c=−10c = -10c=−10. The centre equations give β=2\beta = 2β=2 and α=−3\alpha = -3α=−3. Then c′=3+3−10=−4c' = 3 + 3 - 10 = -4c′=3+3−10=−4, and the curve is XY=4XY = 4XY=4, a rectangular hyperbola.

Practise with new numbers

Try it in Python

The program takes the six coefficients of a second-degree equation. It finds the centre with exact fractions, then the new constant, in two ways.

Read it first. Then run it. Do the two values of the constant agree?

1. Change the coefficients to those of xy−2x+3y−10=0xy - 2x + 3y - 10 = 0xy−2x+3y−10=0: a, h, b, g, f, c = 0, F(1, 2), 0, -1, F(3, 2), -10. Do you get (−3,2)(-3, 2)(−3,2)?

2. Try y2−4x=0y^2 - 4x = 0y2−4x=0, a parabola: a, h, b, g, f, c = 0, 0, 1, -2, 0, 0. What does the program say, and why?

Common mistakes

  • The sign of the shift. Old = new + shift. The point O′O'O′ itself has new coordinates (0,0)(0, 0)(0,0), so X=x−αX = x - \alphaX=x−α.
  • Forgetting the hβh\betahβ term. With a term in xyxyxy, the shift adds to both first-degree terms.
  • Expecting a centre for a parabola. When ab−h2=0ab - h^2 = 0ab−h2=0 the two centre equations have no single solution.
  • Turning the axes by accident. A shift keeps the directions. Turning is the next lesson.

Remember these

  • x=X+αx = X + \alphax=X+α, y=Y+βy = Y + \betay=Y+β.
  • g′=aα+hβ+gg' = a\alpha + h\beta + gg′=aα+hβ+g and f′=hα+bβ+ff' = h\alpha + b\beta + ff′=hα+bβ+f.
  • At the centre, c′=gα+fβ+cc' = g\alpha + f\beta + cc′=gα+fβ+c.
  • A centre exists exactly when ab−h2≠0ab - h^2 \ne 0ab−h2=0.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. The origin is shifted to (2,−5)(2, -5)(2,−5). What are the new coordinates of the point (−1,3)(-1, 3)(−1,3)?
  1. Shift the origin to (1,−2)(1, -2)(1,−2). What does x2+y2−2x+4y−4=0x^2 + y^2 - 2x + 4y - 4 = 0x2+y2−2x+4y−4=0 become?
  1. Remove the first-degree terms of x2+4y2−2x+16y+13=0x^2 + 4y^2 - 2x + 16y + 13 = 0x2+4y2−2x+16y+13=0.
  1. Shift the origin to the vertex of y2−4y−4x+8=0y^2 - 4y - 4x + 8 = 0y2−4y−4x+8=0. What is the new equation?
  1. A student writes X=x+αX = x + \alphaX=x+α for a shift to (α,β)(\alpha, \beta)(α,β). How can you show quickly that this is wrong?

References

  • S. L. Loney, The Elements of Coordinate Geometry, Part I, the chapter on the transformation of coordinates.

Enroll free in Translation and Rotation of Axes

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A designer draws the outline of an oval window on a wall plan, with lengths in metres…Hard · High School (11–12) · by StemPy Lab
The cross-section of a satellite dish, drawn on a grid in decimetres, is the curve y² - 6y - 8x +…Hard · High School (11–12) · by StemPy Lab
The curve xy - 3x + 2y - 10 = 0 is a hyperbola…Advanced · High School (11–12) · by StemPy Lab
Next: lesson 2Rotating the axes
← Translation and Rotation of Axes
← PreviousRotating the axes →

Discussion (0)

Log in to join the discussion.

Loading…

. Distances, slopes and areas do not change. For the general equation of the second degree, a shift to the centre removes both first-degree terms, and the new constant is
gα+fβ+cg\alpha + f\beta + cgα+fβ+c
. For a parabola only one first-degree term can go.

Python Labs (1)

Shifting the originPython Lab · by StemPy Lab