🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Section Formula and Midpoint

CBSE Class 12 MathsVector AlgebrađŸŸĸ Free Lesson

Section Formula and Midpoint

What You'll Learn

  • 1Interpret a ratio m:n as a split of the segment AR to RB rather than a ratio of coordinates
  • 2Derive the internal and external section formulas from the collinearity condition
  • 3Apply the midpoint and centroid formulas in two and three dimensions
  • 4Recover an unknown ratio from a point that already lies on a segment
  • 5Check every answer numerically with a short Python script

Two surveyors stand at points and and want to mark a post that lies of the way along the straight path between them. A physicist wants the centre of mass of three unequal weights placed at the vertices of a triangle. A graphics programmer needs the point that sits halfway between two 3D anchors so an object can be tweened smoothly. All three questions are the same mathematics: given two known position vectors, produce the position vector of a third point that divides the segment in a stated proportion. This lesson builds the formula from collinearity, separates internal from external division, and verifies every worked number in code.

Reading the ratio correctly

The phrase "divides in the ratio " means the split is — the number belongs to the segment that touches , but it weights the vector at the far end. That flip is deliberate: the closer is to , the larger must be, and the formula then pulls towards only when is small. Read the ratio as a pair of weights on the endpoints, not as coordinates of the answer.

SituationRatio Weight on Weight on Where sits
Midpointexactly in the middle
Closer to one third of the way from
Closer to three quarters of the way from
At itselfthe endpoint

The weights always sum to one, which is why the section formula is a weighted average of the two endpoint vectors. Collinearity is what forces the weights to be linear: if lies on line then must be a scalar multiple of , and solving that single vector equation for the scalar produces exactly the fractions shown above.

Midpoint: the balanced case

Substituting into the general formula cancels the ratio completely, leaving the plain average of the two position vectors. Two useful consequences follow immediately. First, the midpoint of the midpoints of the two diagonals of a quadrilateral is the same point — the centre of the quadrilateral — because averaging is associative: averaging with , then with , then those two results gives the same vector as averaging all four at once. Second, solving for gives , which is the standard "reflection through a point" recipe used in coordinate geometry.

External division and the sign rule

Externally, lies on the line through and but outside the segment, so one of the directed distances and is negative; the minus sign in the numerator is that effect written algebraically. Two edge cases deserve attention. If the denominator vanishes: the lines drawn from the endpoints in equal proportion are parallel, so no finite point exists, and the formula correctly refuses to produce one. If you apply the external formula with the larger number attached to the nearer endpoint you will land on the wrong side of the segment; the safe habit is to place against the endpoint the point sits beyond.

A single signed-ratio idea unifies both cases: write and use for internal splits with positive, and the same expression with negative for external splits. CBSE questions rarely demand the unified form, but recognising it prevents the common mix-up between the two sign patterns.

Worked example: internal division

Find the position vector of the point dividing the line segment joining and in the ratio .

The coordinates lie strictly between the endpoints component-wise, which is the quick sanity check that the split was internal. A second check is metric: the distance should be twice the distance . Both distances are computed in the Python block later in the lesson, and the ratio comes out as exactly .

Worked example: midpoint of a segment

Find the midpoint of the line segment joining and .

Because every coordinate is the plain average of the two endpoints, the midpoint of a segment with integer endpoints has coordinates that are multiples of one half — a useful filter when a multiple-choice answer offers fractions.

Recovering the ratio from a known point

Find the ratio in which the point divides the line segment joining and .

The method generalises to any dimension: pick one coordinate, clear the denominator, solve for , then confirm with a second coordinate before writing the answer. If the two coordinates give different values of , the supposed point is not on the line at all and the question contains a misprint or a trap.

Centroids and the two-to-one median split

The centroid is the centre of mass of three equal point masses, one at each vertex: averaging the three position vectors is exactly the physics definition. The 2:1 split follows from the section formula itself. If is the midpoint of then , and the point that divides the median internally in the ratio has position vector — the same vector no matter which median you start from, so the three medians are concurrent. The tetrahedron version repeats the argument with four masses and gives a split of the segment joining a vertex to the centroid of the opposite face.

