Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Algebra0/7
  • Coordinate geometry0/7
  • Vectors and the dot product0/7
  • Trigonometry0/7
  • Sigma and series0/7
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
(x,y)(x,y)(x,y)Maths, module 6: Coordinate geometry, lesson 2 of 7

The distance formula

Pythagoras on the grid gives the distance between any two points. Use it to test triangles, circles and collinear points.

10 minute read2 things to try5 questionsFree

Join A(1,2)A(1, 2)A(1,2) and B(7,10)B(7, 10)B(7,10). Draw the right triangle underneath: across 7−1=67 - 1 = 67−1=6, up 10−2=810 - 2 = 810−2=8. By Pythagoras the slanted side is 62+82=100=10\sqrt{6^2 + 8^2} = \sqrt{100} = 1062+82​=100​=10.

That works for any two points:

AB=(x2−x1)2+(y2−y1)2AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}AB=(x2​−x1​)2+(y2​−y1​)2​

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 5 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • AB=(x2−x1)2+(y2−y1)2AB = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}AB=(x2​−x1​)2+(y2​−y1​)2​: Pythagoras on the grid.
  • Compare side lengths to name a triangle; test c2=a2+b2c^2 = a^2 + b^2c2=a2+b2 for a right angle.
  • AB+BC=ACAB + BC = ACAB+BC=AC means BBB is on the line between.

More in Coordinate geometry

  1. 1The coordinate plane
  2. 2The distance formula
  3. 3Midpoint and section formula
  4. 4Slope and the angle of a line
  5. 5Equations of a line
  6. 6Two lines together
  7. 7Areas and circles on the grid