📘 CodingMarble Learn

Straight Lines (Class 11): Slope, Forms of the Equation and Distance

The slope of a line is rise ÷ run = (y₂ − y₁)/(x₂ − x₁) = tan θ. Parallel lines have equal slopes; perpendicular lines have m₁m₂ = −1. The angle between two lines is given by tan θ = |(m₂ − m₁)/(1 + m₁m₂)|. A line can be written as y = b or x = a (parallel to an axis), y − y₁ = m(x − x₁) (point-slope), y = mx + c (slope-intercept), the two-point form, or x/a + y/b = 1 (intercept form). The distance of (x₁, y₁) from Ax + By + C = 0 is |Ax₁ + By₁ + C|/√(A² + B²).

🎬 Step-by-step story

  1. Slope tells how steep a line is. Go from A to B: count how far you go up (rise) and how far right (run). Slope m = rise ÷ run = tan θ. Parallel lines have the same slope.
  2. Two lines cross and make an angle. We can find it from the slopes alone: tan θ = |(m₂ − m₁)/(1 + m₁m₂)|. For m₁ = 1/2 and m₂ = 3 the angle is 45°.
  3. Some lines are flat (y = 2) or standing straight (x = −3). If you know one point and the slope, you can write the line: y − y₁ = m(x − x₁). It becomes y = mx + c.
  4. Two points fix one line: the two-point form. If you know where the line cuts the x-axis (a) and the y-axis (b), write x/a + y/b = 1.
  5. How far is a point from a line? Drop a perpendicular. Its length is d = |Ax₁ + By₁ + C| / √(A² + B²).
  6. Free play: change the slope m, the intercept c and the point P. Watch the equation, the angle and the distance change.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is the slope of a vertical line not defined?

For a vertical line the run is 0. Rise ÷ 0 cannot be worked out, so the slope is not defined. Its equation is simply x = a.

Does it matter which point I call (x₁, y₁)?

No. (3 − (−1))/(2 − (−3)) and (−1 − 3)/(−3 − 2) both give 4/5. Just keep the same order on top and bottom.

Why do perpendicular slopes multiply to −1?

Turn a line by 90°: rise and run swap places and one changes sign. So slope 4/5 becomes −5/4, and 4/5 × (−5/4) = −1.

Why is there an absolute value in tan θ?

Two crossing lines make an acute and an obtuse angle. The absolute value picks the acute one; the other is 180° − θ.

When should I use intercept form?

When you know where the line cuts both axes, or when a question asks for intercepts. Divide the general form by −C to reach x/a + y/b = 1.

Can the distance come out negative?

No. The top has an absolute value. The sign of Ax₁ + By₁ + C only tells which side of the line the point is on.

Slope of a line

The slope (or gradient) tells how steep a line is. Walk along the line from one point to another. The change in y is the rise. The change in x is the run.

m = rise ÷ run = (y₂ − y₁)/(x₂ − x₁). If the line makes angle θ with the positive x-axis, then m = tan θ (θ ≠ 90°).

Parallel, perpendicular and collinear

Two lines are parallel when their slopes are equal: m₁ = m₂. They are perpendicular when m₁ × m₂ = −1 (neither line vertical). Three points A, B, C lie on one line (collinear) when slope AB = slope BC.

Angle between two lines

Two crossing lines make two angles that add to 180°. If the slopes are m₁ and m₂ and 1 + m₁m₂ ≠ 0, the acute angle θ is found from

tan θ = |(m₂ − m₁)/(1 + m₁m₂)|

The other angle is 180° − θ. If 1 + m₁m₂ = 0 the lines are perpendicular (θ = 90°).

Forms of the equation of a line

The equation of a line is a rule that every point on the line obeys, and no other point does.

Every line can be written as Ax + By + C = 0 (general form). Its slope is −A/B and its y-intercept is −C/B.

Distance of a point from a line

The shortest way from a point to a line is the perpendicular. For point P(x₁, y₁) and line Ax + By + C = 0:

d = |Ax₁ + By₁ + C| / √(A² + B²)

Two parallel lines Ax + By + C₁ = 0 and Ax + By + C₂ = 0 are a fixed distance apart: d = |C₁ − C₂| / √(A² + B²). Make sure A and B are the same in both lines before using it.

Key formulas and definitions

Worked examples

1. Find the slope of the line through (2, −3) and (6, 5), and the angle it makes with the x-axis.