Note that these three vertices are collinear — each coordinate increases by exactly 3 — so the "triangle" is degenerate and its centroid still computes correctly. Exam questions occasionally use such a configuration to test whether students blindly apply formulas.

The coordinate form in any dimension

For 2D points and divided in the ratio the formula reads component by component:

Nothing in the derivation used the number three, so the same pattern extends to -dimensional space: apply the weighted average to each coordinate independently. The practical rule is simple — never memorise separate 2D and 3D versions; memorise the vector version and expand components only at the end.

Verifying the formulas in Python

The first script computes the dividing point, then measures both sub-segment lengths to confirm the requested ratio, and repeats the check for the midpoint.

python
from math import dist

def section_point(a, b, m, n, external=False):
    if external:
        return tuple((m * bi - n * ai) / (m - n) for ai, bi in zip(a, b))
    return tuple((m * bi + n * ai) / (m + n) for ai, bi in zip(a, b))

a, b = (1, 2, 3), (4, 5, 6)
r = section_point(a, b, 2, 1)
print("point dividing 2:1 :", r)
print("AR / RB            :", dist(a, r) / dist(r, b))

mid = section_point(a, b, 1, 1)
print("midpoint           :", mid)
print("AM, MB             :", dist(a, mid), dist(mid, b))

ext = section_point(a, b, 2, 1, external=True)
print("external point     :", ext)

The printed ratio is exactly , the two midpoint distances are equal, and the external point lands beyond with in the ratio , matching the sign rule.

The second script builds the centroid, locates the midpoint of a side, and confirms the classical median split.

python
from math import dist

def midpoint(p, q):
    return tuple((pi + qi) / 2 for pi, qi in zip(p, q))

def centroid(points):
    n = len(points)
    return tuple(sum(p[i] for p in points) / n for i in range(len(points[0])))

A, B, C = (0, 0), (6, 0), (0, 6)
G = centroid([A, B, C])
M = midpoint(B, C)
print("centroid        :", G)
print("midpoint of BC  :", M)
print("AG / GM         :", dist(A, G) / dist(G, M))

Here and , and the distance ratio is exactly , which is the median property proved above.

Where these questions lose marks

The three recurring errors are mechanical rather than conceptual. Swapping the weights — writing — silently mirrors the point to the wrong side of the midpoint, and only a distance check catches it. Applying the external formula while keeping both signs positive collapses the denominator when and produces a meaningless division by zero. Finally, mixing a 2D given point with a 3D pair of endpoints, or forgetting that the centroid of a triangle averages three vectors while the centroid of a tetrahedron averages four, costs easy marks in multi-part questions.

Common Mistakes

Attaching the ratio numbers to the wrong endpoints

Fix: The ratio AR to RB equals m to n, so m multiplies the vector at B and n multiplies the vector at A; draw the segment and label the two sub-lengths before substituting.

Using the external formula without checking which side the point lies on

Fix: Place m against the endpoint the point sits beyond, and remember that equal values of m and n make the denominator zero because no external point exists.

Stopping once the coordinates look plausible

Fix: Compute the two sub-lengths and confirm their ratio equals m to n, or substitute the answer back into a second coordinate equation as in the ratio-recovery example.

Key Takeaways

  • The section formula is a weighted average of the endpoint vectors, with the ratio numbers attached to the opposite endpoints
  • Setting m equals n gives the midpoint, and averaging three vertex vectors gives the centroid, which splits every median in the ratio 2:1
  • External division flips one sign in the numerator, and the case m equals n has no solution because the construction lines are parallel
  • Any ratio-recovery problem is solved by writing one coordinate equation for k, then confirming with a second coordinate
  • Every formula in this lesson checks numerically in a few lines of Python, which is the fastest way to catch a swapped ratio in an exam
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-15

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert CBSE Class 12 Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement