A linear equation in two variables is an equation that can be written as ax + by = c, where a and b are not both zero, for example 2x + 3y = 12. A solution is a pair of numbers (x, y) that makes the equation true, such as (3, 2). There are infinitely many such pairs, and when you plot them they all lie on one straight line. That line *is* the picture of the equation.
This guide covers solutions as ordered pairs, drawing the line, reading solutions from a graph, and turning a word problem into an equation, with four fully worked examples. For one-to-one support through the year, see our Class 9 maths tutor in Gurgaon page.
Where this sits in the Class 9 syllabus
- CBSE 2026-27: "Linear Equations in Two Variables" is a chapter in the Algebra unit (20 of the 80 theory marks). The redesigned curriculum also adds the slope and intercept of a line, and pairs of linear equations solved by substitution and elimination. NCERT's Ganita Manjari Part II has a chapter titled "Two Variables, One Line".
- ICSE Class 9: simultaneous linear equations (elimination, substitution and cross-multiplication) in Algebra, and their graphical solution in Coordinate Geometry.
- Cambridge IGCSE: "Algebra and graphs" and "Coordinate geometry" are two of the nine topic areas of IGCSE Mathematics 0580.
Before starting, students should be comfortable plotting points. If (3, −2) and (−2, 3) still get mixed up, revise the coordinate chapter first, then come back. Students who need a refresher on one-variable equations can start with our post on linear equations for Classes 7–9.
Solutions are ordered pairs
In an equation with one variable, like 2x = 6, there is one answer: x = 3. With two variables, choosing any value for x gives you a matching y. So each solution is a *pair*, written (x, y), with x first. Order matters: (3, 2) and (2, 3) are different points.
Worked example 1: testing pairs
Which of these are solutions of 2x + 3y = 12?
| Pair | 2x + 3y | Equals 12? |
|---|---|---|
| (3, 2) | 2(3) + 3(2) = 6 + 6 = 12 | Yes |
| (6, 0) | 2(6) + 3(0) = 12 + 0 = 12 | Yes |
| (1, 3) | 2(1) + 3(3) = 2 + 9 = 11 | No |
| (−3, 6) | 2(−3) + 3(6) = −6 + 18 = 12 | Yes |
| (0, 4) | 2(0) + 3(4) = 0 + 12 = 12 | Yes |
To *find* new solutions, choose x and solve for y. If x = 9: 18 + 3y = 12, so 3y = −6 and y = −2. So (9, −2) is another solution. Negative and fraction values are allowed unless the question says otherwise.
Drawing the line
Because all solutions lie on one straight line, you need only two points to draw it. Plot a third as a check: if it does not land on the line, one of your calculations is wrong.
Worked example 2: plot y = 2x − 1
Step 1: make a table. Choose easy x values.
| x | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|
| y = 2x − 1 | −3 | −1 | 1 | 3 | 5 |
Step 2: plot the points (−1, −3), (0, −1), (1, 1), (2, 3) and (3, 5), and join them with a ruler. Extend the line past the points and add arrows at both ends: the line goes on for ever.
Step 3: read off the key features.
- It crosses the y-axis at (0, −1). The y-intercept is −1.
- It crosses the x-axis where y = 0: 2x − 1 = 0, so x = 1/2. The x-intercept is 1/2.
- Each time x goes up by 1, y goes up by 2. This rate is the slope (or gradient), 2.
When an equation is written as y = mx + c, m is the slope and c is the y-intercept. For y = 2x − 1, m = 2 and c = −1.
A quick way for the ax + by = c form. For 3x + 2y = 12, put x = 0 to get y = 6, and y = 0 to get x = 4. Plot (0, 6) and (4, 0) and join them. This "cover-up" method is fast when the intercepts are whole numbers.
Reading solutions from a graph
Every point on the line is a solution, and every point not on the line is not. When two lines are drawn on the same axes, the point where they cross is the one pair that satisfies both equations.
Worked example 3: where two lines meet
Solve x + y = 7 and x − y = 1 by drawing, then check algebraically.
Tables.
- x + y = 7: (0, 7), (7, 0), (4, 3)
- x − y = 1: (1, 0), (0, −1), (4, 3)
Both tables contain (4, 3), and the two lines cross there. So x = 4, y = 3.
Check by elimination. Add the equations: (x + y) + (x − y) = 7 + 1, so 2x = 8 and x = 4. Then 4 + y = 7 gives y = 3.
Check by substitution. From x − y = 1, x = y + 1. Then (y + 1) + y = 7, so 2y = 6, y = 3 and x = 4.
All three methods agree. Graphs give a picture and a good estimate; algebra gives the exact answer when the crossing point is not on whole numbers.
From words to an equation
Worked example 4: a shopping problem
A shop sells notebooks at ₹40 each and pens at ₹15 each. Riya spends exactly ₹170.
(a) Write an equation.
Let x be the number of notebooks and y the number of pens.
40x + 15y = 170. Dividing every term by 5: 8x + 3y = 34.
(b) How many notebooks and pens could she have bought?
x and y must be whole numbers, and 8x cannot exceed 34, so x is 0, 1, 2, 3 or 4.
| x | 3y = 34 − 8x | y |
|---|---|---|
| 0 | 34 | 34/3, not whole |
| 1 | 26 | 26/3, not whole |
| 2 | 18 | 6 |
| 3 | 10 | 10/3, not whole |
| 4 | 2 | 2/3, not whole |
The equation has infinitely many solutions, but only x = 2, y = 6 makes sense here. Check: 2 × 40 + 6 × 15 = 80 + 90 = 170.
(c) She bought 8 items in all. Confirm the answer.
A second equation: x + y = 8. From this, y = 8 − x. Substitute: 40x + 15(8 − x) = 170, so 40x + 120 − 15x = 170, 25x = 50 and x = 2. Then y = 6, matching part (b).
This is the main lesson of word problems: define the letters clearly, write the equation from the sentence, then ask whether the answer must be a whole number, positive, or within a range.
Common mistakes
- Swapping x and y when plotting. The first number is always across (x), the second is up or down (y).
- Stopping at one solution. "Find a solution" means one pair; "how many solutions" has the answer "infinitely many" for a single linear equation.
- Only two points plotted with no check point, so an arithmetic slip goes unnoticed.
- Sign errors with negative x values: for y = 2x − 1 at x = −1, y = −2 − 1 = −3, not −1.
- Not dividing through in word problems. 40x + 15y = 170 and 8x + 3y = 34 are the same line; the second is easier to work with.
- Forgetting the context. You cannot buy 10/3 pens.
How to practise at home (10–15 minutes a day)
- Pair hunt: pick an equation such as x + 2y = 10 and find five solutions, including one with a negative number.
- Two-minute graph: draw one line a day using the cover-up method, with a third point as a check.
- Spot the slope: for a line written as y = mx + c, say the slope and y-intercept aloud before plotting.
- Real-life equations: turn a family situation into an equation, such as "two kinds of fruit, total cost ₹200", and list the whole-number answers.
- Weekly check: solve one pair of equations three ways (graph, substitution, elimination) and compare.
Students who are moving towards proofs and reasoning can pair this with our guide on how to write Class 9 geometry proofs. CBSE students considering extra challenge can read about the optional CBSE Class 9 Advanced maths, which includes a coordinate geometry chapter.
How Maths Bodhi helps
Our tutors work one to one on the link between equations and graphs, so that a student can move between a table, a line and an equation with confidence. We follow your child's board and school order. For focused help on graphs, see our coordinate geometry tutor support, and for the full CBSE course, our CBSE Class 9 syllabus 2026-27 guide.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Frequently asked questions
- What is a linear equation in two variables?
- An equation that can be written as ax + by = c, where a and b are not both zero, such as 2x + 3y = 12.
- How many solutions does a linear equation in two variables have?
- Infinitely many. Every point on its straight-line graph is a solution.
- How do you draw the graph of a linear equation?
- Find at least two solutions, plot them, join them with a ruler and extend the line. Plot a third point as a check.
- How do you find a solution from a graph?
- Any point on the line is a solution. For two equations, the point where the two lines cross satisfies both.
- What do the slope and intercept mean?
- In y = mx + c, m is the slope, how much y changes when x goes up by 1, and c is the y-intercept, where the line crosses the y-axis.
- Is this topic in CBSE Class 9 for 2026-27?
- Yes. Linear Equations in Two Variables is part of the Algebra unit, and the curriculum also includes slope, intercept and pairs of linear equations.
