Distances in the Plane
Your phone's map puts you at the point $(6, 4)$, measured in miles from the center of town. A straight highway follows the line $3x + 4y = 12$. How far are you from the nearest spot on the highway? Maps, drones and laser cutters answer this kind of question all the time. Both kinds of distance in this section, point to point and point to line, come from the Pythagorean Theorem.
Distance Between Two Points
Take two points $A(x_1, y_1)$ and $B(x_2, y_2)$. Draw a horizontal leg and a vertical leg to make a right triangle. The legs have lengths $|x_2 - x_1|$ and $|y_2 - y_1|$, and the segment $AB$ is the hypotenuse.
When a problem asks for an exact distance, leave a simplified radical. Only use a decimal if the problem asks for an approximation.
Calculate the exact distance between the points $A(3, -2)$ and $B(-1, 1)$.
Calculate the exact distance between the points $A(3, -2)$ and $B(-1, 1)$.
Check if the triangle with vertices $A(0, 0)$, $B(4, 0)$ and $C(2, 3)$ is isosceles by calculating the exact length of its three sides.
Check if the triangle with vertices $A(0, 0)$, $B(4, 0)$ and $C(2, 3)$ is isosceles by calculating the exact length of its three sides.
A solar panel has the shape of a quadrilateral with vertices at the coordinates $A(-1, -1)$, $B(3, 0)$, $C(4, 4)$ and $D(0, 3)$, measured in feet. Calculate the exact…
A solar panel has the shape of a quadrilateral with vertices at the coordinates $A(-1, -1)$, $B(3, 0)$, $C(4, 4)$ and $D(0, 3)$, measured in feet. Calculate the exact perimeter of the panel.
Midpoint and Distance to the Axes
The midpoint of a segment is the point halfway between the endpoints. Its coordinates are the averages of the endpoints' coordinates.
Calculate the distance from the point $P(-4, 7)$ to the y-axis and the x-axis.
Calculate the distance from the point $P(-4, 7)$ to the y-axis and the x-axis.
Given the line segment with endpoints $A(2, 4)$ and $B(6, -2)$, first calculate the coordinates of its midpoint $M$ and then find the distance from $M$ to the endpoint…
Given the line segment with endpoints $A(2, 4)$ and $B(6, -2)$, first calculate the coordinates of its midpoint $M$ and then find the distance from $M$ to the endpoint $A$.
Distance from a Point to a Line
The distance from a point to a line is the length of the perpendicular segment from the point to the line. Any other path to the line is longer.
If the answer has a radical in the denominator, rationalize it: $\dfrac{7}{\sqrt2} = \dfrac{7\sqrt2}{2}$.
Find the distance from the origin to the line of equation $3x - 4y + 10 = 0$.
Find the distance from the origin to the line of equation $3x - 4y + 10 = 0$.
Determine the distance from the point $P(2, 5)$ to the line $r: 5x + 12y - 4 = 0$.
Determine the distance from the point $P(2, 5)$ to the line $r: 5x + 12y - 4 = 0$.
Calculate the distance from the point $Q(-1, 3)$ to the line given in slope-intercept form $y = 2x - 1$.
Calculate the distance from the point $Q(-1, 3)$ to the line given in slope-intercept form $y = 2x - 1$.
The Closest Point on a Line
Sometimes you need not just the distance but where the closest point is. That point is the foot of the perpendicular: the place where the perpendicular from $P$ meets the line.
Triangle $PFQ$ has a right angle at $F$, so $PQ$ is its hypotenuse and is longer than the leg $PF$. That is why the perpendicular gives the minimum distance.
A comet passes through a star system following a rectilinear trajectory of equation $3x + y - 6 = 0$. An observation satellite is stationary at the coordinates…
A comet passes through a star system following a rectilinear trajectory of equation $3x + y - 6 = 0$. An observation satellite is stationary at the coordinates $S(2, 4)$. Calculate the minimum distance at which the comet will pass the satellite.
A space exploration vehicle moves in a straight line following the equation $y = 2x$. An emergency wireless charging base is located at the point $C(5, 0)$. Determine at…
A space exploration vehicle moves in a straight line following the equation $y = 2x$. An emergency wireless charging base is located at the point $C(5, 0)$. Determine at what exact point in its trajectory the vehicle will be at the minimum distance from the base and calculate this distance.
Distance Between Parallel Lines
Parallel lines stay the same distance apart everywhere. So pick any one point on one line and find its distance to the other.
If a problem gives you a point on the second line (for example, a ship's position) instead of its equation, you don't need the equation. Just find the distance from that point to the first line.
Find the distance between the parallel lines $r: 3x + 4y - 5 = 0$ and $s: 3x + 4y + 15 = 0$.
Find the distance between the parallel lines $r: 3x + 4y - 5 = 0$ and $s: 3x + 4y + 15 = 0$.
Two ships follow straight and parallel routes. The first ship sails along the line $r: x - 2y + 4 = 0$. The second ship passes through the point $A(3, 1)$ maintaining…
Two ships follow straight and parallel routes. The first ship sails along the line $r: x - 2y + 4 = 0$. The second ship passes through the point $A(3, 1)$ maintaining the same direction. Calculate the minimum distance between both trajectories.
Lines at a Given Distance
To find lines parallel to $r: Ax+By+C=0$ at distance $d$ from it, keep $A$ and $B$ and look for the new constant $C'$. The shortcut formula gives $\dfrac{|C' - C|}{\sqrt{A^2+B^2}} = d$, so
$$C' = C \pm d\sqrt{A^2+B^2}$$There are always two such lines, one on each side of $r$.
If the second line is given with different coefficients (like $4x - 2y + 5 = 0$ next to $2x - y + c = 0$), divide to match them before using the shortcut.
An industrial laser must make a main cut in a metal plate following the line $r: 4x - 3y + 2 = 0$. In addition, the system must be programmed to make two parallel safety…
An industrial laser must make a main cut in a metal plate following the line $r: 4x - 3y + 2 = 0$. In addition, the system must be programmed to make two parallel safety cuts at an exact distance of $10$ inches on each side of the main cut. Find the general equations of the lines of the safety cuts.
Calculate the possible values of the parameter $c$ knowing that the parallel lines $r: 2x - y + c = 0$ and $s: 4x - 2y + 5 = 0$ are $3\sqrt{5}$ units apart.
Calculate the possible values of the parameter $c$ knowing that the parallel lines $r: 2x - y + c = 0$ and $s: 4x - 2y + 5 = 0$ are $3\sqrt{5}$ units apart.
Points at a Given Distance and Unknown Parameters
Two common unknowns show up in distance problems.
A point on a line at a given distance from another point. Write the point as $(t, mt + b)$ using the line's equation. Plug it into the distance formula, square both sides, and solve the resulting quadratic.
An unknown coefficient in the line. Put the parameter into the point-to-line formula, set it equal to the given distance, and square both sides. Squaring is safe here because both sides are nonnegative.
In a park, the center of a square is located at the point $P(0, 5)$. A straight irrigation pipe follows the trajectory $y = x + 1$. A sprinkler is to be installed on the…
In a park, the center of a square is located at the point $P(0, 5)$. A straight irrigation pipe follows the trajectory $y = x + 1$. A sprinkler is to be installed on the pipe exactly $5$ units away from the center of the square. Find the coordinates of the two possible locations for the sprinkler.
Find the possible values of the parameter $k$ so that the line $r: kx + 3y - 5 = 0$ is exactly $2$ units away from the point $P(1, -2)$.
Find the possible values of the parameter $k$ so that the line $r: kx + 3y - 5 = 0$ is exactly $2$ units away from the point $P(1, -2)$.
Area of a Triangle
Take one side as the base. Its length comes from the distance formula. The height is the distance from the opposite vertex to the line containing that side. Then $\text{Area} = \tfrac12 \cdot \text{base} \cdot \text{height}$.
To find the line through two points, compute the slope $m = \dfrac{y_2-y_1}{x_2-x_1}$, write $y - y_1 = m(x - x_1)$, and rearrange into $Ax+By+C=0$.
A surveying team has delimited a triangular plot of land whose base stations are located at the coordinates $A(1, 2)$, $B(5, -1)$ and $C(4, 6)$, expressed in miles.…
A surveying team has delimited a triangular plot of land whose base stations are located at the coordinates $A(1, 2)$, $B(5, -1)$ and $C(4, 6)$, expressed in miles. Calculate the exact area of the land by first evaluating the length of the base $AB$ and then the corresponding altitude from the vertex $C$.
An isosceles triangle has its unequal side (the base) on the line $r: x + y - 2 = 0$. The vertex opposite the base is $A(4, 4)$ and it is known that the area of the…
An isosceles triangle has its unequal side (the base) on the line $r: x + y - 2 = 0$. The vertex opposite the base is $A(4, 4)$ and it is known that the area of the triangle is $12$ u$^2$. Calculate the exact length of the base and of the two equal sides.
Equidistant Points and Loci
A locus is the set of all points that satisfy a condition. The points equidistant from two points $P$ and $Q$ form the perpendicular bisector of $PQ$.
To find a locus, call a general point $(x, y)$, write the distance condition, and square both sides to get rid of the roots.
If you keep $y$ instead of setting it to $0$, the same steps give $3x + y = 9$. That is the equation of the whole perpendicular bisector, and it passes through the midpoint $(2, 3)$.
For a locus defined with a line, use $d(P, r) = \dfrac{|Ax + By + C|}{\sqrt{A^2+B^2}}$ and square both sides. A factor like "twice the distance" gets squared too, so it becomes a factor of $4$.
A telecommunications antenna is to be installed on a straight road that coincides with the x-axis. This antenna must be exactly at the same distance from town $P(-2, 3)$…
A telecommunications antenna is to be installed on a straight road that coincides with the x-axis. This antenna must be exactly at the same distance from town $P(-2, 3)$ and town $Q(4, 1)$. At what exact coordinates should the antenna be located?
Find the equation of the locus of the points in the plane $P(x, y)$ whose distance to the line $r: 3x - 4y = 0$ is exactly twice their distance to the fixed point…
Find the equation of the locus of the points in the plane $P(x, y)$ whose distance to the line $r: 3x - 4y = 0$ is exactly twice their distance to the fixed point $Q(0, 2)$. Simplify the resulting equation.
Equidistant from Two Lines: Angle Bisectors
The points equally far from two intersecting lines lie on the angle bisectors of the angles they form. Two crossing lines make two bisectors.
If a problem adds a second condition, intersect the bisectors with it. For example, with a circle $x^2 + y^2 = 13$ and the bisector $y = 1 - x$: $x^2 + (1-x)^2 = 13$ gives $2x^2 - 2x - 12 = 0$, so $x = 3$ or $x = -2$. The points are $(3, -2)$ and $(-2, 3)$.
The lines $r: x - 2y + 1 = 0$ and $s: 2x + y - 3 = 0$ represent the edges of two avenues that cross. A bike lane is to be built that is equidistant from both avenues at…
The lines $r: x - 2y + 1 = 0$ and $s: 2x + y - 3 = 0$ represent the edges of two avenues that cross. A bike lane is to be built that is equidistant from both avenues at all times. Find the equations of the two possible trajectories of the bike lane (the angle bisectors) and prove analytically that they are perpendicular.
Find the coordinates of the points in the plane that simultaneously satisfy two conditions: they are equidistant from the intersecting lines $r: 3x - 4y + 2 = 0$ and…
Find the coordinates of the points in the plane that simultaneously satisfy two conditions: they are equidistant from the intersecting lines $r: 3x - 4y + 2 = 0$ and $s: 4x + 3y - 1 = 0$, and their distance to the origin is exactly $5$ units.
Squares and Rhombuses
In a rhombus (and a square) the two diagonals are perpendicular and bisect each other at the center $M$. The area is $\tfrac12 d_1 d_2$, where $d_1$ and $d_2$ are the diagonal lengths. For a square, $d_1 = d_2$.
Start with a quick test: plug the given vertex $A$ into the equation of the given line. There are two cases.
Case 1: $A$ is not on the line $r$ that holds the other diagonal. Use this plan:
-
The diagonal through $A$ is perpendicular to $r$. Its center $M$ is the foot of the perpendicular from $A$ to $r$.
-
The opposite vertex is $C = 2M - A$, and $d_1 = AC = 2\,d(A, r)$.
-
Get $d_2$ from the area, $d_2 = \dfrac{2 \cdot \text{Area}}{d_1}$. For a square, $d_2 = d_1$.
-
The other two vertices are on $r$, at distance $\tfrac{d_2}{2}$ from $M$ on each side.
Case 2: $A$ is on the line. Then the plan breaks down, and the reason is geometric. The diagonal through $A$ meets $r$ only at the center $M$. If $A$ is on $r$, then $A = M$, but a vertex is never the center. So the line cannot hold the diagonal that avoids $A$. For a rhombus whose second diagonal is on $r$, this means no rhombus exists. For a square it usually means the line holds the diagonal that does contain $A$, and then $A$ is one endpoint of that diagonal. The other endpoint can slide along the line, so you describe the answer with a parameter (see the second example below).
Determine the coordinates of the vertices of a square knowing that one of its vertices is $A(1, 2)$ and that one of its diagonals is contained in the line…
Determine the coordinates of the vertices of a square knowing that one of its vertices is $A(1, 2)$ and that one of its diagonals is contained in the line $d: x - y + 1 = 0$.
A rhombus has one of its vertices at the point $A(2, 1)$ and the diagonal that does not pass through $A$ lies on the line $r: x + 2y - 4 = 0$. If the area of the rhombus…
A rhombus has one of its vertices at the point $A(2, 1)$ and the diagonal that does not pass through $A$ lies on the line $r: x + 2y - 4 = 0$. If the area of the rhombus is $20$ u$^2$, find the coordinates of the remaining three vertices.
Back to the start: you are at $(6, 4)$ and the highway is $3x + 4y - 12 = 0$. Then $d = \dfrac{|3(6) + 4(4) - 12|}{\sqrt{3^2 + 4^2}} = \dfrac{22}{5} = 4.4$ miles.