The section formula and the midpoint · Mathematics… | StemPy Lab
Course 22.2·Lesson 2 of 3
The section formula and the midpoint
The point that divides A(x1,y1,z1)
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
write the point that divides a segment internally or externally in a given ratio;
find the midpoint and the ratio in which a given point divides a segment;
find where a coordinate plane cuts a segment.
A clamp on a cable
A clamp holds a cable at a point P that is twice as far from A as from B. Where is the clamp? "In the ratio 2:1" means AP:PB=2:1, so P lies between A and B, nearer to B.
In the chapter on Straight Lines you met this for two coordinates. The rule is the same in space, one coordinate at a time.
Internal division
If P divides AB internally in the ratio m:n, then P is the fraction m+nm of the way from A to B. Each coordinate moves that fraction of its change:
x=x1+m+nm(x2−x1)=m+nmx2+nx1,
and in the same way for y and z. The weight m goes with the far point B and n goes with A.
A segment from A to B in space with a point P on it. The part AP is drawn in blue and marked m, and the part PB is drawn in orange and marked n. The caption says that P divides AB in the ratio m to n, so P is the fraction m over m plus n of the way from A to B. A second point Q is marked outside the segment, beyond B, for an external division.
For m=n=1 we get the midpoint
xyz=2x1+x2,=2y1+y2,=2z1+z2.
External division
A point Q divides AB externally in the ratio m:n if Q lies on the line AB, outside the segment, and AQ:QB=m:n. Replace n by −n:
The ratio m:n cannot be 1:1 here. For m>n the point Q lies beyond B, and for m<n it lies beyond A.
A worked example
Let A(2,−3,1) and B(7,2,−4). Find the points that divide AB in the ratio 2:3 internally and externally.
Internal.x=52×7+3×2=4, y=52×2+3×(−3)=−1, z=52×(−4)+3×1=−1. So P(4,−1,−1).
External.x=2−32×7−3×2=−8, y=−12×2−3×(−3)=−13, z=−12×(−4)−3×1=11. So Q(−8,−13,11).
Check Q.AQ has differences (−10,−10,10) and QB has (15,15,−15). Their lengths are 103 and 153, in the ratio 2:3.
Midpoint. It is (29,−21,−23).
Finding the ratio
To find the ratio in which a point P divides AB, let the ratio be λ:1. Then x=λ+1λx2+x1, so λ=x2−xx−x1. The same λ must come from y and from z. If it does not, P is not on the line AB. A positive λ means internal division, and a negative λ means external.
Test P(3,0,−1) on the line through A(1,2,−3) and B(7,−4,3). From x: λ=7−33−1=21. From y: λ=−4−00−2=21. From z: λ=3+1−1+3=21. All agree, so P divides AB in the ratio 1:2.
Where a coordinate plane cuts a segment
The yz-plane is x=0. Put x=0 in λ=x2−xx−x1 to get λ=−x2x1. So the yz-plane divides AB in the ratio −x1:x2. In the same way the zx-plane gives −y1:y2 and the xy-plane gives −z1:z2.
If the two ends are on opposite sides of the plane, the ratio is positive and the division is internal. If both ends are on one side, the ratio is negative and the plane cuts the line outside the segment.
Practise with new numbers
Try it in Python
The function divide takes a negative n for an external division. The program checks the lengths AP and PB in both cases.
Common mistakes
Swapping the weights. The weight m multiplies the coordinates of B, the far end. The ratio is AP:PB.
Using m+n for an external division. For an external division use m−n in the denominator and −n in the numerator.
Trusting one coordinate. A point is on the line AB only if all three coordinates give the same ratio.
Forgetting the sign of the ratio. A negative ratio is an external division.
Remember these
Internal: P=m+nmB+nA, taken coordinate by coordinate. Midpoint: m=n=1.
External: Q=m−nmB−nA, with m=n.
The ratio from a coordinate: λ=x2−xx−x1. All three coordinates must agree.
A coordinate plane such as x=0 divides AB in the ratio −x1:x2.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find the midpoint of (4,−2,7) and (−6,8,3).
Find the point that divides A(1,3,−2) and B(6,−2,3) internally in the ratio 2:3.
Find the point that divides A(2,1,0) and B(4,3,−2) externally in the ratio 3:1.
In what ratio does the xy-plane divide the segment from (2,1,−4) to (3,−1,6)? Find the point.
In what ratio does P(4,0,2) divide the join of A(0,2,−4) and B(6,−1,5)?
References
NCERT, Mathematics Textbook for Class XI, the chapter Introduction to Three Dimensional Geometry, section on the section formula.
OpenStax, Calculus Volume 3, Chapter 2, section 2.2 on vectors in three dimensions.
Enroll free in Distance and Section Formulae in Space
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.