An Initiative by SAARTHI IAS
Maarg Manthan · Topic 21.2

Slope of a Line and Different Forms of the Equation of a Line

Quantitative Aptitude › Coordinate Geometry · Topic 21.2

The slope of a line measures how steeply it rises and is the change in y divided by the change in x between any two points on it. The equation of a line can be written in point-slope, two-point, slope-intercept or general form, and all of them describe the same straight line.

Share:
Slope of a Line and Different Forms of the Equation of a Line - Quantitative Aptitude - MaargX UPSC Maarg Manthan

Quick Answer

The slope of a line measures how steeply it rises and is the change in y divided by the change in x between any two points on it. The equation of a line can be written in point-slope, two-point, slope-intercept or general form, and all of them describe the same straight line.

At a Glance

  • Slope m = (y₂ – y₁)/(x₂ – x₁)
  • Slope and angle m = tan θ
  • Point-slope form y – y₁ = m(x – x₁)
  • Two-point form (y – y₁)/(y₂ – y₁) = (x – x₁)/(x₂ – x₁)
  • General form Ax + By + C = 0, slope = -A/B

Where Does It Fit?

This topic builds on Distance Formula and Section Formula, where distances and ratios were found. It supplies the slope used by Conditions for Collinearity, Parallelism and Perpendicularity of Lines for parallel and perpendicular lines, and its forms of the equation are extended in Equation of a Line in Intercept Form, Slope-Intercept Form and Normal Form.

What Is the Slope of a Line?

In short: the slope tells how many units y changes for each one-unit change in x. A larger positive slope means a steeper rise, and a negative slope means the line falls from left to right.

Slope formulas

  • m = (y₂ – y₁)/(x₂ – x₁), the same for any two points on the line.
  • m = tan θ, where θ is the angle the line makes with the positive direction of the x-axis.
  • A horizontal line has slope 0, and a vertical line has an undefined slope.
Angle θ Slope tan θ Direction
0° 0 Horizontal
30° 1/√3 Rising gently
45° 1 Rising at equal rate
60° √3 Rising steeply
90° Undefined Vertical
135° -1 Falling
  • Sign of slope: positive for an upward line, negative for a downward line, zero for a horizontal line.
  • Vertical line: the equation is x = a. The change in x is zero, so the slope is undefined.

How Do You Write the Equation of a Line?

In short: pick the form that matches the information given. Use the point-slope form when a point and a slope are known, the two-point form when two points are known, and the general form to read the slope from an equation.

Given Form Equation
One point and slope m Point-slope form y – y₁ = m(x – x₁)
Two points Two-point form y – y₁ = [(y₂ – y₁)/(x₂ – x₁)](x – x₁)
Slope m and y-intercept c Slope-intercept form y = mx + c
Any line General form Ax + By + C = 0
  • Slope from the general form: for Ax + By + C = 0, the slope is -A/B, the x-intercept is -C/A and the y-intercept is -C/B.
  • Special lines: the x-axis is y = 0, the y-axis is x = 0, and the line through the origin with slope m is y = mx.

More forms, such as the intercept form, are in Equation of a Line in Intercept Form, Slope-Intercept Form and Normal Form.

Solved Examples

Example 1

Question: Find the slope of the line through (2, 3) and (6, 11).

  1. Change in y = 11 – 3 = 8.
  2. Change in x = 6 – 2 = 4.
  3. Slope = 8/4 = 2.

Answer: 2.

Example 2

Question: Find the equation of the line through (1, 2) with slope 3.

  1. Use y – y₁ = m(x – x₁): y – 2 = 3(x – 1).
  2. Expand: y – 2 = 3x – 3, so y = 3x – 1.

Answer: y = 3x – 1, or 3x – y – 1 = 0.

Example 3

Question: Find the equation of the line through (2, 3) and (4, 7).

  1. Slope = (7 – 3)/(4 – 2) = 2.
  2. Use the point (2, 3): y – 3 = 2(x – 2).
  3. So y = 2x – 1.

Answer: y = 2x – 1.

Example 4

Question: Find the slope and the intercepts of 3x + 4y – 12 = 0.

  1. Slope = -A/B = -3/4.
  2. Put y = 0: 3x = 12, so the x-intercept is 4.
  3. Put x = 0: 4y = 12, so the y-intercept is 3.

Answer: Slope -3/4, x-intercept 4, y-intercept 3.

Example 5

Question: A line has slope √3. What angle does it make with the x-axis?

  1. m = tan θ = √3.
  2. tan 60° = √3.

Answer: θ = 60°.

