Ratios of Directed Line Segments Calculator
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 is a part of a line bound by two endpoints and where . A directed line segment is a line segment with a definite direction – it is the line segment directed from to .
While the line segment can also be written as , the same is not true for the directed line segment . This is because is directed from to , whereas is directed from to .
🔎 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 lying on the directed line segment will divide into two line segments. There are two ways to divide a line segment:
- Internally, when the point lies somewhere within the segment ; and
- Externally, when the point lies somewhere on the extended line segment .
To partition the line segment internally into the ratio , the point must lie on such that it is away from and away from .
On the other hand, to partition the line segment externally into the ratio , the point must lie on the extended line segment such that it is away from and away from .
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 .
For the internal partition of :
And for the external partition of :
- – Any point that partitions the directed line segment ;
- – The x- and y-coordinates of the point ;
- – Ratio into which the point divides ;
- – The x- and y-coordinates of the endpoint of ; and
- – The x- and y-coordinates of the endpoint of .
❗ Keep in mind that in case of external division of the line segment, the ratios and 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:
- Calculate px using px = (mx2 + nx1)/(m + n), where x1 and x2 are the x-coordinates of A and B respectively.
- 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:
- Compute px using px = (mx2 - nx1)/(m - n), where x1 and x2 are the x-coordinates of A and B respectively.
- 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 with the endpoints and . The direction of this segment would be from to . To find a point that divides this segment internally in the ratio , we can use the internal partition formula as follows:
Note that to say that the point divides in the ratio is the same as saying that the point lies away from the endpoint and away from the endpoint .
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:
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.
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.
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 to .
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.
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:
- Calculate the average of the x-coordinates of the end-points to get the x-coordinate of the mid-point. xm = (x1 + x2)/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.
- 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:
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.
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.
Determine the x-coordinate qx of the point Q using qx = (x2 + 2x1)/3.
Find the y-coordinate qy of the point Q using qy = (y2 + 2y1)/3.
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:
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.
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.
Put them together to obtain the desired point P(px, py).