Step 1: m = (5 − (−3))/(6 − 2) = 8/4 = 2. Step 2: tan θ = 2, so θ = tan⁻¹ 2 ≈ 63.4°.

2. Show that A(1, 2), B(3, 6) and C(4, 8) are collinear.

Step 1: slope AB = (6 − 2)/(3 − 1) = 2. Step 2: slope BC = (8 − 6)/(4 − 3) = 2. Step 3: equal slopes and B is common, so A, B, C lie on one line.

3. Find the equation of the line through (−1, 4) with slope −3.

Step 1: point-slope form y − 4 = −3(x + 1). Step 2: y − 4 = −3x − 3. Step 3: y = −3x + 1, or 3x + y − 1 = 0.

4. Find the equation of the line through (1, −1) and (3, 5).

Step 1: m = (5 + 1)/(3 − 1) = 3. Step 2: y + 1 = 3(x − 1). Step 3: y = 3x − 4, or 3x − y − 4 = 0.

5. A line cuts off intercepts 6 and −4 on the x- and y-axes. Find its equation.

Step 1: intercept form x/6 + y/(−4) = 1. Step 2: multiply by 12: 2x − 3y = 12. Step 3: 2x − 3y − 12 = 0.

6. Find the acute angle between y = 2x + 1 and y = −3x + 5.

Step 1: m₁ = 2, m₂ = −3. Step 2: tan θ = |(−3 − 2)/(1 + 2(−3))| = |−5/−5| = 1. Step 3: θ = 45°.

7. Find the distance of (2, 3) from the line 5x − 12y + 7 = 0.

Step 1: d = |5(2) − 12(3) + 7| / √(25 + 144). Step 2: = |10 − 36 + 7| / 13 = |−19| / 13. Step 3: d = 19/13 ≈ 1.46 units.

8. Find the distance between the parallel lines 3x − 4y + 7 = 0 and 6x − 8y − 1 = 0.

Step 1: make A, B equal: divide the second by 2 → 3x − 4y − 1/2 = 0. Step 2: d = |7 − (−1/2)| / √(9 + 16) = (15/2)/5. Step 3: d = 3/2 = 1.5 units.

9. Find the equation of the line through (2, 3) perpendicular to 4x − 3y + 5 = 0.

Step 1: slope of given line = −A/B = 4/3. Step 2: perpendicular slope = −3/4. Step 3: y − 3 = −3/4 (x − 2) → 4y − 12 = −3x + 6 → 3x + 4y − 18 = 0.

Common mistakes

Practice quiz

1. Slope of the line through (1, 2) and (4, 8) is
2. Lines with slopes 3 and −1/3 are
3. The slope of the line 2x + 3y − 6 = 0 is
4. The line x/3 + y/5 = 1 cuts the y-axis at
5. Distance of the origin from 3x + 4y = 10 is

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the slope of a line in Class 11?

It is (y₂ − y₁)/(x₂ − x₁), the rise over the run, and equals tan θ where θ is the angle the line makes with the positive x-axis.

How many forms of the equation of a line are there?

The main ones are: parallel to an axis, point-slope, slope-intercept, two-point, intercept and the general form Ax + By + C = 0.

What is the formula for the distance of a point from a line?

d = |Ax₁ + By₁ + C| / √(A² + B²) for the point (x₁, y₁) and the line Ax + By + C = 0.

Where this is taught

Canada (Ontario)Grade 10Modelling Linear Relations
NetherlandsVWO 6 (eindexamenjaar)Geometry with coordinates (part 2)
PolandLiceum ogólnokształcące, klasa IIIAnalytic geometry in the plane
RomaniaClasa a IX-aGeometry: Analytic geometry
RomaniaClasa a IX-aGeometry: Analytic geometry
RomaniaClasa a X-aGeometry
RomaniaClasa a X-aGeometry
RomaniaClasa a X-aGeometry
CBSE (India)Class 11Coordinate Geometry
CBSE (India)Class 11Coordinate Geometry
England (GCSE, A level)Year 12C Coordinate geometry in the (x, y) plane
Japan高校(専門学科)1〜3年Advanced Mathematics II
Japan高校2年Figures and equations
South Korea고등학교 1학년Equations of figures
South Korea고등학교 1학년Equations of figures
FranceSecondeGeometry
China高二Ch.2 Lines and circles

Learn first

Learn next

Related lessons

All Maths lessons