Omni Calculator logo

Ratios of Directed Line Segments Calculator

Created by Krishna Nelaturu
Reviewed by Steven Wooding
Last updated: Apr 21, 2024


The ratios of the directed line segments calculator will help you calculate the coordinates of the point that partition the line segment in a given proportion. This article will explore what a directed line segment is, how to partition a line segment with a given ratio with some examples, segment partition formula, and frequently asked questions.

If you're partitioning your line segment into two halves, our midpoint calculator will serve you equally well.

What is a directed line segment?

A line segment ABAB is a part of a line bound by two endpoints AA and BB where Aβ‰ BA \neq B. A directed line segment AB⇀\overrightharpoon{AB} is a line segment with a definite direction – it is the line segment directed from AA to BB.

Difference between a line segment and a directed line segment.
A directed line segment has both length and direction. AB⇀\overrightharpoon{AB} has the same length as the line segment ABAB, and is along the direction Aβ†’BA\rightarrow B. Note that AB⇀≠BA⇀\overrightharpoon{AB} \neq \overrightharpoon{BA}.

While the line segment ABAB can also be written as BABA, the same is not true for the directed line segment AB⇀\overrightharpoon{AB}. This is because AB⇀\overrightharpoon{AB} is directed from AA to BB, whereas BA⇀\overrightharpoon{BA} is directed from BB to AA.

πŸ”Ž Notice the similarities between a directed line segment and a vector? Not all directed line segments are vectors, but you can use a directed line segment to geometrically represent a vector with the same direction if the length of the line segment matches the magnitude of the vector. Our vector magnitude calculator can help you with this.

In the next section, we shall answer that burning question in your mind: how do you divide a segment into given ratios?

Directed line segment partitioning and formula

A point PP lying on the directed line segment AB⇀\overrightharpoon{AB} will divide into two line segments. There are two ways to divide a line segment:

  1. Internally, when the point PP lies somewhere within the segment AB⇀\overrightharpoon{AB}; and
  2. Externally, when the point PP lies somewhere on the extended line segment AB⇀\overrightharpoon{AB}.
Point P on AB divides AB in the ratio m:n.
Internal partition of AB⇀\overrightharpoon{AB} into the ratio m:nm:n by a point P(px,py)P(p_x,p_y) lying on AB⇀\overrightharpoon{AB}.

To partition the line segment AB⇀\overrightharpoon{AB} internally into the ratio m:nm:n, the point P(px,py)P(p_x,p_y) must lie on AB⇀\overrightharpoon{AB} such that it is mm+n\frac{m}{m+n} away from AA and nm+n\frac{n}{m+n} away from BB.

Point P on extended line segment AB divides it in the ratio m:n
External partition of AB⇀\overrightharpoon{AB} into the ratio m:nm:n by a point P(px,py)P(p_x,p_y) lying on the extended line segmentAB⇀\overrightharpoon{AB}.

On the other hand, to partition the line segment AB⇀\overrightharpoon{AB} externally into the ratio m:nm:n, the point P(px,py)P(p_x,p_y) must lie on the extended line segment AB⇀\overrightharpoon{AB} such that it is mmβˆ’n\frac{m}{m-n} away from AA and nmβˆ’n\frac{n}{m-n} away from BB.

Now that you know the concept of breaking a line segment into a ratio let's put together a formula for a directed line segment divided by any point PP.

For the internal partition of AB⇀\overrightharpoon{AB}:

P(px,py)=(mx2+nx1m+n,my2+ny1m+n)\scriptsize P(p_x,p_y) = \left(\frac{mx_2 + nx_1}{m+n}, \frac{my_2 + ny_1}{m+n}\right)

And for the external partition of AB⇀\overrightharpoon{AB}:

P(px,py)=(mx2βˆ’nx1mβˆ’n,my2βˆ’ny1mβˆ’n)\scriptsize P(p_x,p_y) = \left(\frac{mx_2 - nx_1}{m-n}, \frac{my_2 - ny_1}{m-n}\right)

