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. /Reducing a second-degree equation

Course 32.2·Lesson 3 of 3

Reducing a second-degree equation

The general equation ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0ax2+2hxy+by2+2gx+2fy+c=0

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 3 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

  • decide the type of a second-degree curve from its coefficients;
  • reduce an ellipse or a hyperbola to standard form, and a parabola too;
  • recognise a pair of lines and find the angle between them.

Which curve is it?

You are given 5x2+4xy+2y2−18x−12y+15=05x^2 + 4xy + 2y^2 - 18x - 12y + 15 = 05x2+4xy+2y2−18x−12y+15=0. Is it an ellipse? A hyperbola? Two lines? Two numbers decide.

The two tests

For the curve S=0S = 0S=0 with S=ax2+2hxy+by2+2gx+2fy+cS = ax^2 + 2hxy + by^2 + 2gx + 2fy + cS=ax2+2hxy+by2+2gx+2fy+c, form the determinant

Δ=∣ahghbfgfc∣.\displaystyle \Delta = \begin{vmatrix} a & h & g \\ h & b & f \\ g & f & c \end{vmatrix}.Δ=​ahg​hbf​gfc​​.

Expanded, it is

Δ=abc+2fgh\displaystyle \Delta = abc + 2fghΔ=abc+2fgh
−af2−bg2−ch2.\displaystyle \qquad - af^2 - bg^2 - ch^2.−af2−bg2−ch2.
  1. Δ=0\Delta = 0Δ=0: a pair of straight lines. They may cross, be parallel or be the same line, or have no real points.
  2. Δ≠0\Delta \ne 0Δ=0 and h2<abh^2 < abh2<ab: an ellipse. It is a circle when a=ba = ba=b and h=0h = 0h=0. It may have no real points.
  3. Δ≠0\Delta \ne 0Δ=0 and h2=abh^2 = abh2=ab: a parabola.
  4. Δ≠0\Delta \ne 0Δ=0 and h2>abh^2 > abh2>ab: a hyperbola. It is a rectangular hyperbola when a+b=0a + b = 0a+b=0.

Why h2−abh^2 - abh2−ab? Turn the axes to remove the term in xyxyxy. Then a′b′=ab−h2a'b' = ab - h^2a′b′=ab−h2. If a′a'a′ and b′b'b′ have the same sign, the curve closes up: an ellipse. Opposite signs give a hyperbola. If one of them is 000, the curve is a parabola.

A blue ellipse whose axes are slanted. Its centre is at (1, 2). Its own major and minor axes are drawn as red and green dashed lines through the centre, turned from the grid directions. The caption gives the equation 5x squared + 4xy + 2y squared - 18x - 12y + 15 = 0 and, in the turned axes, 6X squared + Y squared = 6.

Reducing an ellipse or a hyperbola

  1. Shift to the centre. Solve aα+hβ+g=0a\alpha + h\beta + g = 0aα+hβ+g=0 and hα+bβ+f=0h\alpha + b\beta + f = 0hα+bβ+f=0, and find c′=gα+fβ+cc' = g\alpha + f\beta + cc′=gα+fβ+c.
  2. Turn the axes. Use tan⁡2θ=2ha−b\tan 2\theta = \dfrac{2h}{a - b}tan2θ=a−b2h​ and the invariants to find a′a'a′ and b′b'b′.
  3. Write the standard form. a′X2+b′Y2+c′=0a'X^2 + b'Y^2 + c' = 0a′X2+b′Y2+c′=0.

Worked example. Reduce 5x2+4xy+2y2−18x−12y+15=05x^2 + 4xy + 2y^2 - 18x - 12y + 15 = 05x2+4xy+2y2−18x−12y+15=0. Here a=5a = 5a=5, h=2h = 2h=2, b=2b = 2b=2, g=−9g = -9g=−9, f=−6f = -6f=−6, c=15c = 15c=15.

  1. The type. h2−ab=4−10<0h^2 - ab = 4 - 10 < 0h2−ab=4−10<0, so it is an ellipse if Δ≠0\Delta \ne 0Δ=0.
  2. The centre. 5α+2β=95\alpha + 2\beta = 95α+2β=9 and 2α+2β=62\alpha + 2\beta = 62α+2β=6 give α=1\alpha = 1α=1, β=2\beta = 2β=2.
  3. The constant. c′=(−9)(1)+(−6)(2)+15=−6c' = (-9)(1) + (-6)(2) + 15 = -6c′=(−9)(1)+(−6)(2)+15=−6. So 5X2+4XY+2Y2=65X^2 + 4XY + 2Y^2 = 65X2+4XY+2Y2=6.
  4. Turn the axes. This is the curve of the last lesson: it becomes 6X′2+Y′2=66X'^2 + Y'^2 = 66X′2+Y′2=6.
  5. Read it. An ellipse with centre (1,2)(1, 2)(1,2), semi-axes 111 and 6\sqrt{6}6​, and area π6\pi\sqrt{6}π6​.

Reducing a parabola

For a parabola h2=abh^2 = abh2=ab, so the terms of the second degree form a perfect square. Turn the axes first, so that this square becomes a single square. Then complete the square.

Worked example. x2−2xy+y2−8x−8y=0x^2 - 2xy + y^2 - 8x - 8y = 0x2−2xy+y2−8x−8y=0. Here x2−2xy+y2=(x−y)2x^2 - 2xy + y^2 = (x - y)^2x2−2xy+y2=(x−y)2.

  1. Turn through 45∘45^\circ45∘. Then x−y=−2 Yx - y = -\sqrt{2}\,Yx−y=−2​Y and x+y=2 Xx + y = \sqrt{2}\,Xx+y=2​X.
  2. Substitute. 2Y2−82 X=02Y^2 - 8\sqrt{2}\,X = 02Y2−82​X=0, that is Y2=42 XY^2 = 4\sqrt{2}\,XY2=42​X.
  3. Read it. A parabola with its vertex at the origin and its axis along the line y=xy = xy=x. Its latus rectum is 424\sqrt{2}42​.

A pair of lines

Worked example. 2x2+xy−y2+5x+2y+3=02x^2 + xy - y^2 + 5x + 2y + 3 = 02x2+xy−y2+5x+2y+3=0. With a=2a = 2a=2, h=12h = \tfrac{1}{2}h=21​, b=−1b = -1b=−1, g=52g = \tfrac{5}{2}g=25​, f=1f = 1f=1, c=3c = 3c=3, the determinant is Δ=−6+2.5−2+6.25−0.75=0\Delta = -6 + 2.5 - 2 + 6.25 - 0.75 = 0Δ=−6+2.5−2+6.25−0.75=0. So the curve is a pair of lines: (2x−y+3)(x+y+1)=0(2x - y + 3)(x + y + 1) = 0(2x−y+3)(x+y+1)=0.

The angle between the lines of ax2+2hxy+by2+⋯=0ax^2 + 2hxy + by^2 + \dots = 0ax2+2hxy+by2+⋯=0 is given by

tan⁡φ=2h2−ab∣a+b∣.\displaystyle \tan\varphi = \dfrac{2\sqrt{h^2 - ab}}{|a + b|}.tanφ=∣a+b∣2h2−ab​​.

Here tan⁡φ=20.25+21=3\tan\varphi = \dfrac{2\sqrt{0.25 + 2}}{1} = 3tanφ=120.25+2​​=3. The lines are perpendicular when a+b=0a + b = 0a+b=0.

Practise with new numbers

Try it in Python

The program names a second-degree curve from its six coefficients, with exact fractions. It works through a list of examples.

Read it first. Then run it. Do the names match the worked examples?

1. Add the curve x2+y2+2x+4y+9=0x^2 + y^2 + 2x + 4y + 9 = 0x2+y2+2x+4y+9=0 to the list. The program calls it an ellipse. Is it really one?

2. Change the last number of the last example from -10 to -6. What does the program say now? Factor xy−2x+3y−6xy - 2x + 3y - 6xy−2x+3y−6 to see why.

Common mistakes

  • Forgetting Δ\DeltaΔ. h2<abh^2 < abh2<ab alone does not make an ellipse: a pair of lines can also have h2≤abh^2 \le abh2≤ab.
  • Using the whole coefficient of xyxyxy as hhh. The coefficient is 2h2h2h.
  • Reducing a parabola in the wrong order. It has no centre, so turn first.
  • An empty curve. x2+y2+1=0x^2 + y^2 + 1 = 0x2+y2+1=0 passes the ellipse test but has no real points.

Remember these

  • Δ=abc+2fgh−af2−bg2−ch2\Delta = abc + 2fgh - af^2 - bg^2 - ch^2Δ=abc+2fgh−af2−bg2−ch2; Δ=0\Delta = 0Δ=0 means a pair of lines.
  • h2<abh^2 < abh2<ab ellipse, h2=abh^2 = abh2=ab parabola, h2>abh^2 > abh2>ab hyperbola.
  • Central conic: shift, then turn. Parabola: turn, then complete the square.
  • Pair of lines: tan⁡φ=2h2−ab∣a+b∣\tan\varphi = \dfrac{2\sqrt{h^2 - ab}}{|a + b|}tanφ=∣a+b∣2h2−ab​​.

Check yourself

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

  1. Name the curve x2+6xy+9y2+4x=0x^2 + 6xy + 9y^2 + 4x = 0x2+6xy+9y2+4x=0.
  1. Name the curve 3x2−5xy−2y2=03x^2 - 5xy - 2y^2 = 03x2−5xy−2y2=0.
  1. What does a+b=0a + b = 0a+b=0 tell you about a hyperbola ax2+2hxy+by2+⋯=0ax^2 + 2hxy + by^2 + \dots = 0ax2+2hxy+by2+⋯=0?
  1. Find the centre of x2−3xy+y2+10x−10y+21=0x^2 - 3xy + y^2 + 10x - 10y + 21 = 0x2−3xy+y2+10x−10y+21=0.
  1. A student says that x2+y2+2x+4y+9=0x^2 + y^2 + 2x + 4y + 9 = 0x2+y2+2x+4y+9=0 is a circle. Check it.

References

  • S. L. Loney, The Elements of Coordinate Geometry, Part I, the chapter on the general equation of the second degree.

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 (4)

The curve 3x² + 2xy + 3y² - 2x + 10y + 3 = 0 is drawn on a grid in cm…Hard · High School (11–12) · by StemPy Lab
A curve is given by 9x² - 24xy + 16y²; - 10x - 70y + 75 = 0.; Show that it is a parabola…Advanced · High School (11–12) · by StemPy Lab
The equation 2x² - 3xy - 2y² + 2x + 11y - 12 = 0; is given…Hard · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Translation and Rotation of Axes
← Rotating the axesNext →

Discussion (0)

Log in to join the discussion.

Loading…

is a pair of lines when
Δ=abc+2fgh−af2−bg2−ch2=0\Delta = abc + 2fgh - af^2 - bg^2 - ch^2 = 0Δ=abc+2fgh−af2−bg2−ch2=0
. Otherwise it is an ellipse when
h2<abh^2 < abh2<ab
, a parabola when
h2=abh^2 = abh2=ab
and a hyperbola when
h2>abh^2 > abh2>ab
. To reduce a central conic, shift the origin to the centre and then turn the axes. For a parabola, turn the axes first and then complete the square.
For which value of k does the equation x² + 4xy + y² + 2x + 2y + k = 0; represent a pair of…Advanced · High School (11–12) · by StemPy Lab

Question Sets (1)

Moving the Axes: Concept Check10 questions · by StemPy Lab

Notes (1)

Moving the Axes: Quick RevisionNote · by StemPy Lab