Linear Algebra · Linear Algebra
Equation of a Line: Slope, Parallelism, and Perpendicularity
Explanation
Intuition: Rate of Change
Straight lines describe processes (or relationships) where the rate of change is constant. In a Cartesian coordinate system, the "slope" accurately measures the rate of ascent or descent of the line: how many units we move up (or down) on the -axis for every one unit of forward movement on the -axis.
Formal Definitions
Slope:
For any two distinct points and on a line, the slope is defined as follows (provided ):
Equation of a Line (Point-Slope Form):
A line with slope passing through the point is represented by the equation:
Which can be simplified to the slope-intercept form , where is the -intercept.
Edge Cases - Vertical Lines:
When a line is parallel to the -axis, all points on it share the same -coordinate (meaning ). In this scenario, we would be dividing by zero, so the slope is undefined. The equation of such a line takes the form .
Parallelism & Perpendicularity
Let be two non-vertical lines with slopes respectively.
- **Parallel Lines ():** . The lines share the exact same rate of change and therefore never intersect (unless they are the exact same line).
- **Perpendicular Lines ():** . (Also known as negative reciprocal).
Theorem (Perpendicularity Condition): Two lines that are not parallel to the axes are perpendicular to each other if and only if the product of their slopes is .
Proof (Using Vectors):
The direction vector of the first line can be represented as and the second as .
Two vectors in Euclidean space are orthogonal (perpendicular) if and only if their dot product is zero:
From this, it directly follows: .
(Note: If one line is vertical, the other must be horizontal with a slope of 0).
Visual UI Ideas:
- An interactive graph where the user drags two points on a line, dynamically displaying a "Step Triangle" to illustrate versus .
- A slider adjusting the slope of two lines simultaneously to show how they remain parallel, alongside an animation that rotates one line by to visually demonstrate the slope changing to .
Interactive Visualization
Loading visualization
Worked Examples
Practice
Exercise 1 of 5
1
What is the slope of the line passing through the points and ?
★Quiz
Test your knowledge from this lesson
A mix of questions from the lesson — each attempt varies slightly
Answer at least 4 out of 5 questions correctly to pass (70%)