where:

  • PP – Any point that partitions the directed line segment AB⇀\overrightharpoon{AB};
  • px,pyp_x,p_y – The x- and y-coordinates of the point PP;
  • m,nm,n – Ratio m:nm:n into which the point PP divides AB⇀\overrightharpoon{AB};
  • x1,y1x_1,y_1 – The x- and y-coordinates of the endpoint AA of AB⇀\overrightharpoon{AB}; and
  • x2,y2x_2,y_2 – The x- and y-coordinates of the endpoint BB of AB⇀\overrightharpoon{AB}.

❗ Keep in mind that in case of external division of the line segment, the ratios mm and nn cannot be equal and must be distinct to avoid a division by zero in the formula.

Now that you know the ratio of line segments formula, let's discuss it further, along with some examples of segment partition calculation.

How do I partition a line segment with a given ratio?

To find the point P(px, py) that internally divides the line segment AB into the ratio m:n, follow these steps:

  1. Calculate px using px = (mx2 + nx1)/(m + n), where x1 and x2 are the x-coordinates of A and B respectively.
  2. Determine py using py = (my2 + ny1)/(m + n), where y1 and y2 are the y-coordinates of A and B respectively.

To find the point P(px, py) that externally divides the line segment AB into the ratio m:n, follow these steps:

  1. Compute px using px = (mx2 - nx1)/(m - n), where x1 and x2 are the x-coordinates of A and B respectively.
  2. Find py using py = (my2 - ny1)/(m - n), where y1 and y2 are the y-coordinates of A and B respectively.

For example, consider a line segment AB⇀\overrightharpoon{AB} with the endpoints A(1,2)A(1,2) and B(4,6)B(4,6). The direction of this segment would be from AA to BB. To find a point that divides this segment internally in the ratio 2:32:3, we can use the internal partition formula as follows:

P(px,py)=(2β‹…4+3β‹…12+3,2β‹…6+3β‹…22+3)=(115,185)=(2.2,3.6)\scriptsize \begin{align*} P(p_x, p_y) &= \left(\frac{2 \cdot 4 + 3 \cdot 1}{2+3}, \frac{2 \cdot 6 + 3\cdot 2}{2+3}\right) \\\\ &= \left(\frac{11}{5}, \frac{18}{5}\right) \\\\ &= \left(2.2, 3.6\right) \end{align*}
Directed line segment AB divided into ratio 2:3 by a point P(2.2, 3.6).
Point P(2.2,3.6)P(2.2, 3.6) divides AB⇀\overrightharpoon{AB} into the ratio 2:32:3.

Note that to say that the point P(2.2,3.6)P(2.2,3.6) divides AB⇀\overrightharpoon{AB} in the ratio 2:32:3 is the same as saying that the point P(2.2,3.6)P(2.2,3.6) lies 25th{\frac{2}{5}}^{th} away from the endpoint A(1,2)A(1,2) and 35th{\frac{3}{5}}^{th} away from the endpoint B(4,6)B(4,6).

Now, if we want to divide the same line segment externally in the same ratio, then we shall employ the formula for external partition of the line segment:

P(px,py)=(2β‹…4βˆ’3β‹…12βˆ’3,2β‹…6βˆ’3β‹…22βˆ’3)=(8βˆ’3βˆ’1,12βˆ’6βˆ’1)=(βˆ’5,βˆ’6)\scriptsize \begin{align*} P(p_x, p_y) &= \left(\frac{2 \cdot 4 - 3 \cdot 1}{2-3}, \frac{2 \cdot 6 - 3\cdot 2}{2-3}\right) \\\\ &= \left(\frac{8-3}{-1}, \frac{12-6}{-1}\right) \\\\ &= \left(-5,-6\right) \end{align*}
AB divided into ratio 2:3 by a point P(-5,-6) lying on extended AB.
Point P(βˆ’5,βˆ’6)P(-5,-6) divides AB⇀\overrightharpoon{AB} into the ratio 2:32:3 externally.

