This page reviews the main ideas behind the slope of a line and the different forms of linear equations. After a concise summary of the theory, you will find carefully selected practice questions with complete, step-by-step solutions.
If a line passes through two distinct points \( P_1(x_1, y_1) \) and \( P_2(x_2, y_2) \), its slope is defined by
\[ m = \frac{y_2 - y_1}{x_2 - x_1}, \qquad x_2 \neq x_1. \]
The general (or standard) form of the equation of a straight line is
\[ Ax + By = C, \]
where \(A\), \(B\), and \(C\) are constants, and \(A\) and \(B\) are not both zero. Every straight line in the Cartesian plane can be represented in this form.
If the slope \(m\) of a line is known, its equation can be written as
\[ y = mx + b, \]
where \(m\) is the slope and \(b\) is the \(y\)-intercept. This is called the slope–intercept form.
An equation of a line with slope \(m\) passing through the point \(P(x_1, y_1)\) is
\[ y - y_1 = m(x - x_1). \]
If \(A = 0\) in the general equation \(Ax + By = C\), we obtain
\[ By = C \quad \Rightarrow \quad y = \frac{C}{B} = k, \]
which represents a horizontal line with slope \(0\).
If \(B = 0\), then
\[ Ax = C \quad \Rightarrow \quad x = \frac{C}{A} = h, \]
which represents a vertical line with undefined slope.
Two non-vertical lines are parallel if and only if their slopes are equal.
Two non-vertical lines are perpendicular if and only if their slopes \(m_1\) and \(m_2\) satisfy
\[ m_1 m_2 = -1. \]
Find the slope of the line passing through the given points:
Find the equation of the line that passes through \((-2, 5)\) and has slope \(-4\).
Using the point–slope form,
\[ y - 5 = -4(x + 2). \]
\[ y = -4x - 3. \]
Find the equation of the line passing through \((0, -1)\) and \((3, 5)\).
First compute the slope:
\[ m = \frac{5 - (-1)}{3 - 0} = 2. \]
Using the point–slope form with \((0, -1)\):
\[ y + 1 = 2x \quad \Rightarrow \quad y = 2x - 1. \]
Find the slope of the line given by
\[ -2x + 4y = 6. \]
Rewrite in slope–intercept form:
\[ 4y = 2x + 6 \quad \Rightarrow \quad y = \tfrac{1}{2}x + \tfrac{3}{2}. \]
The slope is \(\tfrac{1}{2}\).