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



K

krishnao7iz

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

What is the formula for distance in speed? ›

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 the function to compute the distance between two given points? ›

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.

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.

What is the best way 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.

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.

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 .

How do you find the distance solution? ›

Simply use the formula d = √((x2 - x1)2 + (y2 - y1)2). In this formula, you subtract the two x coordinates, square the result, subtract the y coordinates, square the result, then add the two intermediate results together and take the square root to find the distance between your two points.

Top Articles
Latest Posts
Article information

Author: Allyn Kozey

Last Updated:

Views: 6522

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Allyn Kozey

Birthday: 1993-12-21

Address: Suite 454 40343 Larson Union, Port Melia, TX 16164

Phone: +2456904400762

Job: Investor Administrator

Hobby: Sketching, Puzzles, Pet, Mountaineering, Skydiving, Dowsing, Sports

Introduction: My name is Allyn Kozey, I am a outstanding, colorful, adventurous, encouraging, zealous, tender, helpful person who loves writing and wants to share my knowledge and understanding with you.