Q.Find the distance between the points P(1,−3,4) and Q(−4,1,2).
Concept understanding — Distance From Point To Line
Distance from a Point to a Line
The distance from a point to a line is the shortest distance — the length of the perpendicular dropped from the point onto the line. In 3D we compute it with vectors and the cross product.
Let the line be r=a+λb (a point A with position vector a, direction b), and let P be the given point with position vector p.
The idea
Look at the triangle formed by A, P and the foot of the perpendicular M. The segment AP=p−a is the hypotenuse, and the perpendicular distance d=PM is the side opposite the angle θ between AP and the line:
d=∣AP∣sinθ.
But the cross product already contains sinθ: ∣AP×b∣=∣AP∣∣b∣sinθ. Dividing by ∣b∣ isolates the distance.
d=∣b∣∣(p−a)×b∣
Example
Distance of P(1,2,3) from the line r=(i^+j^)+λ(2i^−j^+2k^).
Here a=(1,1,0), b=(2,−1,2), and AP=p−a=(0,1,3).
AP×b=i^02j^1−1k^32=(2+3)i^−(0−6)j^+(0−2)k^=5i^+6j^−2k^.
Its magnitude is 25+36+4=65, and ∣b∣=4+1+4=3, so
d=365.
b must be the line's direction vector, not a point on the line. And use AP=p−a where A is any point genuinely on the line.
Finding the shortest distance from a point to a line using the cross product is a standard, frequently tested problem in the NCERT Class 12 Three Dimensional Geometry chapter, appearing in CBSE boards, JEE Main and various state CETs. "Distance of a point from a line vector form" is a common search, and this same cross-product technique reappears later when finding the distance between two skew lines.
The distance between two points in three-dimensional space is found using the natural extension of the Pythagorean theorem to 3D.
For points P(x1,y1,z1) and Q(x2,y2,z2), the distance formula is:
d=(x2−x1)2+(y2−y1)2+(z2−z1)2
Substituting P(1,−3,4) and Q(−4,1,2):
d=(−4−1)2+(1−(−3))2+(2−4)2
d=(−5)2+(4)2+(−2)2=25+16+4=45
Simplifying: 45=9×5=35.
The distance between the points is 35 units.
The distance between two points in three-dimensional space is found using the natural extension of the Pythagorean theorem to 3D. For P(1,−3,4) and Q(−4,1,2), the distance is 35 units.
Why the 3D distance formula works
When you want to find the distance between two points in space, you're really asking: how long is the straight line segment connecting them? In two dimensions, the Pythagorean theorem gives us d=(Δx)2+(Δy)2. In three dimensions, we simply add one more squared term for the z-coordinate difference.
Think of it this way: imagine a rectangular box where P and Q are at opposite corners. The distance between them is the diagonal of this box. The edges of the box have lengths ∣Δx∣, ∣Δy∣, and ∣Δz∣. By applying the Pythagorean theorem twice—first in the xy-plane, then extending to include the z-direction—we get the 3D distance formula.
d=(x2−x1)2+(y2−y1)2+(z2−z1)2
Step-by-step calculation
-
Identify the coordinates.
We have P(1,−3,4) and Q(−4,1,2). Label them as (x1,y1,z1)=(1,−3,4) and (x2,y2,z2)=(−4,1,2).
-
Find the differences in each coordinate.
Δx=x2−x1=−4−1=−5
Δy=y2−y1=1−(−3)=1+3=4
Δz=z2−z1=2−4=−2
- Square each difference.
(Δx)2=(−5)2=25
(Δy)2=42=16
(Δz)2=(−2)2=4
- Sum the squared differences.
(Δx)2+(Δy)2+(Δz)2=25+16+4=45
- Take the square root.
d=45=9×5=35
Always simplify the square root at the end. Here, 45=9⋅5=35 is the simplest radical form, which is what most exams expect.
The distance between P(1,−3,4) and Q(−4,1,2) is 35 units.
Showing the 12 most recent of 19 on this concept.
- COMEDK 2026Set 2026-A1 markMCQQ.Let point Q be the image of point P(2,−1) in the line 3x+5=4y. Find the area of the circle that has the segment PQ as the diameter. (A) 9π (B) 36π (C) 1.96π (D) 3π
›Reveal solutionSolution
The image Q is the mirror reflection of P across the line, so PQ=2×(distance from P to the line). That distance is 3, giving diameter PQ=6, radius 3, and area π(3)2=9π — option (A).
Concept & Intuition
When Q is the reflection of P in a line, the line is the perpendicular bisector of PQ. Hence the foot of perpendicular from P is the midpoint of PQ, and ∣PQ∣=2d, where d is the perpendicular distance from P to the line. Since PQ is the diameter, the radius is d.
Step-by-step solution
- Write the line in standard form. From 3x+5=4y:
3x−4y+5=0.
- Perpendicular distance from P(2,−1) to this line:
d=32+(−4)2∣3(2)−4(−1)+5∣=25∣6+4+5∣=515=3.
- Q is the reflection of P, so
∣PQ∣=2d=6⇒radius=2∣PQ∣=3.
- Area of the circle:
A=πr2=π(3)2=9π.
✓Final answerArea =9π square units — option (A).
ANSWER: A
- COMEDK 2026Set 2026-A1 markMCQQ.A line L passes through the point of intersection of the lines 3x+y−10=0 and x−y−2=0. If the perpendicular distance of the line L from the point (5,1) is exactly 52 units, which of the following represents the correct equation for line L ? (A) x+2y−5=0 (B) 2x+y−7=0 (C) x−2y+1=0 (D) 2x−y−5=0
›Reveal solutionSolution
The line L must pass through the intersection of the two given lines and be at a perpendicular distance of 2/5 from (5,1). Solving the family of lines through that intersection and applying the distance formula yields two possible lines; only one matches the given options, which is option (B).
We start by finding the fixed point through which L must pass — the intersection of the two given lines. Then we write the general equation of any line through that point (using a parameter for slope). The condition on perpendicular distance from (5,1) gives an equation in the slope; solving it yields two slopes, hence two possible lines. Finally we check which of the given options matches one of these.
- Find the intersection point of the two given lines. Solve
3x+y−10=0andx−y−2=0.
Adding the equations eliminates y:
(3x+y−10)+(x−y−2)=0⇒4x−12=0⇒x=3.
Substitute x=3 into x−y−2=0:
3−y−2=0⇒y=1.
So the intersection point is P(3,1).
- Write the family of lines through P(3,1). Any non-vertical line through P can be written as
y−1=m(x−3),
where m is the slope. Rearranging into standard form:
mx−y+(1−3m)=0.
(We will also consider the vertical line x=3 separately later.)
- Apply the perpendicular distance condition. The distance from a point (x1,y1) to a line Ax+By+C=0 is
A2+B2∣Ax1+By1+C∣.
For our line mx−y+(1−3m)=0 and point (5,1):
A=m,B=−1,C=1−3m.
The distance is
m2+1∣m⋅5+(−1)⋅1+(1−3m)∣=m2+1∣5m−1+1−3m∣=m2+1∣2m∣.
We are told this equals 52. So
m2+1∣2m∣=52.
- Solve for m. Cancel the factor 2 (valid since both sides are positive):
m2+1∣m∣=51.
Square both sides:
m2+1m2=51.
Cross-multiply:
5m2=m2+1⇒4m2=1⇒m2=41⇒m=±21.
- Write the two possible lines.
- For m=21:
y−1=21(x−3)⇒2y−2=x−3⇒x−2y−1=0.
- For m=−21:
y−1=−21(x−3)⇒2y−2=−x+3⇒x+2y−5=0.
Also check the vertical line x=3: its distance from (5,1) is ∣5−3∣=2, not 2/5, so it is not a solution.
-
Match with the given options.
The options are:
(A) x+2y−5=0
(B) 2x+y−7=0
(C) x−2y+1=0
(D) 2x−y−5=0
Our two lines are x+2y−5=0 and x−2y−1=0.
- x+2y−5=0 is exactly option (A).
- x−2y−1=0 is not listed (option (C) is x−2y+1=0, different sign).
So the line from our set that appears among the choices is option (A). But wait — we must verify that option (A) indeed satisfies the distance condition. We already derived it from the condition, so it does. However, the problem asks “which of the following represents the correct equation for line L?” — implying only one option is correct. Since both m=1/2 and m=−1/2 satisfy the distance condition, both lines are geometrically valid. But only one appears in the options. That is option (A).
Watch outA common mistake is to forget the absolute value when squaring the distance equation, or to assume only one slope works. Both m=±1/2 satisfy the condition; the vertical line x=3 does not.
TipThe family-of-lines approach (using a parameter) is powerful: it automatically enforces the “passes through intersection” condition, reducing the problem to a single-variable equation.
✓Final answerThe correct option is (A).
ANSWER: A
- COMEDK 2026Set 2026-M1 markMCQQ.Distance between 8x+15y−20=0 and 8x+15y+14=0 is: (A) 2 units (B) 34 units (C) 1710 units (D) 74 units
›Reveal solutionSolution
The distance between two parallel lines is found by taking the absolute difference of their constant terms divided by the square root of the sum of squares of the coefficients. Here the distance is 82+152∣−20−14∣=1734=2 units, so the answer is (A).
The key idea is that when two lines are parallel, the distance between them is constant — like the gap between two rails. The formula comes from projecting a point from one line onto the other along the normal direction.
Why this works:
For lines in the form Ax+By+C1=0 and Ax+By+C2=0, the perpendicular distance between them is A2+B2∣C1−C2∣. This is because the normal vector (A,B) is the same for both, so the distance is just the difference in their offsets along that normal, scaled by the length of the normal.
-
Identify the lines are parallel
Both equations have the same coefficients for x and y: 8x+15y−20=0 and 8x+15y+14=0. So they are parallel.
-
Write them in standard form
First line: 8x+15y−20=0 → C1=−20
Second line: 8x+15y+14=0 → C2=14
-
Apply the distance formula
Distance d=A2+B2∣C1−C2∣=82+152∣−20−14∣
-
Simplify numerator and denominator
Numerator: ∣−34∣=34
Denominator: 64+225=289=17
-
Compute the distance
d=1734=2
Watch outA common mistake is to forget the absolute value or to subtract the constants in the wrong order — but since we take absolute value, order doesn’t matter. Another pitfall is forgetting to divide by A2+B2; without it, you’d get 34, which is option (B) — a tempting distractor.
TipNotice that 82+152=289=172, so the denominator is a perfect square. This often happens in textbook problems to keep the answer neat.
✓Final answerThe correct option is (A).
ANSWER: A
-
- COMEDK 2025Set 2025-A1 markMCQQ.The length of the perpendicular from the point P(1,−1,2) to the given line 2x+1=−3y−2=4z+2 is (A) 29 units (B) 21 units (C) 6 units (D) 0 units
›Reveal solutionSolution
The shortest distance from a point to a line in 3D is found by projecting the vector from a point on the line to the given point onto the direction vector, then using the Pythagorean theorem. The perpendicular distance is 6 units.
Concept & Intuition
In 3D geometry, the perpendicular distance from a point to a line is the length of the line segment that meets the given line at a right angle. Instead of solving for the foot of the perpendicular directly, we can use vector projection:
- Pick any convenient point A on the line.
- Form the vector AP from A to the given point P.
- The component of AP parallel to the line’s direction vector d gives the “along-the-line” part.
- The component perpendicular to d is the shortest distance. By the Pythagorean theorem:
distance=∣AP∣2−(projdAP)2.
Step-by-step solution
- Identify a point on the line and the direction vector The line is given in symmetric form:
2x+1=−3y−2=4z+2=t.
Setting t=0 gives a convenient point A(−1,2,−2).
The direction vector is d=(2,−3,4).
- Form the vector from A to P P=(1,−1,2), so
AP=P−A=(1−(−1),−1−2,2−(−2))=(2,−3,4).
- Compute the length of AP
∣AP∣=22+(−3)2+42=4+9+16=29.
- Compute the projection of AP onto d The scalar projection (component along d) is
compdAP=∣d∣AP⋅d.
Dot product:
(2)(2)+(−3)(−3)+(4)(4)=4+9+16=29.
Length of d:
∣d∣=22+(−3)2+42=29.
Hence
compdAP=2929=29.
- Apply the Pythagorean relation The perpendicular distance d satisfies
d2=∣AP∣2−(compdAP)2.
Substituting:
d2=(29)2−(29)2=29−29=0.
So d=0.
Watch outA distance of zero means the point P lies on the line. Indeed, AP=(2,−3,4) is exactly the direction vector d, so P is simply A+d — a point on the line. Many students might compute 29 for the projection and forget to subtract, but here the two lengths are equal, giving zero.
TipWhen AP is parallel to d, the perpendicular distance is automatically zero. Always check if the point satisfies the line equation first — it saves time.
✓Final answerThe correct option is (D).
ANSWER: D
- COMEDK 2025Set 2025-A1 markMCQQ.The point on the line x+y=4 that lie at a unit distance from the line 4x+3y=10 is (A) (2,2) (B) (3,−1) (C) (5,−1) (D) (−7,11)
›Reveal solutionSolution
[!TLDR]
Parametrise the point on x+y=4, apply the point-to-line distance formula to 4x+3y=10, set it to 1, and the valid option is (−7,11).
Concept
The perpendicular distance from a point (x0,y0) to a line ax+by+c=0 is a2+b2∣ax0+by0+c∣ — the standard CBSE Class-11 Straight Lines formula.
Solution
Let the required point lie on x+y=4, so it is (x,4−x).
Distance from the line 4x+3y−10=0 (here a2+b2=16+9=5):
d=5∣4x+3(4−x)−10∣=5∣4x+12−3x−10∣=5∣x+2∣.
Set d=1:
∣x+2∣=5⇒x+2=±5⇒x=3 or x=−7.
The corresponding points are (3,1) and (−7,11).
Checking the options against both conditions (on the line AND unit distance):
- (A) (2,2): on line, but distance =∣2+2∣/5=4/5=1.
- (B) (3,−1): 3+(−1)=2=4, not even on the line.
- (C) (5,−1): on line, but distance =∣5+2∣/5=7/5=1.
- (D) (−7,11): on line, distance =∣−7+2∣/5=5/5=1. ✓
[!ANSWER]
(D) (−7,11)
NoteThis solution was worked out by our team and independently cross-checked by a second solve. The official answer key on record for this question could not be confirmed, so please cross-verify with the official paper where possible.
- COMEDK 2025Set 2025-A1 markMCQQ.If Q(1,0,1) is the image of the point P(a,b,c) in the line 2x+1=−2y−3=−1z then a+b+c is equal to : (A) 4 (B) 2 (C) 0 (D) −2
›Reveal solutionSolution
Reflecting Q across the line gives P=(1,2,−3), so a+b+c=0.
Since Q is the image of P in the line, P is likewise the reflection of Q in the line. Take the line point A=(−1,3,0) and direction d=(2,−2,−1), with ∣d∣2=4+4+1=9.
Foot of perpendicular F from Q(1,0,1): with AQ=(2,−3,1),
t=∣d∣2AQ⋅d=9(2)(2)+(−3)(−2)+(1)(−1)=94+6−1=1.
F=A+td=(−1,3,0)+(2,−2,−1)=(1,1,−1).
Reflecting Q through F:
P=2F−Q=(2−1,2−0,−2−1)=(1,2,−3).
Thus a=1, b=2, c=−3, giving
a+b+c=1+2−3=0.
✓Final answera+b+c=0, which is option (C).
- COMEDK 2025Set 2025-M1 markMCQQ.Distance of the point (−2,3) from the line 12x−5y−2=0 is k41. Then the value of k is (A) 134 (B) 13 (C) 13 (D) 1
›Reveal solutionSolution
The distance from a point to a line is given by a standard formula; here it simplifies to 1341, so k=13. The correct option is (C).
The key idea is the perpendicular distance formula from a point to a line. When we say "distance of a point from a line," we mean the shortest distance — the length of the perpendicular segment connecting the point to the line. That’s exactly what the formula computes.
The formula: For a line written as Ax+By+C=0 and a point (x1,y1), the distance is
d=A2+B2∣Ax1+By1+C∣.
Here, the problem gives the distance as k41, so we just compute the numerator and denominator separately, then match.
-
Identify A, B, C and the point
Line: 12x−5y−2=0 → A=12, B=−5, C=−2.
Point: (−2,3) → x1=−2, y1=3.
-
Compute the numerator: ∣Ax1+By1+C∣
12(−2)+(−5)(3)+(−2)=−24−15−2=−41.
Absolute value: ∣−41∣=41.
- Compute the denominator: A2+B2
122+(−5)2=144+25=169=13.
- Write the distance
d=1341.
The problem states this distance equals k41. Therefore,
k41=1341⇒k=13.
TipA common mistake is forgetting the absolute value or misplacing a sign. Here, the numerator came out −41, but distance is always positive, so we take 41. Also, note that 169 is exactly 13, not 13 — that would be a trap if you miscomputed 122+52 as 144+25=169 correctly but then took the wrong root.
Watch outOption (B) is 13 and option (A) is 134 — both are plausible if you accidentally add 144+25 incorrectly or forget to take the square root. Always double-check the arithmetic.
✓Final answerThe correct option is (C).
ANSWER: C
-
- COMEDK 2024Set 2024-E1 markMCQQ.The points on the x-axis whose perpendicular distance from the line 3x+4y=1 is 4 units are (A) (8,0) and (−2,0) (B) (−8,0) and (−2,0) (C) (8,0) and (2,0) (D) (−8,0) and (2,0)
›Reveal solutionSolution
Writing the line as 4x+3y−12=0 and setting the distance of (x,0) equal to 4 gives ∣4x−12∣=20, so x=8 or x=−2; the points are (8,0) and (−2,0) — option (A).
Concept
A point on the x-axis has the form (x,0). The perpendicular distance from (x1,y1) to the line Ax+By+C=0 is
d=A2+B2∣Ax1+By1+C∣.
Setting d=4 produces an absolute-value equation with two solutions — one on each side of the line.
Solution
- Standard form: multiply 3x+4y=1 by 12:
4x+3y=12 ⇒ 4x+3y−12=0,
so A=4, B=3, C=−12.
- Distance of (x,0):
d=42+32∣4x+3(0)−12∣=5∣4x−12∣.
- Set d=4:
5∣4x−12∣=4 ⇒ ∣4x−12∣=20.
- Solve both cases:
4x−12=20⇒x=8,4x−12=−20⇒x=−2.
So the points are (8,0) and (−2,0), which is option (A).
TipQuick check: for (8,0), 5∣4⋅8−12∣=520=4; for (−2,0), 5∣−8−12∣=520=4. Both are exactly 4 units away.
✓Final answerThe correct option is (A): (8,0) and (−2,0).
- COMEDK 2024Set 2024-M1 markMCQQ.The perpendicular distance of a line from the origin is 5 units and its slope is −1. The equation of the line is (A) x+y±52=0 (B) x−y±25=0 (C) x+y±25=0 (D) x−y±52=0
›Reveal solutionSolution
A slope of −1 gives lines x+y=c; requiring the distance 2∣c∣=5 gives ∣c∣=52, so the line is x+y±52=0 — option (A).
Concept
The perpendicular distance from the origin to Ax+By+C=0 is A2+B2∣C∣. A line of slope −1 has the form x+y=c (since −A/B=−1 with A=B=1), so we only need to fix the constant c from the distance condition.
Solution
- Standard form: x+y−c=0, so A=1,B=1,C=−c.
- Distance from origin:
12+12∣1⋅0+1⋅0−c∣=2∣c∣.
- Apply the condition:
2∣c∣=5⇒∣c∣=52.
- Write both lines: c=±52, giving x+y±52=0.
Watch outA slope of −1 gives x+y=c, not x−y=c (that line has slope +1); and keep both signs of c, since the line may lie on either side of the origin.
✓Final answerThe correct option is (A), x+y±52=0.
ANSWER: A
- COMEDK 2023Set 2023-E1 markMCQQ.The ratio in which the line 3x+4y+2=0 divides the distance between the lines 3x+4y+5=0 and 3x+4y−5=0 is (A) 3 : 7 (B) 2 : 3 (C) 1 : 2 (D) 2 : 5
›Reveal solutionSolution
Because the three lines are parallel, distances are proportional to the differences of their constant terms: the middle line divides the gap as 3:7.
All three lines share the normal 3x+4y= const, so perpendicular distances between them are 32+42∣c1−c2∣, proportional to the differences of the constants.
The outer lines have constants +5 and −5; the dividing line has constant +2.
Distance from c=5 line to c=2 line ∝∣5−2∣=3.
Distance from c=2 line to c=−5 line ∝∣2−(−5)∣=7.
Ratio =3:7.
✓Final answerThe correct option is (A) — 3 : 7
- COMEDK 2023Set 2023-E1 markMCQQ.The distance of the point (2,3,4) from the line 1−x=2y=31(1+z) is (A) 7235 (B) 7135 (C) 7435 (D) 7335
›Reveal solutionSolution
Perpendicular distance^2 = 35 - 200/7 = (245 - 200)/7 = 45/7. distance = sqrt(45/7) = 3 sqrt5 / sqrt7 = 3 sqrt(35) / 7.
Concept: perpendicular distance from a point to a line in 3-D, d = |AP|^2 - (projection of AP on d-hat)^2, i.e. d = sqrt( |AP|^2 - (AP . d)^2/|d|^2 ).
Put the line in symmetric form. 1 - x = y/2 = (1 + z)/3 becomes
(x - 1)/(-1) = (y - 0)/2 = (z + 1)/3.
So a point on the line is A = (1, 0, -1) and the direction is d = (-1, 2, 3), with |d|^2 = 1 + 4 + 9 = 14.
Given point P = (2, 3, 4). Then
AP = P - A = (1, 3, 5), |AP|^2 = 1 + 9 + 25 = 35.
Projection of AP along d:
AP . d = (1)(-1) + (3)(2) + (5)(3) = -1 + 6 + 15 = 20.
(AP . d)^2 / |d|^2 = 400/14 = 200/7.
Perpendicular distance^2 = 35 - 200/7 = (245 - 200)/7 = 45/7.
distance = sqrt(45/7) = 3 sqrt5 / sqrt7 = 3 sqrt(35) / 7.
✓Final answerThe correct option is (D) — 7335
ANSWER: D
- COMEDK 2023Set 2023-M1 markMCQQ.The distance of the point (3,4) from the line 3x+2y+7=0 measured along the line parallel to y−2x+7=0 is equal to (A) 7245 (B) 35 (C) 7235 (D) 45
›Reveal solutionSolution
Parametrise the point (3,4) along the unit direction of the parallel line and find where it meets 3x+2y+7=0; the parameter value equals the required distance, 7245.
The line y−2x+7=0 has slope 2, so a direction vector is (1,2), of length 5. The unit direction is (51,52).
A point at arc-length t from (3,4) along this direction is (3+5t,4+52t). It lies on 3x+2y+7=0 when:
3(3+5t)+2(4+52t)+7=0
9+8+7+53t+4t=0 ⇒ 24+57t=0
t=−7245,∣t∣=7245.
Since the direction was a unit vector, ∣t∣ is the actual distance measured along that line.
✓Final answerThe correct option is (A) — 7245
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.