See how easy it is to partition a line segment in a given ratio?πŸ˜‰ Go ahead and try some practice problems and master this method! You can always verify your results using this calculator to divide line segments.

How to use this ratios of directed line segments calculator

This ratios of directed line segments calculator is beneficial to find the point that divides a directed line segment in a given ratio or to find the ratio in which a given point splits the line segment.

  1. Choose the type of partition between internal and external in the The line is partitioned... field. By default, we set it as an internal partition.

  2. Enter the coordinates of the endpoints of the segment. Ensure that you're getting the direction of the line segment correct. In this calculator, the direction is always from A(x1,y1)A(x_1,y_1) to B(x2,y2)B(x_2,y_2).

  3. This step depends on whether you want to find the point or the ratio:

    • If the ratio is the given value, enter the given ratio in the corresponding fields, and the coordinates of the point appear in their respective fields, along with a helpful graph. Otherwise, leave the ratio fields empty.
    • If the coordinates of the point are the given value, enter these coordinates in the corresponding fields, and the resulting ratio will appear at the bottom.

You now have a simple tool to help you calculate the partitioning of a line segment anytime you need it! Also check out our Golden ratio calculator or Endpoint calculator for more line segment partition calculations.

FAQ

How do I find a point that divides a segment in half?

If you know the coordinates of the endpoints of the line segment, you can easily find its mid-point (xm, ym) using these steps:

  1. Calculate the average of the x-coordinates of the end-points to get the x-coordinate of the mid-point. xm = (x1 + x2)/2.
  2. Determine the average of the y-coordinates of the end-points to obtain the y-coordinate of the mid-point. ym = (y1 + y2)/2.
  3. Verify these results using our Midpoint Calculator or Ratios of Directed Line Segments Calculator.

How can I divide a line segment into three equal parts?

To divide a line segment AB into three equal parts, you need to find two points P(px, py) and Q(Qx, Qy) on AB, such that they each divide AB into the ratios 1:2 and 2:1:

  1. Calculate the x-coordinate px of the point P using the formula px = (2x2 + x1)/3, where x1 and x2 are the x-coordinates of A and B respectively.

  2. Compute the y-coordinate py of the point P using py = (2y2 + y1)/3, where y1 and y2 are the y-coordinates of A and B respectively.

  3. Determine the x-coordinate qx of the point Q using qx = (x2 + 2x1)/3.

  4. Find the y-coordinate qy of the point Q using qy = (y2 + 2y1)/3.

  5. Put these coordinates together to get the points P(px, py) and Q(qx, qy).

How to find a point lying one-third of the way from an endpoint?

A point P lying one-third of the way from the endpoint A on the line segment AB will divide it in the ratio 1:2. To find this point, follow these simple steps:

  1. Calculate the x-coordinate px of this point using the formula px = (2x2 + x1)/3, where x1 and x2 are the x-coordinates of A and B respectively.

  2. Compute the y-coordinate py of this point using py = (2y2 + y1)/3, where y1 and y2 are the y-coordinates of A and B respectively.

  3. Put them together to obtain the desired point P(px, py).

Krishna Nelaturu
The line is partitioned...
internally.
Coordinates of line segment's end points
x₁
y₁
xβ‚‚
yβ‚‚
Ratio (m : n)
mα΅’
nα΅’
Coordinates of the point P(pβ‚“,pᡧ)
pβ‚“α΅’
pᡧᡒ
Check out 46 similar coordinate geometry calculators πŸ“ˆ
Average rate of changeBilinear interpolationCatenary curve… 43 more
People also viewed…

Car crash force

With this car crash calculator, you can find out how dangerous car crashes are.

Proportion

Proportion calculator helps find equivalent proportions given three of the four parts of the two ratios.

Sleep

The sleep calculator can help you determine when you should go to bed to wake up happy and refreshed.

Slope

Calculate the slope of a line through two given points using the slope calculator. Discover the slope formula and learn how to find slope with two points.
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service