Practice Problem on Distance Formula - GeeksforGeeks (2024)

Distance Formula is an important concept in coordinate geometry to find distance between two points or a point and a line or between two lines. This article will explain concepts related to Distance Formula and presents solved and unsolved questions based on them. These questions are essential for students for better clarity and excel in their exam

Important Concepts Related to Distance Formula

Following are some important concepts related to distance formula

Distance between two points (x1, y1) and (x2, y2) is

  • d = √(x2 – x1)2 + (y2 – y1)2

Midpoint Formula:

  • Midpoint = ((x1 + x2)/2 , (y1 + y2)/2)

Distance between a point and a line:

The distance between a point (x0, y0) and a line Ax + By + C = 0 is:

  • Distance= ∣Ax0 + By0 + C∣/√A2 + B2

Distance between parallel lines:

If two lines have equations Ax + By + C1 = 0 and Ax + By + C2 = 0, then the distance between them is:

  • Distance= ∣C1 − C2∣/√A2 + B2

Practice Questions on Distance Formula with Solution

Example 1. Given two points A(3, 4) and B(7, 9), find the distance between them.

Solution:

To find the distance between two points A(3, 4) and B(7, 9), we use the distance formula:

d = √(7 – 3)2 + (9 – 4)2

= √16+25

= √41

So, the distance between two points A(3, 4) and B(7, 9) is √41.

Example 2. Find the midpoint of the line segment joining the points P(2, 5) and Q(8, -3).

Solution:

The midpoint of a line segment PQ with endpoints P(x₁, y₁) and Q(x₂, y₂) is given by the midpoint formula:

Midpoint = (x1 + x2)/2 , (y1 + y2)/2

= (2 + 8)/2, (5 + (-3))/2

= 5, 1

So, the midpoint of the line segment joining the points P(2, 5) and Q(8, -3) is (5, 1).

Example 3. Determine the distance between the point (4, -1) and the line 3x + 4y – 7 = 0.

Solution:

The distance between a point (x₀, y₀) and a line Ax + By + C = 0 is given by:

distance = ∣Ax0 +By0 + C∣/√A2 + B2

= ∣3(4) + 4(−1) − 7∣/√32 + 42

= ∣12−4−7∣ / √9 + 16

= ∣1∣ / √25

= 1/5

So, the distance between the point (4, -1) and the line 3x + 4y – 7 = 0 is 1/5.

Example 4. What is the distance between the point (-1, 6) and the line 2x – 3y + 5 = 0?

Solution:

The distance between a point (x₀, y₀) and a line Ax + By + C = 0 is given by:

distance = ∣Ax0 +By0 + C∣/√A2 + B2

= ∣2(−1) −3(6) + 5∣/√22 + (-3)2

= ∣−2 − 18 + 5∣ / √4 + 9

= ∣−15∣ / √13

= 15/√13

So, the distance between the point (-1, 6) and the line 3x + 4y – 7 = 0 is 15/√13.

Example 5. Find the distance between the parallel lines 2x + 3y – 4 = 0 and 2x + 3y + 6 = 0.

Solution:

To find the distance between the parallel lines 2x + 3y − 4 = 0 and 2x + 3y + 6 = 0, we use the formula:

distance = ∣C2 − C1∣/√A2 + B2

Plugging in the values, we get:

distance = ∣6 − (−4)∣/√22 + 32

​= ∣10∣/√13

= 10/√13

So, the distance between the two parallel lines is 10/√13.

Example 6. Calculate the distance between the parallel lines 4x – 3y – 9 = 0 and 4x – 3y + 7 = 0.

Solution:

To find the distance between the parallel lines 4x – 3y − 9 = 0 and 4x + 3y + 7 = 0, we use the formula:

distance = ∣C2 − C1∣/√A2 + B2

Plugging in the values, we get:

distance = ∣7 − (-9)∣/√42+ 32

​= ∣16∣/√25

= 16/5

So, the distance between the two parallel lines is 16/5.

Example 7. If A(-2, 1) and B(3, -4) are two points, find the distance between them.

Solution:

To find the distance between two points A(-2, 1) and B(3, -4), we use the distance formula:

d = √(3 – (-2))2 + (-4 – 1)2

= √25 + 25

= 5√2

So, the distance between two points A(-2, 1) and B(3, -4) is 5√2.

Example 8. Determine the midpoint of the line segment joining the points C(5, -2) and D(-3, 7).

Solution:

The midpoint of a line segment PQ with endpoints P(x₁, y₁) and Q(x₂, y₂) is given by the midpoint formula:

Midpoint = (x1 + x2)/2 , (y1 + y2)/2

= (5 + (-3))/2, (-2 + 7)/2

= 2, 5

So, the midpoint of the line segment joining the points P(5, -2) and Q(-3, 7) is (2, 5).

Example 9. What is the distance between the point (1, 3) and the line 5x – 2y + 8 = 0?

Solution:

The distance between a point (x₀, y₀) and a line Ax + By + C = 0 is given by:

distance = ∣Ax0 +By0 + C∣/√A2 + B2

= ∣5(1) − 2(3) + 8∣/√52 + (-2)2

= ∣5 − 6 + 8∣ / √25 + 4

= ∣7∣ / √29

= 7/√29

So, the distance between the point (4, -1) and the line 3x + 4y – 7 = 0 is 7/√29.

Example 10. Find the distance between the parallel lines 3x – 4y + 6 = 0 and 3x – 4y – 2 = 0.

Solution:

To find the distance between the parallel lines 3x – 4y + 6 = 0 and 3x – 4y – 2 = 0, we use the formula:

distance = ∣C2 − C1∣/√A2 + B2

Plugging in the values, we get:

distance = ∣-2 − (6)∣/√32 + 42

​= ∣-8∣/√25

= 8/5

So, the distance between the two parallel lines is 8/5.

Practice Problem on Distance Formula

Q1. Find the distance between the points (3, 4) and (-1, 2).

Q2. Determine the midpoint of the line segment with endpoints (5, -3) and (-7, 8).

Q3. Calculate the distance between the point (2, -1) and the line 3x + 4y – 5 = 0.

Q4. Find the distance between the parallel lines 2x + 3y – 7 = 0 and 2x + 3y + 9 = 0.

Q5. Determine the distance between the points (-2, 5) and (1, -3).

Q6. Calculate the midpoint of the line segment with endpoints (-4, 6) and (8, -2).

Q7. Find the distance between the point (3, 7) and the line 4x – 2y + 10 = 0.

Q8. Determine the distance between the parallel lines 3x + 2y – 6 = 0 and 3x + 2y + 12 = 0.

Q9. Calculate the distance between the points (0, -1) and (5, 4).

Q10. Find the midpoint of the line segment with endpoints (-3, 2) and (7, -6).

FAQs on Practice Problem on Distance Formula

Does distance have a negative value?

No, distance does not have a negative value. It’s value is always positive or zero.

Why do we need to use Distance Formula?

We need to use Distance Formula to measure the distance between two points.

Can we calculate speed with the help of Distance?

Yes, we can calculate speed with the help of Distance by applying the following formula, Speed = Distance/Time

What is the SI unit used for distance?

The SI unit used for distance is metre (m).



Practice Problem on Distance Formula - GeeksforGeeks (1)

Anonymous

Improve

Previous Article

QA - Placement Quizzes | Time Speed Distance | Question 16

Next Article

How to Teach Multiplication to Kids

Please Login to comment...

Practice Problem on Distance Formula - GeeksforGeeks (2024)

FAQs

How to prove distance formula? ›

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.

How do you calculate distance formula? ›

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

What is the real life application of distance formula? ›

It is used in navigation. The pilot of a plane calculates the distance between their plane and the other plane using the distance formula. They find the coordinate of the plane and then apply the distance formula to get the distance.

What is an example of a simple distance formula? ›

Distance Examples

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.

What is the distance formula rule? ›

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)²).

What is the correct equation to calculate distance? ›

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 are the three formulas of distance? ›

The three formulas which show the relationship among distance, time, and speed are: distance = (speed)(time), speed = distance/time, and time = distance/speed.

What is the distance formula summary? ›

Using the coordinates given on any two axes, subtract the x values and square it; then subtract the y values and square it. Add the x and y values, then take the square root. That will be the distance between the two points.

What are three ways to measure distance? ›

MEASURING DISTANCES

The principal methods of measuring distance are the (1) pacing. (2) odometer. (3) taping or "chaining." (4) stadia.

What is the alternative formula for distance? ›

One alternative is the Manhattan metric, also called the taxicab metric. For it we have d(x,y)=∑i|xi−yi| with the motivation that if you are traveling in a city laid out in blocks the distance from one point to another is the number of blocks north/south plus the number of blocks east/west.

What is the famous distance formula? ›

In two- and three-dimensional Euclidean space, the distance formulas for points in rectangular coordinates are based on the Pythagorean theorem. The distance between the points (a,b) and (c,d) is given by Square root of√(a − c)2 + (b − d)2.

How do you know when to use the distance formula? ›

The distance formula is used to find the distance between any two points on the coordinate plane. The distance formula is a variation of the Pythagorean Theorem.

What jobs use distance formula? ›

Various real life applications of distance formula observed in the real life includes:
  • Navigation and GPS Systems.
  • Surveying and Cartography.
  • Physics and Engineering.
  • Network Analysis and Optimization.
  • Urban Planning and Traffic Management.
  • Robotics and Automation.
May 6, 2024

How do you solve distance math problems? ›

When solving these problems, use the relationship rate (speed or velocity) times time equals distance. For example, suppose a person were to travel 30 km/h for 4 h. To find the total distance, multiply rate times time or (30km/h)(4h) = 120 km.

How do you solve for distance? ›

One way is to use the rate of what you are calculating and multiply it by the time it takes. This distance formula is written as d = r t . The other way to calculate distance is to use the coordinate plane. This distance equation is written as d = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 .

What is the formula for work solved for distance? ›

Work: Work is the energy exerted by an object as it applies a force to move another object over some distance. For a given amount of force, F, and a given distance, d, the work done on an object is given by the formula W = F ⋅ d .

Top Articles
Latest Posts
Article information

Author: Fr. Dewey Fisher

Last Updated:

Views: 6475

Rating: 4.1 / 5 (62 voted)

Reviews: 93% 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.