Free Mathematics Class 10 ICSE notes · practise this chapter with an AI quiz

← All study notes

Two Points Are All You Need to Write the Equation of Any Straight Line

Write equations of lines with the point-slope and two-point forms, find lines parallel or perpendicular to a given line through a point, find the median, altitude and perpendicular bisector of a triangle, and work out intercepts and intersections.

What information do you need to write the equation of a line?

A straight line is fixed completely by one point and its slope, or by two points. From either, you can write an equation that every point on the line satisfies:

y−y1=m(x−x1)y - y_1 = m(x - x_1)

This part covers the point-slope and two-point forms, parallel and perpendicular lines through a point, lines in a triangle, and intercepts and intersections.

How do you write the equation of a line using the point-slope form and the two-point form?

With a point (x1,y1)(x_1, y_1) and slope mm, write y−y1=m(x−x1)y - y_1 = m(x - x_1); with two points, first find m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1} and then use either point.

Worked example 1 — point and slope.
Through (2,−3)(2, -3) with slope 44:

y+3=4(x−2)y=4x−114x−y−11=0y + 3 = 4(x - 2) \qquad y = 4x - 11 \qquad 4x - y - 11 = 0

Worked example 2 — two points. Through (−2,5)(-2, 5) and (3,−5)(3, -5):

m=−5−53+2=−2y−5=−2(x+2)2x+y−1=0m = \frac{-5 - 5}{3 + 2} = -2 \qquad y - 5 = -2(x + 2) \qquad 2x + y - 1 = 0

Check with (3,−5)(3, -5): 6−5−1=06 - 5 - 1 = 0.

Worked example 3 — inclination. Through (0,4)(0, 4) making 135∘135^\circ with the x-axis: m=tan⁡135∘=−1m = \tan 135^\circ = -1, so y=−x+4y = -x + 4.

An everyday example. Suppose a gas cylinder has 1212 kg left after 22 days and 88 kg after 66 days. The slope is 8−126−2=−1\frac{8 - 12}{6 - 2} = -1 kg per day, so y−12=−1(x−2)y - 12 = -1(x - 2), giving y=−x+14y = -x + 14: it started with 1414 kg.

The substance. Substitute the second point to check — it must satisfy the final equation.

How do you find the equation of a line parallel or perpendicular to a given line through a given point?

Find the slope of the given line; use the same slope for a parallel line or the negative reciprocal for a perpendicular line, then apply the point-slope form.

Worked example 1 — parallel. Through (4,1)(4, 1), parallel to 3x−2y+5=03x - 2y + 5 = 0, which has slope 32\frac{3}{2}:

y−1=32(x−4)2y−2=3x−123x−2y−10=0y - 1 = \frac{3}{2}(x - 4) \qquad 2y - 2 = 3x - 12 \qquad 3x - 2y - 10 = 0

Worked example 2 — perpendicular. Through (4,1)(4, 1), perpendicular to the same line, so slope −23-\frac{2}{3}:

y−1=−23(x−4)3y−3=−2x+82x+3y−11=0y - 1 = -\frac{2}{3}(x - 4) \qquad 3y - 3 = -2x + 8 \qquad 2x + 3y - 11 = 0

Check: 2(4)+3(1)−11=02(4) + 3(1) - 11 = 0.

Shortcut. A line parallel to ax+by+c=0ax + by + c = 0 has the form ax+by=kax + by = k; a perpendicular line has the form bx−ay=kbx - ay = k. Substitute the point to find kk.

An everyday example. A new service road built alongside a straight highway through a village follows a line parallel to the highway, passing through one fixed point.

The substance. Parallel lines differ only in the constant term, which is why the shortcut works.

How do you find the equation of a median, an altitude or a perpendicular bisector in a triangle?

A median joins a vertex to the mid-point of the opposite side, an altitude passes through a vertex perpendicular to the opposite side, and a perpendicular bisector passes through the mid-point of a side perpendicular to it.

Take the triangle A(2,5)A(2, 5), B(−2,1)B(-2, 1), C(4,−1)C(4, -1).

Median from AA. Mid-point of BCBC is M(1,0)M(1, 0).

mAM=5−02−1=5y=5(x−1)y=5x−5m_{AM} = \frac{5 - 0}{2 - 1} = 5 \qquad y = 5(x - 1) \qquad y = 5x - 5

Altitude from AA. Slope of BC=−1−14+2=−13BC = \frac{-1 - 1}{4 + 2} = -\frac{1}{3}, so the altitude has slope 33.

y−5=3(x−2)y=3x−1y - 5 = 3(x - 2) \qquad y = 3x - 1

Perpendicular bisector of BCBC. Through M(1,0)M(1, 0) with slope 33:

y=3(x−1)y=3x−3y = 3(x - 1) \qquad y = 3x - 3

An everyday example. A street light meant to be equally far from two houses must stand on the perpendicular bisector of the line joining them.

The substance. Here the altitude and the perpendicular bisector are parallel but different; they coincide only when AB=ACAB = AC.

How do you find the intercepts of a line and its point of intersection with another line?

Put y=0y = 0 to get the x-intercept and x=0x = 0 to get the y-intercept; to find where two lines meet, solve their equations simultaneously.

Worked example 1 — intercepts.
For 3x+4y=123x + 4y = 12:

y=0:x=4x=0:y=3y = 0: x = 4 \qquad x = 0: y = 3

It cuts the axes at (4,0)(4, 0) and (0,3)(0, 3), enclosing a triangle of area 12×4×3=6\frac{1}{2} \times 4 \times 3 = 6 square units.

Worked example 2 — intercepts. For 2x−5y+10=02x - 5y + 10 = 0: x-intercept −5-5, y-intercept 22.

Worked example 3 — intersection. Solve 2x+3y=132x + 3y = 13 and 3x−y=33x - y = 3.

y=3x−32x+9x−9=1311x=22x=2,  y=3y = 3x - 3 \qquad 2x + 9x - 9 = 13 \qquad 11x = 22 \qquad x = 2, \; y = 3

The lines meet at (2,3)(2, 3).

An everyday example. Two straight bus routes drawn on a city map cross at the junction given by solving their equations together.

The substance. Dividing 3x+4y=123x + 4y = 12 by 1212 gives x4+y3=1\frac{x}{4} + \frac{y}{3} = 1, where the intercepts can be read directly.
Exam tip

What earns full marks on equations of lines?

Find the slope first, substitute the point with brackets, and present the final equation in the form ax+by+c=0ax + by + c = 0 with integer coefficients.

-
Point-slope
: y−y1=m(x−x1)y - y_1 = m(x - x_1)
- Watch signs with negative coordinates: x−(−2)=x+2x - (-2) = x + 2
- Parallel: same slope; perpendicular: negative reciprocal
- Median: find the mid-point first; altitude: find the perpendicular slope first
- Intercepts: set the other variable to zero
- Check by substituting a known point

The trap. Writing y−5=−2(x−2)y - 5 = -2(x - 2) for a line through (−2,5)(-2, 5). The bracket must be (x+2)(x + 2).
Did you know

Why do the three altitudes of a triangle always meet at a single point?

In the triangle A(2,5)A(2, 5), B(−2,1)B(-2, 1), C(4,−1)C(4, -1), the altitude from AA is y=3x−1y = 3x - 1.

The altitude from BB is perpendicular to ACAC, which has slope −3-3, so its equation is x−3y+5=0x - 3y + 5 = 0. Solving with y=3x−1y = 3x - 1 gives (1,2)(1, 2).

The altitude from CC is perpendicular to ABAB, which has slope 11, so it is y=−x+3y = -x + 3. At x=1x = 1, it also gives y=2y = 2. All three meet at (1,2)(1, 2) — a point called the orthocentre, which exists for every triangle.
Exam relevance

How are equations of lines tested in JEE Main?

This is foundation work for Class 11 Straight Lines, a JEE Main chapter, and it is used throughout Conic Sections.

What gets built on. Straight Lines adds more forms of the equation, the distance of a point from a line, angle bisectors, and families of lines through the intersection of two lines. Finding the orthocentre, centroid and circumcentre from vertices uses exactly the medians, altitudes and perpendicular bisectors in this lesson.

Question types. Multiple-choice and numerical-value questions on equations of lines, triangle centres and intersections.

The trap that costs marks. Sign errors in the point-slope form when a coordinate is negative.
Key takeaways

What must you be able to do from this part?

- Point-slope form: y−y1=m(x−x1)y - y_1 = m(x - x_1)
- Two points: find mm, then use either point; (−2,5)(-2, 5), (3,−5)(3, -5) give 2x+y−1=02x + y - 1 = 0
- Parallel through (4,1)(4, 1) to 3x−2y+5=03x - 2y + 5 = 0: 3x−2y−10=03x - 2y - 10 = 0
- Perpendicular through (4,1)(4, 1): 2x+3y−11=02x + 3y - 11 = 0
- Median uses a mid-point; altitude uses a perpendicular slope; perpendicular bisector uses both
- Intercepts: 3x+4y=123x + 4y = 12 cuts the axes at (4,0)(4, 0) and (0,3)(0, 3)
- Intersection: solve simultaneously; (2,3)(2, 3) in the example

Take the triangle (0,0)(0, 0), (6,0)(6, 0), (2,4)(2, 4) and find the equation of its median from (2,4)(2, 4) before checking that it passes through the centroid.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Equation of a Line — Part 2Create a free account
← Back to all articles