Shortcuts and Tricks

  • Check the slope by plugging both points into the final equation. Both must satisfy it.
  • To find a slope from Ax + By + C = 0 quickly, remember -A/B without rearranging.
  • For lines through the origin, the equation is y = mx, so only one number is needed.
  • Convert angles to slopes using the table: 45° gives 1, 60° gives √3, 30° gives 1/√3.
  • If x-values of two points are equal, the line is vertical, and the equation is x = that value.

Common Mistakes

  • Dividing the x-difference by the y-difference. Slope is change in y over change in x.
  • Mixing the order of points in the numerator and denominator, which changes the sign.
  • Using -B/A as the slope of Ax + By + C = 0. The correct slope is -A/B.
  • Giving a number as the slope of a vertical line. It is undefined.
  • Forgetting to distribute the slope when expanding y – y₁ = m(x – x₁).

Practice Questions

  1. What is the slope of the x-axis?
  2. Find the slope of 2x – 3y + 6 = 0.
  3. What is the slope of a line making 45° with the x-axis?
  4. Find the slope of the line through the origin and (3, -6).
  5. Write the equation of the line with slope -1 through (0, 5).
  6. Find the equation of the line through (1, 1) and (2, 3).

Answers: 1) 0; 2) 2/3; 3) 1; 4) -2; 5) y = -x + 5, or x + y = 5; 6) y = 2x – 1.

Why Is This Topic Important?

  • Foundation Slope links algebra and geometry and is needed for parallel and perpendicular lines.
  • Exam use Direct questions ask for a slope or an equation from two points.
  • Speed Reading the slope from the general form is quick.
  • Link to graphs The graph of a linear function in Graphs of Linear, Quadratic and Modulus Functions is a line with a slope.

What Comes Next?

The next topic is Area of a Triangle Using Coordinates of Its Vertices. It uses the coordinates of three points to find the area of the triangle they form.

Key Terms and Formulas

  • Slope (gradient) Change in y divided by change in x
  • Angle of inclination Angle a line makes with the positive x-axis
  • Intercept Where a line cuts an axis
  • Point-slope form y – y₁ = m(x – x₁)
  • General form Ax + By + C = 0
  • Parallel to x-axis A line with slope 0

Exam Corner

Points to Remember

  • Slope = rise over run = tan of the angle.
  • Horizontal lines have slope 0, and vertical lines have no slope.
  • The general form Ax + By + C = 0 has slope -A/B.
  • Two points are enough to find the line.
  • Always verify with both points.

Do Not Confuse With

  • Slope vs intercept Slope is steepness, and intercept is where the line cuts an axis.
  • Zero vs undefined slope A horizontal line has slope 0, and a vertical line has an undefined slope.
  • -A/B vs -B/A Slope is -A/B, and -B/A is not the slope.
  • x = a vs y = b x = a is a vertical line, and y = b is a horizontal line.

Memory Hook

Rise over run is slope; for Ax plus By plus C, minus A over B.

GS Relevance

Slope and line equations for SSC CGL, CAT and CSAT: finding slopes, writing equations from points, and reading slope from the general form.

Frequently Asked Questions

What is the slope of a line?

The slope of a line is the ratio of the change in y to the change in x between any two points on the line. It equals the tangent of the angle the line makes with the positive x-axis, so a horizontal line has slope zero and a vertical line has no defined slope.

How do you find the equation of a line through two points?

To find the equation of a line through two points, first compute the slope as the difference of the y-values divided by the difference of the x-values. Then use the point-slope form y minus y1 equals m times (x minus x1) with either point, and simplify.

What is the slope of the line Ax + By + C = 0?

The slope of the line Ax plus By plus C equals zero is minus A divided by B, provided B is not zero. The x-intercept is minus C over A and the y-intercept is minus C over B, which can be found by setting y or x equal to zero.

What is the slope of a horizontal and a vertical line?

A horizontal line has a slope of zero because its y-value never changes, and its equation is y equals a constant. A vertical line has an undefined slope because its x-value never changes, and its equation is x equals a constant.

How is slope related to the angle of a line?

The slope of a line equals the tangent of its angle of inclination with the positive x-axis. A slope of 1 means 45 degrees, a slope of root 3 means 60 degrees, and a negative slope means the angle is obtuse, such as 135 degrees for a slope of minus 1.

PYQ Practice — Statement Analysis

1 The slope of the line 2x + 3y = 6 is 2/3.
False

The slope is -A/B = -2/3.

2 A line parallel to the x-axis has slope 0.
True

Its y-value never changes.

3 The line through (1, 1) and (2, 3) has slope 2.
True

The slope is (3 - 1)/(2 - 1) = 2.

4 The slope of a vertical line is 0.
False

The slope of a vertical line is undefined.

Share: