Mathematics · 1st year
Straight Lines Made Simple: Slope, Equations, Angles and Distance
Why straight lines matter
A road climbing a hill, a ramp outside a hospital, the graph of your mobile data bill: all of them are straight lines. In Intermediate Maths IB, the chapter on straight lines gives you a small set of tools. Once you know them well, many EAPCET and JEE questions become one-line answers.
This lesson covers four ideas: slope, forms of the equation, angle between two lines and distance of a point from a line.
1. Slope: how steep is the line?
Think of a staircase. If you go 4 steps forward and rise 2 steps up, the steepness is 2/4 = 1/2. That number is the slope (written m).
For two points (x₁, y₁) and (x₂, y₂) on a line:
m = (y₂ − y₁) / (x₂ − x₁)
If the line makes an angle θ with the positive x-axis (the angle of inclination), then m = tan θ.
- Slope positive: the line goes up from left to right.
- Slope negative: it goes down.
- Slope 0: horizontal line (like a flat floor).
- Vertical line: slope is not defined (you cannot divide by 0).
Parallel lines have equal slopes: m₁ = m₂. Perpendicular lines have slopes whose product is −1: m₁ × m₂ = −1 (when neither line is vertical).
2. Forms of the equation of a line
Different questions give you different information. Pick the form that matches what you are given.
| You know | Form |
|---|---|
| Slope m and a point (x₁, y₁) | y − y₁ = m(x − x₁) (point-slope) |
| Two points | y − y₁ = [(y₂ − y₁)/(x₂ − x₁)](x − x₁) |
| Slope m and y-intercept c | y = mx + c (slope-intercept) |
| x-intercept a and y-intercept b | x/a + y/b = 1 (intercept form) |
| Perpendicular distance p from origin and angle α of that perpendicular | x cos α + y sin α = p (normal form) |
Every line can be written in the general form ax + by + c = 0. From it:
- slope = −a/b
- x-intercept = −c/a, y-intercept = −c/b
3. Angle between two lines
Two roads crossing at a junction make an angle. If their slopes are m₁ and m₂, the acute angle θ between them satisfies:
tan θ = |(m₁ − m₂) / (1 + m₁m₂)|
The modulus sign gives you the acute angle. If 1 + m₁m₂ = 0, the lines are perpendicular (θ = 90°).
4. Distance of a point from a line
The shortest distance from a point to a line is always along the perpendicular, like the shortest path from your house to a straight road.
For the point (x₁, y₁) and the line ax + by + c = 0:
d = |ax₁ + by₁ + c| / √(a² + b²)
For two parallel lines ax + by + c₁ = 0 and ax + by + c₂ = 0 (same a and b):
d = |c₁ − c₂| / √(a² + b²)
Key formulas box
- Slope from two pointsm = (y₂ − y₁)/(x₂ − x₁)
- Slope from anglem = tan θ
- Slope of ax + by + c = 0 m = −a/b
- Parallelm₁ = m₂
- Perpendicularm₁ × m₂ = −1
- Point-slopey − y₁ = m(x − x₁)
- Slope-intercepty = mx + c
- Intercept formx/a + y/b = 1
- Normal formx cos α + y sin α = p
- Angle between linestan θ = |(m₁ − m₂)/(1 + m₁m₂)|
- Point to lined = |ax₁ + by₁ + c| / √(a² + b²)
- Parallel linesd = |c₁ − c₂| / √(a² + b²)
Worked examples
Example 1. Line through two points. Find the equation of the line through (2, 3) and (6, 11).
- Slope m = (11 − 3)/(6 − 2) = 8/4 = 2.
- Point-slope form with (2, 3): y − 3 = 2(x − 2).
- Simplify: y − 3 = 2x − 4, so y = 2x − 1.
- General form: 2x − y − 1 = 0.
Example 2. Reading a general equation. For 5x + 3y − 30 = 0, find the slope and intercepts.
- Slope = −a/b = −5/3.
- x-intercept: put y = 0, so 5x = 30, x = 6.
- y-intercept: put x = 0, so 3y = 30, y = 10.
- Intercept form: x/6 + y/10 = 1.
Example 3. Angle between two lines. Find the acute angle between y = 2x + 1 and y = −3x + 5.
- m₁ = 2, m₂ = −3.
- m₁ − m₂ = 2 − (−3) = 5.
- 1 + m₁m₂ = 1 + (2)(−3) = 1 − 6 = −5.
- tan θ = |5/(−5)| = 1, so θ = 45°.
Example 4. Point to line. Find the distance of (2, 1) from 3x + 4y − 5 = 0.
- Substitute: 3(2) + 4(1) − 5 = 6 + 4 − 5 = 5.
- √(3² + 4²) = √25 = 5.
- d = |5|/5 = 1 unit.
Example 5. Two parallel lines. Find the distance between 7x + 24y − 40 = 0 and 7x + 24y + 60 = 0.
- Both have a = 7, b = 24, so they are parallel.
- c₁ = −40, c₂ = 60, so |c₁ − c₂| = |−100| = 100.
- √(7² + 24²) = √625 = 25, so d = 100/25 = 4 units.
Common mistakes
- Mixing the order of points in the slope. If you take y₂ − y₁ on top, take x₂ − x₁ below, in the same order.
- Forgetting the minus sign in −a/b. For 2x − 3y + 6 = 0, the slope is −2/(−3) = 2/3, not −2/3.
- Dropping the modulus. Without |…| in the angle formula, you may get the obtuse angle or a negative value.
- Parallel lines with different coefficients. 6x + 8y − 5 = 0 and 3x + 4y + 5 = 0 are parallel, but you must first divide the first by 2 (3x + 4y − 2.5 = 0) before using |c₁ − c₂|/√(a² + b²).
- Perpendicular slopes. The perpendicular slope is the negative reciprocal (2 becomes −1/2), not just the negative (−2).
- Vertical lines. x = 3 has no slope; do not try to write it as y = mx + c.
Summary
A straight line is fully described by its slope and one point. Slope tells you steepness (m = tan θ, or rise over run, or −a/b from the general form). Choose the equation form that matches the data given: point-slope, two-point, slope-intercept, intercept or normal form, and convert to ax + by + c = 0 when needed. Equal slopes mean parallel lines; a product of −1 means perpendicular lines. The acute angle between two lines comes from tan θ = |(m₁ − m₂)/(1 + m₁m₂)|, and the shortest distance from a point to a line is |ax₁ + by₁ + c|/√(a² + b²). Practise these five or six formulas until they feel automatic, and this chapter becomes some of the quickest marks in the exam.
References
Practice questions
Choose an answer, then press Check: you see at once whether it is right, and why.
If the English and Telugu versions of a question differ, go by the English text, and please tell us about the difference.
Question 1
What is the slope of the line passing through the points (1, 2) and (4, 11)?(1, 2), (4, 11) బిందువుల గుండా వెళ్లే రేఖ వాలు ఎంత?Choose an answer first.
Show answer and explanation
Question 2
What is the slope of the line 2x − 3y + 6 = 0?2x − 3y + 6 = 0 రేఖ వాలు ఎంత?Choose an answer first.
Show answer and explanation
Question 3
Which is the equation of the line with slope 3 passing through (1, −2)?వాలు 3 ఉండి (1, −2) గుండా వెళ్లే రేఖ సమీకరణం ఏది?Choose an answer first.
Show answer and explanation
Question 4
A line cuts the x-axis at 3 and the y-axis at −4. What is its equation?ఒక రేఖ x‑అక్షాన్ని 3 వద్ద, y‑అక్షాన్ని −4 వద్ద ఖండిస్తుంది. దాని సమీకరణం ఏది?Choose an answer first.
Show answer and explanation
Question 5
What is the angle of inclination of the line x − √3 y + 2 = 0 with the positive x-axis?x − √3 y + 2 = 0 రేఖ ధన x‑అక్షంతో చేసే వాలు కోణం ఎంత?Choose an answer first.
Show answer and explanation
Question 6
For what value of k is the line 2x + ky − 3 = 0 perpendicular to the line 3x − 4y + 1 = 0?k విలువ ఎంత అయితే 2x + ky − 3 = 0 రేఖ, 3x − 4y + 1 = 0 రేఖకు లంబంగా ఉంటుంది?Choose an answer first.
Show answer and explanation
Question 7
What is the acute angle between the lines y = x + 4 and y = (2 − √3) x − 1?y = x + 4, y = (2 − √3) x − 1 రేఖల మధ్య అల్పకోణం ఎంత?Choose an answer first.
Show answer and explanation
Question 8
What is the perpendicular distance of the origin from the line 5x + 12y − 26 = 0?మూలబిందువు నుంచి 5x + 12y − 26 = 0 రేఖకు లంబ దూరం ఎంత?Choose an answer first.
Show answer and explanation
Question 9
What is the distance of the point (1, −2) from the line 4x − 3y + 5 = 0?(1, −2) బిందువు నుంచి 4x − 3y + 5 = 0 రేఖకు దూరం ఎంత?Choose an answer first.
Show answer and explanation
Question 10
What is the distance between the parallel lines 6x + 8y − 5 = 0 and 3x + 4y + 5 = 0?6x + 8y − 5 = 0, 3x + 4y + 5 = 0 సమాంతర రేఖల మధ్య దూరం ఎంత?Choose an answer first.
Show answer and explanation