Perpendicular Line Calculator
Solve perpendicular line problems step-by-step with our free calculator. See formulas, worked examples, and clear explanations.
Formula
Perpendicular slope: m_perp = -1/m | Distance: |ax0 + by0 + c| / sqrt(a^2 + b^2)
The perpendicular slope is the negative reciprocal of the original slope. The perpendicular distance from a point (x0, y0) to line ax + by + c = 0 is the shortest distance measured along the perpendicular direction.
Worked Examples
Example 1: Perpendicular Through a Point
Problem: Find the perpendicular to y = 3x + 2 passing through (1, 5).
Solution: Original slope: m = 3\nPerpendicular slope: m_perp = -1/3\nUsing point-slope: y - 5 = (-1/3)(x - 1)\ny = (-1/3)x + 1/3 + 5\ny = (-1/3)x + 16/3\nIntersection: 3x + 2 = (-1/3)x + 16/3\n(10/3)x = 10/3, x = 1, y = 5\nDistance from (1,5) to line: |3(1) - 5 + 2| / sqrt(10) = 0
Result: Perpendicular: y = -0.3333x + 5.3333 | Point is on the line
Example 2: Perpendicular Distance Calculation
Problem: Find the perpendicular distance from point (4, 7) to the line y = 2x - 1.
Solution: Line: 2x - y - 1 = 0 (general form)\nPoint: (4, 7)\nDistance = |2(4) - 7 - 1| / sqrt(4 + 1)\n= |8 - 7 - 1| / sqrt(5)\n= 0 / sqrt(5) = 0\nThe point (4, 7) lies on the line y = 2x - 1\nPerpendicular slope = -1/2
Result: Distance: 0 (point lies on the line) | Perp slope: -0.5
Frequently Asked Questions
What is a perpendicular line and how do you find its slope?
A perpendicular line intersects another line at exactly 90 degrees, forming a right angle at the point of intersection. The slope of a perpendicular line is the negative reciprocal of the original line slope. If the original slope is m, the perpendicular slope is -1/m. For example, if a line has slope 3, the perpendicular line has slope -1/3, and if a line has slope -2/5, the perpendicular has slope 5/2. The product of perpendicular slopes always equals -1 (m1 * m2 = -1). Special cases include horizontal lines (slope 0) being perpendicular to vertical lines (undefined slope), where the negative reciprocal relationship does not directly apply.
How do you find the equation of a perpendicular line through a point?
To find a perpendicular line through a given point, first calculate the negative reciprocal of the original slope to get the perpendicular slope. Then use the point-slope form y - y1 = m_perp(x - x1) with the perpendicular slope and the given point. For example, given the line y = 3x + 2 and the point (1, 5): the perpendicular slope is -1/3, so the equation is y - 5 = (-1/3)(x - 1), which simplifies to y = (-1/3)x + 16/3. This method works reliably for any non-vertical line. For vertical lines, the perpendicular is horizontal with equation y = y1, and for horizontal lines, the perpendicular is vertical with equation x = x1.
What is the perpendicular distance from a point to a line?
The perpendicular distance from a point (x0, y0) to a line ax + by + c = 0 is given by the formula d = |ax0 + by0 + c| / sqrt(a^2 + b^2). For a line in slope-intercept form y = mx + b, this becomes d = |mx0 - y0 + b| / sqrt(m^2 + 1). This is the shortest possible distance from the point to any point on the line, and it is measured along the perpendicular direction. This formula is widely used in computational geometry, computer graphics, and physics for determining closest approach distances. It is also essential in least-squares regression analysis where residuals are measured perpendicularly.
How do perpendicular lines relate to right triangles?
Perpendicular lines are fundamental to right triangles because they define the right angle that characterizes these triangles. When two perpendicular lines intersect, they create four 90-degree angles, and any triangle formed using these two lines as sides will be a right triangle. The Pythagorean theorem (a^2 + b^2 = c^2) applies exclusively to right triangles and relies on the perpendicularity of two sides. In coordinate geometry, you can verify that a triangle has a right angle by checking if any two sides have slopes that are negative reciprocals. This connection between perpendicularity and right triangles underpins trigonometry and many engineering calculations.
What is the perpendicular bisector and how is it constructed?
A perpendicular bisector is a line that passes through the midpoint of a line segment and is perpendicular to it. To construct one, first find the midpoint M = ((x1+x2)/2, (y1+y2)/2) of the segment. Then calculate the slope of the segment and take its negative reciprocal to get the perpendicular slope. Finally, use the point-slope form with the midpoint and perpendicular slope. Every point on the perpendicular bisector is equidistant from the two endpoints of the original segment. Perpendicular bisectors are crucial in triangle geometry because the three perpendicular bisectors of a triangle always meet at a single point called the circumcenter, which is the center of the circumscribed circle.
How do you prove two lines are perpendicular?
There are several methods to prove perpendicularity. The most common algebraic method is to show that the product of the two slopes equals -1 (m1 * m2 = -1). You can also use vectors: two lines are perpendicular if the dot product of their direction vectors equals zero (a1*a2 + b1*b2 = 0). In coordinate geometry, another approach is to show that the angle between the lines is 90 degrees using the tangent formula. For segments defined by points, you can use the converse of the Pythagorean theorem: if the sum of squares of two sides equals the square of the third side, the triangle contains a right angle. Each method has its advantages depending on the given information.