40% off

Early-bird ends 15 Aug, 9am

Lock in £90

Pythagoras Theorem in Two and Three Dimensions

Updated August 2025

This guide teaches the fundamental relationship between the sides of right angled triangles. Pythagoras Theorem is a staple of the TMUA and ESAT as it underpins coordinate geometry and 3D trigonometry. You will learn to calculate distances in both 2D and 3D and understand how this theorem relates to circles.

Core concept

Pythagoras' theorem states that in a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides: a2+b2=c2a^2 + b^2 = c^2.

The Fundamental Theorem

Pythagoras' theorem is one of the most elegant and essential rules in mathematics. It provides a simple algebraic method to calculate the length of a side in a right angled triangle when the other two sides are known. The theorem states that for any right angled triangle, the square of the longest side, which we call the hypotenuse, is equal to the sum of the squares of the two shorter sides. If we label the shorter sides aa and bb and the hypotenuse cc, we write this as:

a2+b2=c2a^2 + b^2 = c^2

It is important to remember that this rule applies only to triangles containing a 90 degree angle. As we noted in our section on trigonometry, the cosine rule acts as a generalisation of Pythagoras for all triangles, where a correction term is subtracted: a2=b2+c22bccosAa^2 = b^2 + c^2 - 2bc \cos A. In a right angled triangle, the angle AA is 90 degrees, so cos90=0\cos 90 = 0 and the correction term vanishes, leaving us with our standard theorem.

Pythagoras in Two Dimensions

A common application of this theorem is finding the distance between two points on the xyxy plane. If we have two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), we can form a right angled triangle by drawing a horizontal line and a vertical line through the points. The horizontal distance is Δx=x2x1\Delta x = x_2 - x_1 and the vertical distance is Δy=y2y1\Delta y = y_2 - y_1. The distance dd between the points is the hypotenuse, giving:

d2=(x2x1)2+(y2y1)2d^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2

This lead us directly to the coordinate geometry of the circle. Imagine drawing a circle of radius rr on the xyxy plane with its centre at the origin. Every point (x,y)(x, y) on that circle is exactly a distance rr from the origin. Using Pythagoras' theorem, we find that all these points satisfy the equation:

x2+y2=r2x^2 + y^2 = r^2

img-23.jpeg

As an aside, recall that all points inside the circle satisfy x2+y2<r2x^2 + y^2 < r^2, and all points outside the circle satisfy x2+y2>r2x^2 + y^2 > r^2. If the circle is translated so its centre is at (a,b)(a, b), we apply our graph shifting logic to get (xa)2+(yb)2=r2(x - a)^2 + (y - b)^2 = r^2, which is still just Pythagoras' theorem in disguise.

Extending to Three Dimensions

The TMUA and ESAT expect you to use this theorem in three dimensions too. This usually involves finding the distance between two opposite corners of a cuboid, often called the space diagonal. Consider a cuboid with dimensions xx, yy, and zz. To find the diagonal DD that stretches from the bottom left front corner to the top right back corner, we proceed in two steps.

First, we find the diagonal dbased_{base} of the base of the cuboid. This base is a rectangle with sides xx and yy. Applying Pythagoras in 2D gives us dbase2=x2+y2d_{base}^2 = x^2 + y^2.

Second, we notice that this base diagonal, the vertical height zz, and the space diagonal DD form another right angled triangle. The space diagonal DD is the hypotenuse of this new triangle. Therefore, D2=dbase2+z2D^2 = d_{base}^2 + z^2. Substituting our expression for the base diagonal, we get the general 3D formula for the distance from the origin to (x,y,z)(x, y, z):

D2=x2+y2+z2D^2 = x^2 + y^2 + z^2

This elegant result shows that we can find distances in any number of dimensions by simply adding the square of the new dimension's length to our sum.

Worked Example: 3D Cuboid

Example

