Equation of a line
Every straight line on a coordinate plane has exactly one algebraic address: an equation of the form . Once you know a line's slope and its y-intercept , you can write that equation instantly — and once you have the equation, you can predict every point the line passes through, check whether two lines are parallel or meet at a right angle, and settle geometry questions with pure algebra instead of a ruler and protractor. This section builds that bridge: how slope is measured from two points or from an angle, how the point-slope form lets you write a line's equation from a single point, and how the conditions and turn "are these lines parallel or perpendicular" into a one-line calculation. It is Co-ordinate Geometry inside the ICSE Class 10 Algebra unit, and it leans on nothing beyond slope, one algebraic rearrangement, and the distance idea you already know from Class IX.
A line is fully described by its slope (steepness) and y-intercept (where it crosses the y-axis) through , and knowing any point plus the slope — or any two points — is enough to write that equation down.
The core idea
Slope-intercept form. The standard way to write a straight line's equation is
where: is the slope (gradient) of the line and is the y-intercept, the value of where the line meets the y-axis, i.e. the point .
Slope as an angle. Geometrically, if is the angle the line makes with the positive x-axis (measured counter-clockwise), then
A horizontal line has , so ; a line rising steeply has close to , so is large. A vertical line has , where is undefined — vertical lines cannot be written as at all, and are instead written directly as .
Slope from two points. Given any two points and that lie on the line, the slope is the ratio of rise to run:
where: the numerator is the change in and the denominator is the change in , taken between the same two points and in the same order.
Point-slope form. If you know one point on a line and its slope , the equation of the line is
This single form covers every case you meet in this unit: given a point and a slope, substitute directly; given two points, first find from the slope formula, then apply this form using either point.
Parallel and perpendicular conditions. For two lines with slopes and : parallel lines satisfy , and perpendicular lines satisfy . These two short equalities are the algebraic test for a whole family of geometry questions — no protractor needed.
The goal is to show that a line through a fixed point with slope must satisfy , by requiring that any other point on the same line gives the same slope when paired with — this is the algebraic definition of "lying on the same straight line" and the reasoning applies whether comes from an angle or from two known points.
Step 1. Fix the known point on the line and let be any other point on the same line. Because both points lie on one straight line, the slope computed between them must equal the line's slope — a straight line has one slope everywhere along its length.
Step 2. Apply the slope formula to this pair of points, with as the first point and as the second:
Step 3. Clear the denominator by multiplying both sides by , which is valid for every point on the line except itself:
Step 4. Rewrite this as . This equation is satisfied by itself too (both sides become ), so it correctly describes every point on the line, including the starting point — confirming it is the full equation, not just an approximation valid nearby.
Worked example
Question: Find the equation of the line passing through the points and , and check whether this line is parallel to the line .
Step 1. Find the slope using the two given points, treating as and as :
Step 2. Substitute into the point-slope form using point and :
Step 3. Check the answer by substituting : , which matches point exactly, confirming the equation is correct.
Step 4. Compare slopes to test for parallelism. The line has slope , and our line also has slope , so : the two lines are parallel (they never meet, since they differ only in y-intercept, versus ).
The equation of line is , and it is parallel to .
Competitive stretch
Question: Is the line found above perpendicular to the line ?
Step 1. Read off the slopes directly, since both lines are already in form: the first line has and the line has .
Step 2. Test the perpendicular condition by multiplying the slopes: .
Step 3. Since the product is exactly , the two lines are perpendicular — they cross at a right angle, regardless of where on the plane that crossing point happens to be.
Common traps
- Forgetting to rearrange a line given in general form (like ) into before reading off the slope — the coefficient of is not the slope directly until you isolate .
- Mixing up the parallel condition () with the perpendicular condition () under exam time pressure.
- Sign errors when computing a perpendicular slope , especially when is itself negative or a fraction.
- Swapping coordinate order — substituting as , or mixing which point is "point 1" between the slope formula and the point-slope form.
Ask the tutor: want to practise turning a general-form equation into slope-intercept form, or check your own perpendicular-line answer step by step — ask the AI tutor to work through it with you.
Why does it matter which point I call point 1 in the slope formula?
It does not matter which point you call as long as you stay consistent — subtract in the same order on top and bottom. If you compute you must not accidentally compute , since that flips the sign of the slope. Pick an order, then use it for both differences; swapping which point is "first" for both the numerator and denominator gives the identical slope either way.
If I already have a line's equation, how do I find a point on it quickly?
Pick any convenient value of and substitute it into to get the matching . The easiest choice is usually , which directly gives the y-intercept point ; another easy choice is whatever makes , which gives the x-intercept. Two such points are also enough to plot the whole line on graph paper, since a straight line is fixed by any two of its points.
How is the perpendicular condition m1 times m2 equals -1 actually used in a problem?
It is almost always used to find an unknown slope. If you know one line's slope and need the slope of a line perpendicular to it, rearrange to — flip the fraction and change the sign. For example if , then . Once you have , plug it into the point-slope form with whatever point the new line must pass through, exactly as in the worked example's parallel check but with the product equal to instead of the slopes being equal.