Distance Formula - Examples and Diagrams (2024)

In Euclidean geometry, the distance formula is used to find the distance between two points on a coordinate plane. If the points are on the same vertical or horizontal line, the distance between the points is calculated by subtracting their coordinates, which is given by the distance formula.

It is derived from the Pythagorean theorem, which is commonly used to find the distance between two points in a 2-dimensional (2-D) plane.

Formula

The distance between the points A (x1, y1) and B (x2, y2) is given by the euclidean distance formula as:

${d=\sqrt{\left( x_{2}-x_{1}\right) ^{2}+\left( y_{2}-y_{1}\right) ^{2}}}$

Derivation

It is derived from the Pythagorean theorem as follows:

Let us plot the points A (x1, y1) and B (x2, y2) on the coordinate plane.

The length between the points ‘A’ and ‘B’ is the distance between them (say ‘d’). By joining the points ‘A’ and ‘B,’ we get a line segment AB.

Now, to find the distance ‘d,’ we will calculate the hypotenuse AB in the triangle ABC.

From the above graph, the length of AC and BC is written as:

AC = (x2 – x1) and BC = (y2 – y1)

Now, using the Pythagoras theorem to calculate the length AB, we get

AB2 = AC2 + BC2

⇒ d2 = (x2 – x1)2 + (y2 – y1)2

Taking the square root of both sides,

${d=\sqrt{\left( x_{2}-x_{1}\right) ^{2}+\left( y_{2}-y_{1}\right) ^{2}}}$, the formula of the distance between two points.

Now, let us find the distance between two points A (3, 5) and B (7, 8)

Here,

x1 = 3,

y1 = 5,

x2 = 7, and

y2 = 8

Thus, the distance = ${d=\sqrt{\left( x_{2}-x_{1}\right) ^{2}+\left( y_{2}-y_{1}\right) ^{2}}}$

= ${\sqrt{\left( 7-3\right) ^{2}+\left( 8-5\right) ^{2}}}$

= ${\sqrt{\left( 4\right) ^{2}+\left( 3\right) ^{2}}}$

= ${\sqrt{16+9}}$

= ${\sqrt{25}}$

= 5 units

Thus, the distance between two points A (3, 5) and B (7, 8) is 5 units.

Distance Formula - Examples and Diagrams (4)Find the distance between the two points P(-10, 15) and Q (5, 5)

Solution:

Distance Formula - Examples and Diagrams (5)

Thus, the distance between two points P (-10, 15) and Q (5, 5) is ${\sqrt{325}}$ units.

Distance Formula - Examples and Diagrams (6)Find the distance between two points ‘A’ and ‘B’ in the given figure.

Solution:

Distance Formula - Examples and Diagrams (7)


Thus, the distance between two points ‘A’ and ‘B’ is ${\sqrt{52}}$ units.

Distance between Two Points in a 3D Plane

Apart from calculating the distance between two points in a 2-D plane, the distance formula is also used to calculate their distance in a three-dimensional (3-D) plane. If we consider two points A (x1, y1, z1) and B (x2, y2, z2) in a three-dimensional plane, then the distance between the points is given by:

${d=\sqrt{\left( x_{2}-x_{1}\right) ^{2}+\left( y_{2}-y_{1}\right) ^{2}+\left( z_{2}-z_{1}\right) ^{2}}}$

Distance From a Point To a Line

While calculating the distance from a point to a line in 2D and 3D planes, we use the following formulas:

In a 2D Plane

The distance ‘d’ from the point P (x1, y1) to the line ‘L’ (with the equation ax + by + c = 0) is given by

${d=\dfrac{\left| ax_{1}+by_{1}+c\right| }{\sqrt{a^{2}+b^{2}}}}$

In a 3D Plane

If the point is P (x0, y0, z0) and the line ‘L’ in 3D has the equation ${\dfrac{x-x_{1}}{a}=\dfrac{y-y_{1}}{b}=\dfrac{z-z_{1}}{c}}$, then the distance ‘d’ from the point ‘P’ to the line ‘L’ is given by

${d=\dfrac{\left| \overrightarrow{PQ}\times \overrightarrow{s}\right| }{\left| \overrightarrow{s}\right| }}$

Here,

Q (x1, y1, z1) is a point on the line ‘L’

${\overrightarrow{PQ}}$ = the vector from the point P to Q with the coordinates (x1 – x0, y1 – y0, z1 – z0)

${\overrightarrow{s}}$ = ${\langle a,b,c\rangle}$ is the direction vector of the line

${\overrightarrow{PQ}\times \overrightarrow{s}}$ is the cross product of the vectors ${\overrightarrow{PQ}}$ and ${\overrightarrow{s}}$

Distance Between Two Lines

While calculating the distance between two lines in 2D and 3D spaces, we use the following formulas:

Two Parallel Lines in a 2D Plane

If we consider two lines L1: ax + by + c1 = 0 and L2: ax + by + c2 = 0, then the distance ‘d’ between the lines ‘L1’ and ‘L2’ is given by the formula:

${d=\dfrac{\left| c_{2}-c_{1}\right| }{\sqrt{a^{2}+b^{2}}}}$

Two Skewed Lines in a 3D Plane

Two lines are called skew lines in a three-dimensional plane if they are non-parallel and non-intersecting. Depending on whether they are in the cartesian or vector form, the shortest distance between them can be calculated using one of the following formulas.

In Cartesian Form

The distance between two lines given as L1: ${\dfrac{x-x_{1}}{a_{1}}=\dfrac{y-y_{1}}{b_{1}}=\dfrac{z-z_{1}}{c_{1}}}$ and L2: ${\dfrac{x-x_{2}}{a_{2}}=\dfrac{y-y_{2}}{b_{2}}=\dfrac{z-z_{2}}{c_{2}}}$ is: ${d=\left| \dfrac{\begin{vmatrix} x_{2}-x_{1} & y_{2}-y_{1} & z_{2}-z_{1} \\ a_{1} & b_{1} & c_{1} \\ a_{2} & b_{2} & c_{2} \end{vmatrix}}{\left[ \left( b_{1}c_{2}-b_{2}c_{1}\right) ^{2}+\left( c_{1}a_{2}-a_{1}c_{2}\right) ^{2}+\left( a_{1}b_{2}-b_{1}a_{2}\right) ^{2} \right] ^\dfrac{1}{2}}\right|}$

In Vector Form

The distance between two lines given as L1: r1 = a1 + tb1 and L2: r2 = a2 + tb2 is: ${d=\dfrac{\left| \left( \overrightarrow{a}_{2}-\overrightarrow{a}_{1}\right) \cdot \left( \overrightarrow{b}_{1}\times \overrightarrow{b}_{2}\right) \right| }{\left| \overrightarrow{b}_{1}\times \overrightarrow{b}_{2}\right| }}$

Distance from a Point to a Plane

The distance ‘d’ from a point P (x1, y1, z1) to a plane px + qy + rz + s = 0 is given by:

${d=\dfrac{\left| px_{1}+qy_{1}+rz_{1}+s\right| }{\sqrt{p^{2}+q^{2}+r^{2}}}}$

Distance between Two Parallel Planes

If the equations of two parallel planes are px + qy + rz + s1 = 0 and px + qy + rz + s2 = 0, then the distance ‘d’ between the two parallel planes is calculated by the formula:

${d=\dfrac{\left| s_{2}-s_{1}\right| }{\sqrt{p^{2}+q^{2}+r^{2}}}}$

Distance between Two Points in Polar Coordinates

If ‘O’ is the pole and OX is the initial line, then for two given points P (r1, θ1) and Q (r2, θ2), the distance between two points formula is given by

${PQ=\sqrt{r_{1}^{2}+r_{2}^{2}-2r_{1}r_{2}\cos \left( \theta _{1}-\theta _{2}\right) }}$

Here is the list of the different forms of the distance formula we learned:

………………………………………………………………..

Between Two Points in Polar Coordinates

Distance Formula - Examples and Diagrams (2024)

FAQs

What is the distance formula and answer? ›

Learn how to find the distance between two points by using the distance formula, which is an application of the Pythagorean theorem. We can rewrite the Pythagorean theorem as d=√((x_2-x_1)²+(y_2-y_1)²) to find the distance between any two points. Created by Sal Khan and CK-12 Foundation.

What is the formula of distance with example? ›

Distance between two points is the length of the line segment that connects the two points in a plane. The formula to find the distance between the two points is usually given by d=√((x2 – x1)² + (y2 – y1)²). This formula is used to find the distance between any two points on a coordinate plane or x-y plane.

What is the distance formula for Grade 10? ›

Distance Formula to find distance between two points (x1,y1) and (x2,y2) is D = √[(x2 – x1)2 + (y2 – y1)2 ]. The distance formula to find the distance of a point P(x, y) from the origin O(0,0) is D = √((x2 + y2).

What is an example of distance? ›

If a car travels 100 meters north and then turns right and travels another 300 meters east, then the total distance that the car traveled can be found simply by adding the two segments of length traveled together. In this example, the total distance the car traveled is 400 meters.

How do I calculate distance? ›

How do you calculate distance traveled? You calculate distance traveled by using the formula d=rt. You will need to know the rate at which you are traveling and the total time you traveled. You can then multiply these two numbers together to determine the distance traveled.

What is the shortest distance formula math? ›

The Distance Formula. The shortest distance between two points is a straight line. This distance can be calculated by using the distance formula. The distance between two points ( x 1 , y 1 ) and ( x 2 , y 2 ) can be defined as d = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 .

What are the three formulas of distance? ›

Most distance problems can be solved with the equations d = savg × t where d is distance, savg is average speed, and t is time, or using d = √((x2 - x1)2 + (y2 - y1)2), where (x1, y1) and (x2, y2) are the x and y coordinates of two points.

What is the distance formula in maths simple? ›

distance = speed × time. time = distance ÷ speed.

What is the distance formula for Grade 9? ›

The distance between coordinate P(x1 , y1) and coordinate Q(x2 , y2) is calculated using the distance formula: d = √[(x2 - x1)2 + (y2 - y1)2] The distance of a point P(x, y) from the origin is given by √(x2 + y2)

What is the formula for total distance? ›

You can use the formula distance = speed x time to calculate the distance travelled.

What formula do you use for distance? ›

The formula is d = √((x2 – x1)2 + (y2 – y1)2), where: d is the distance between the two points and. (x1, y1) and (x2, y2) are the coordinates.

What is the formula for following distance? ›

You arrive at this number by calculating one second for each 10 feet of vehicle length plus an additional second for safety, a total of seven seconds. For a typical car, we can replace calculations with a good rule of thumb: allow at least 3 seconds between you and the car in front of you.

What is distance with answer? ›

Distance is the total movement of an object without any regard to direction. We can define distance as to how much ground an object has covered despite its starting or ending point.

Top Articles
EARNINGS REPORT - latibex.com - [PDF Document]
AFK Journey Primal Lord Crystal Beetle - Best Formations
Spasa Parish
The Machine 2023 Showtimes Near Habersham Hills Cinemas
Gilbert Public Schools Infinite Campus
Rentals for rent in Maastricht
159R Bus Schedule Pdf
11 Best Sites Like The Chive For Funny Pictures and Memes
Officially Announcing: Skyward
Momokun Leaked Controversy - Champion Magazine - Online Magazine
Maine Coon Craigslist
How Nora Fatehi Became A Dancing Sensation In Bollywood 
‘An affront to the memories of British sailors’: the lies that sank Hollywood’s sub thriller U-571
Haverhill, MA Obituaries | Driscoll Funeral Home and Cremation Service
Rogers Breece Obituaries
Ella And David Steve Strange
Ems Isd Skyward Family Access
Elektrische Arbeit W (Kilowattstunden kWh Strompreis Berechnen Berechnung)
Omni Id Portal Waconia
Banned in NYC: Airbnb One Year Later
Four-Legged Friday: Meet Tuscaloosa's Adoptable All-Stars Cub & Pickle
Patriot Ledger Obits Today
Harvestella Sprinkler Lvl 2
Storm Prediction Center Convective Outlook
Experience the Convenience of Po Box 790010 St Louis Mo
modelo julia - PLAYBOARD
Poker News Views Gossip
Abby's Caribbean Cafe
Joanna Gaines Reveals Who Bought the 'Fixer Upper' Lake House and Her Favorite Features of the Milestone Project
Pull And Pay Middletown Ohio
Navy Qrs Supervisor Answers
Trade Chart Dave Richard
Sweeterthanolives
How to get tink dissipator coil? - Dish De
Lincoln Financial Field Section 110
1084 Sadie Ridge Road, Clermont, FL 34715 - MLS# O6240905 - Coldwell Banker
Kino am Raschplatz - Vorschau
Classic Buttermilk Pancakes
Pick N Pull Near Me [Locator Map + Guide + FAQ]
'I want to be the oldest Miss Universe winner - at 31'
Gun Mayhem Watchdocumentaries
Ice Hockey Dboard
Infinity Pool Showtimes Near Maya Cinemas Bakersfield
Dermpathdiagnostics Com Pay Invoice
A look back at the history of the Capital One Tower
Alvin Isd Ixl
Maria Butina Bikini
Busted Newspaper Zapata Tx
Rubrankings Austin
2045 Union Ave SE, Grand Rapids, MI 49507 | Estately 🧡 | MLS# 24048395
Upgrading Fedora Linux to a New Release
Latest Posts
Article information

Author: Fr. Dewey Fisher

Last Updated:

Views: 6164

Rating: 4.1 / 5 (42 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Fr. Dewey Fisher

Birthday: 1993-03-26

Address: 917 Hyun Views, Rogahnmouth, KY 91013-8827

Phone: +5938540192553

Job: Administration Developer

Hobby: Embroidery, Horseback riding, Juggling, Urban exploration, Skiing, Cycling, Handball

Introduction: My name is Fr. Dewey Fisher, I am a powerful, open, faithful, combative, spotless, faithful, fair person who loves writing and wants to share my knowledge and understanding with you.