What is a Directed Line Segment?
A line segment AB is a part of a line bounded by two endpoints A and B. A directed line segment AB⃗ is a line segment with a definite direction — it is directed from A to B. Unlike the ordinary segment AB (which can equally be called BA), the directed segment AB⃗ ≠ BA⃗ because they point in opposite directions.
A directed line segment has both length and direction. This makes it geometrically equivalent to a vector: any vector can be represented by a directed line segment whose length equals the vector's magnitude and whose direction matches the vector's direction.
Directed Line Segment Partitioning and Formula
Given a directed line segment from A(x₁, y₁) to B(x₂, y₂), a point P divides it in the ratio m : n (where m and n are positive) if:
- AP : PB = m : n (internal division)
The coordinates of point P are found using the Section Formula:
Py = (m · y₂ + n · y₁) / (m + n)
How Do I Partition a Line Segment with a Given Ratio?
Follow these steps:
- Identify the coordinates of endpoints A(x₁, y₁) and B(x₂, y₂).
- Write down the ratio m : n (e.g., 1:2 means P is one-third of the way from A to B).
- Substitute into the section formula to find Px and Py.
- Verify: compute |AP| = m/(m+n) · |AB| and |PB| = n/(m+n) · |AB|.
Example
Let A = (0, 0) and B = (6, 4), with ratio m:n = 1:2.
- Px = (1·6 + 2·0) / (1+2) = 6/3 = 2
- Py = (1·4 + 2·0) / (1+2) = 4/3 ≈ 1.333
- P = (2, 1.333)
- |AB| = √(6²+4²) ≈ 7.211
- |AP| = (1/3)·7.211 ≈ 2.404 — one third of the segment
- |PB| = (2/3)·7.211 ≈ 4.807 — two thirds of the segment
How to Use This Ratios of Directed Line Segments Calculator
- Select a unit system — metric (mm, cm, m, km) or US/Imperial (in, ft, yd, mi). Choose "No unit" for pure mathematical coordinates.
- Enter Point A — provide the x₁ and y₁ coordinates of the starting point.
- Enter Point B — provide the x₂ and y₂ coordinates of the ending point.
- Enter the ratio m : n — both m and n must be positive numbers. The ratio 1:1 gives the midpoint.
- Click Calculate to get the partition point P and full segment analysis.
Measurement Systems Supported
The calculator supports two measurement systems for real-world coordinate geometry:
- Metric: millimeters (mm), centimeters (cm), meters (m), kilometers (km)
- US / Imperial: inches (in), feet (ft), yards (yd), miles (mi)
FAQs
What is the difference between a line segment and a directed line segment?
A regular line segment AB has no inherent direction — AB and BA refer to the same segment. A directed line segment AB⃗ has direction: it goes from A to B. This distinction matters when working with ratios, vectors, and parametric equations.
What does it mean to partition a line segment in ratio 1:1?
A 1:1 ratio means P is equidistant from both A and B — P is the midpoint. The section formula simplifies to the familiar midpoint formula: P = ((x₁+x₂)/2, (y₁+y₂)/2).
Can I use this for 3D coordinates?
This calculator handles 2D coordinate geometry (x, y). The same section formula extends to 3D by adding a z-component: Pz = (m·z₂ + n·z₁)/(m+n).
What is internal vs external division?
Internal division (both m, n > 0): point P lies between A and B on the segment. External division (one ratio negative): point P lies outside the segment on its extension. This calculator handles internal division only.
Are directed line segments vectors?
Not all directed line segments are vectors, but every vector can be geometrically represented by a directed line segment. If the length of the segment equals the vector's magnitude and their directions match, the directed segment represents that vector.