A cuboid has a base of 3cm by 4cm and a height of 12cm. Find the length of the internal space diagonal.

  1. Calculate the diagonal of the base: dbase2=32+42=9+16=25d_{base}^2 = 3^2 + 4^2 = 9 + 16 = 25. So dbase=5d_{base} = 5cm.

  2. Use this to find the space diagonal DD: D2=dbase2+122=25+144=169D^2 = d_{base}^2 + 12^2 = 25 + 144 = 169.

  3. Take the square root: D=169=13D = \sqrt{169} = 13cm.

Notice that we could have done this in one calculation: D=32+42+122=9+16+144=169=13D = \sqrt{3^2 + 4^2 + 12^2} = \sqrt{9 + 16 + 144} = \sqrt{169} = 13cm.

Finding Hidden Right Angles

In TMUA questions, you may not always be given a cuboid. You might be asked about a pyramid or a cone. In these cases, you must look for the vertical height which is perpendicular to the base. For example, in a square based pyramid with a vertex directly above the centre of the base, you can find the slant height by forming a triangle with the vertical height and half the diagonal of the square base.

Key takeaways

  • Pythagoras' Theorem a2+b2=c2a^2 + b^2 = c^2 only applies to right angled triangles.
  • The hypotenuse is always the longest side and is found opposite the 90 degree angle.
  • The distance dd between two points in 3D is calculated using d2=(Δx)2+(Δy)2+(Δz)2d^2 = (\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2.
  • The theorem is the foundation for the standard equation of a circle: (xa)2+(yb)2=r2(x-a)^2 + (y-b)^2 = r^2.
Tips

When solving 3D problems, sketch the internal right angled triangle separately from the main shape. This helps you visualise which lengths are the legs and which is the hypotenuse.

Cautions

A common error is adding the squares of the sides when you are actually trying to find a shorter side. Always identify the hypotenuse first and ensure it is the side represented by cc in the formula.

Insight

Pythagoras' Theorem is a special case of the Law of Cosines. It is also deeply connected to the concept of the Euclidean metric, which defines distance in the flat space we study at this level of mathematics.

Worked Examples

Example 1
A right circular cylinder is contained within a sphere of radius 5 cm in such a way that the
whole of the circumferences of both ends of the cylinder are in contact with the sphere.

The diagram shows a planar cross section through the centre of the sphere and cylinder.

Exam diagram


[diagram not to scale]

Find, in cubic centimetres, the maximum possible volume of the cylinder.
A:250π250\pi
B:500π500\pi
C:1000π1000\pi
D:25033π\frac{250\sqrt{3}}{3}\pi
E:50039π\frac{500\sqrt{3}}{9}\pi
F:100039π\frac{1000\sqrt{3}}{9}\pi

Practice Questions

Practice Question 1
A rectangle PQRS is drawn inside a circle, with its vertices on the circumference of the circle.

Exam diagram


[diagram not to scale]

The ratio of the length of PQ to the length of QR is 2:1

The area of the rectangle PQRS is 96 cm².

What is the radius, in cm, of the circle?
A:6\sqrt{6}
B:3
C:323\sqrt{2}
D:2152\sqrt{15}
E:464\sqrt{6}
F:12
G:12212\sqrt{2}
H:8158\sqrt{15}

Frequently asked questions

Can Pythagoras be used if the triangle is not right angled?

No, if the triangle does not have a 90 degree angle, you must use the Cosine Rule: a2=b2+c22bccosAa^2 = b^2 + c^2 - 2bc \cos A.

How do you calculate a shorter side instead of the hypotenuse?

You rearrange the formula to a2=c2b2a^2 = c^2 - b^2 or b2=c2a2b^2 = c^2 - a^2, ensuring the hypotenuse is the value you subtract from.

What if I get a negative result when squaring in a 3D distance problem?

Squaring any real number result, such as a difference in coordinates, always results in a positive value. If you have a negative sum, you have likely made a calculation error.

How many times should I apply the theorem in a 3D problem?

Usually, you apply it twice: once to find a 2D diagonal on a face, and a second time to find the 3D distance using that face diagonal and a third perpendicular length.

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.