In Class 9 Mathematics Part II (Ganita Manjari) Chapter 13: Two Variables, One Line, students explore linear equations in two variables and the algebraic and graphical techniques used to solve simultaneous linear systems. To prepare thoroughly for your school assessments and board foundations, check out our complete
This chapter defines the standard form of a linear equation, ax + by + c = 0, and shows that every single linear equation in two variables has an infinite number of solutions, represented geometrically as a straight line on the Cartesian plane. It breaks down the slope-intercept form (y = mx + d), geometric interpretation of slope (rise over run), and rules for positive, negative, zero, and undefined slopes. It introduces two algebraic methods—the Substitution Method and the Elimination Method—and details the ratio criteria (a1/a2, b1/b2, c1/c2) used to determine whether a system has a unique solution (intersecting lines), infinitely many solutions (coincident lines), or no solution (parallel lines). Historical highlights trace systems of linear equations from ancient Babylonian tablets and the Chinese fangcheng method to treatises by Indian mathematicians like Aryabhata, Brahmagupta, and Mahaviracharya.
Imagine you walk up to a fruit cart. The board says: mangoes ₹60 per kg, bananas ₹50 per kg. You pick up some mangoes, some bananas, and the vendor says, "That will be ₹280." Now a puzzle: how many kilos of each did you buy? You don't know — and that is exactly the problem this chapter solves. One unknown is easy. Two unknowns need a new idea: a linear equation in two variables — and later, a whole pair of them, which we can crack with algebra or with graphs.
Let us name the unknowns from the fruit cart:
Cost of mangoes = 60x, cost of bananas = 50y. Total cost is ₹280, so:
60x + 50y = 280
The left-hand side and right-hand side both describe the same thing — the total cost in rupees. This is a linear equation in two variables.
Any equation that can be written as ax + by + c = 0, where a, b, c are real numbers and a and b are not both zero, is a linear equation in two variables.
For example, (1/4)x + (3/5)y − 1/2 = 0 becomes 5x + 12y − 10 = 0 after multiplying by 20.
In standard form ax + by + c = 0, the values of a, b and c are read directly off the equation.
Example: Write 4 = 1.5x − 1.3y in standard form.
Answer: 1.5x − 1.3y − 4 = 0, so a = 1.5, b = −1.3, c = −4. (It can also be written as −1.5x + 1.3y + 4 = 0 with a = −1.5, b = 1.3, c = 4.)
| Equation | Standard Form | a | b | c |
|---|---|---|---|---|
| 5x + 2y = 2.7 | 5x + 2y − 2.7 = 0 | 5 | 2 | −2.7 |
| x/2 − 4 = (3/2)y | x/2 − (3/2)y − 4 = 0 | 1/2 | −3/2 | −4 |
| 3y = 5 | 0x + 3y − 5 = 0 | 0 | 3 | −5 |
Careful with real-life wording! If a notebook costs twice a pen, and t = cost of notebook, p = cost of pen, then the correct equation is t = 2p, not p = 2t. Reading the sentence carefully is half the maths.
A solution of a linear equation in two variables is a pair of values of x and y that satisfies the equation. We write it as an ordered pair (x, y) — the order matters, x first, y second.
Take 3x + 2y = 12:
Pick any value for x, substitute it, and you get a simple one-variable equation in y that you can solve. That is why a linear equation in two variables has infinitely many solutions.
Rewrite 3x + 2y = 12 as y = −(3/2)x + 6. Plot every solution as a point and — surprise — they all lie on a straight line. This is why we call it a "linear" equation.
Every solution of the equation is a point on its graph, and every point on the graph is a solution.

Handy trick: Put x = 0 to get the point where the line cuts the y-axis. Put y = 0 to get the point where it cuts the x-axis. Two such points are enough to draw the whole line.
Example: 4x + 3y = 12 gives (0, 4) and (3, 0). And 2x + 5y = 0 gives (0, 0), (1, −2/5), (5, −2) — a line passing through the origin.
Finding unknowns from a known solution: If (−3, 4) satisfies both 3ax + 4y = −2 and 2x + by = 14, substitute x = −3, y = 4 in each equation separately to get a and b.
Think about it: If c = 0 in ax + by + c = 0, then putting x = 0, y = 0 satisfies the equation. So the line always passes through the origin — no matter what a and b are. In fact, 5x = 0 is the y-axis itself, and 7y = 0 is the x-axis, both of which pass through the origin.
Cycling on a flat road is easy; cycling up a steep hill is hard. The "steepness" of a line is called its slope (or gradient).
For two points A(x₁, y₁) and B(x₂, y₂) on a line:
Slope = Rise / Run = (y₂ − y₁) / (x₂ − x₁)

The slope stays the same no matter which two points of the line you choose. In Fig. 13.7 of the book, from A(2, 0) to B(4, 3) the run is 2 and the rise is 3, so slope = 3/2. Measuring further along the same line from B(4, 3) to D(8, 9) gives 6/4 = 3/2 — the same value.
Reversing the order of the points also gives the same answer: from B(−1, 2) to A(−4, 5) the slope is (5 − 2)/(−4 − (−1)) = 3/(−3) = −1.
The form y = mx + d is called the slope-intercept form. Here:
Why is m the slope? Take two points on y = mx + d. Then y₁ = mx₁ + d and y₂ = mx₂ + d, so
(y₂ − y₁)/(x₂ − x₁) = m(x₂ − x₁)/(x₂ − x₁) = m ✔
The standard form ax + by + c = 0 becomes y = −(a/b)x − (c/b) when b ≠ 0, so m = −a/b and d = −c/b.
In y = mx + d, m tells you the steepness and d tells you where the line crosses the y-axis.
Example: 5x + y = 3 becomes y = −5x + 3. Slope m = −5 means for every 1 unit you move right, y drops by 5 units. And d = 3 means the line crosses the y-axis at (0, 3). Points (0, 3), (1, −2), (−1, 8) all lie on it — check that the slope between any two of them is −5.
| Slope | What the line looks like | Example |
|---|---|---|
| m > 0 (positive) | Rises left to right; x increases, y increases | y = 2x + 1 |
| m < 0 (negative) | Falls left to right; x increases, y decreases | y = −3x + 4 |
| m = 0 (zero) | Horizontal, parallel to x-axis; y is constant | y = 5 |
| Undefined | Vertical, parallel to y-axis; x is constant | x = 2 |

For x = 2, the run is 0, so slope = rise/0, which is undefined — division by zero is not allowed.
Real-life slope: A ramp that rises 2.5 m over a run of 4 m has slope 2.5/4 = 0.625. A wheelchair ramp guideline of 1 cm rise for every 12 cm of length means that for a 18 cm high staircase, the ramp must be 12 × 18 = 216 cm long.
Now for the real power. One equation with two unknowns has infinitely many answers — but two equations together can pin down a single answer.
Everyday example: The cost of 1 paratha + 2 bowls of dahi is ₹90. The cost of 2 parathas + 7 bowls of dahi is ₹260. Can you find the price of each? Yes — that's a pair of linear equations.
Another one: Group A buys 2 adult tickets and 3 child tickets for ₹600. Group B buys 3 adult tickets and 2 child tickets for ₹700. If an adult ticket is ₹x and a child ticket is ₹y:
2x + 3y = 600 and 3x + 2y = 700
In general, a pair of linear equations in two variables is written as:
a₁x + b₁y + c₁ = 0 and a₂x + b₂y + c₂ = 0
where a₁, b₁ are not both zero and a₂, b₂ are not both zero. A solution of the pair is an ordered pair (a, b) that satisfies both equations at the same time.
A classic puzzle: two numbers whose sum is 25 and difference is 11 gives x + y = 25 and x − y = 11.
Our goal: reduce two equations in two variables to one equation in one variable, which we already know how to solve. Two algebraic tools do this job.
Solve: 7x − 15y = 2 … (1) and x + 2y = 3 … (2)
Solution: x = 49/29, y = 19/29. Always substitute both values back to verify.
Angle example: If two angles of a triangle are x° and y° with y = 4x, and the third is 50°, then x + y + 50 = 180. Substituting y = 4x gives 5x = 130, so x = 26° and y = 104°.
Here we make the coefficients of one variable equal and then add or subtract the equations to remove it.
Income problem: Incomes are in ratio 9 : 7, expenditures in ratio 4 : 3, and each saves ₹2000.
Let incomes be 9x and 7x, expenditures 4y and 3y. Then:
9x − 4y = 2000 … (1) and 7x − 3y = 2000 … (2)
So the incomes are ₹18,000 and ₹14,000. Check: 18000 : 14000 = 9 : 7 ✔ and 16000 : 12000 = 4 : 3 ✔
In the elimination method, we remove one variable so that only a single-variable equation is left to solve.
Two-digit number problem: A two-digit number plus its reverse equals 66, and the digits differ by 2. If the number is 10x + y, then (10x + y) + (10y + x) = 66, so 11(x + y) = 66, giving x + y = 6. With x − y = 2, we get x = 4, y = 2 — the number is 42.
Sometimes the variables vanish in a strange way. Look at x − y = 10 and 10x − 10y = 100. Multiplying the first by 10 makes it identical to the second — so both equations are the same line, and there are infinitely many solutions.
Now try x − y = 10 and 10x − 10y = 101. The left sides match after multiplying, but the right sides don't. No pair of values can satisfy both — so there is no solution.
| Ratio condition | Nature of solution | Graph picture |
|---|---|---|
| a₁/a₂ ≠ b₁/b₂ | Unique solution | Lines intersect at one point |
| a₁/a₂ = b₁/b₂ = c₁/c₂ | Infinitely many solutions | Lines coincide |
| a₁/a₂ = b₁/b₂ ≠ c₁/c₂ | No solution | Lines are parallel |
A pinch of history: Solving systems of linear equations is thousands of years old. Babylonian cuneiform tablets (around 2000 BCE) contain such problems, and the ancient Chinese text Nine Chapters on the Mathematical Art has a whole chapter (fangcheng) that solves them by combining columns of counting rods — essentially the elimination method we just learnt, long before Gauss. Indian mathematicians like Āryabhata (499 CE) and Brahmagupta (628 CE) also developed systematic reduction techniques.
Since each linear equation is a straight line, a pair of equations is a pair of lines. A solution must lie on both lines — so it is their point of intersection.
Steps: make a table of at least two points for each equation → plot the points → draw both lines → read off where they meet.

Example: x + 3y = 6 and 2x − 3y = 12. The tables give (0, 2), (6, 0) and (0, −4), (3, −2). The lines cross at (6, 0), so the unique solution is x = 6, y = 0. Notice a₁/a₂ = 1/2 and b₁/b₂ = 3/(−3) = −1, which are unequal — confirming a unique solution.
Example: x + 2y − 4 = 0 and 2x + 4y − 12 = 0. Here a₁/a₂ = 1/2, b₁/b₂ = 2/4 = 1/2, c₁/c₂ = 1/3. Since a₁/a₂ = b₁/b₂ ≠ c₁/c₂, the lines are parallel with no solution.

Example: 2x + 3y = 9 and 4x + 6y = 18. Both give the same line — they are coincident, so there are infinitely many solutions. Here a₁/a₂ = b₁/b₂ = c₁/c₂ = 1/2.

Real-life example (Romila's stationery): 2 erasers and 3 sheets cost ₹9, while 4 erasers and 6 sheets cost ₹18. The equations 2x + 3y = 9 and 4x + 6y = 18 give the same line — so the situation is not enough to fix individual prices. This is a good reminder: real problems don't always have a unique answer!
Think: Can you prove that two lines with equal slope are parallel? (Hint: take y = mx + d₁ and y = mx + d₂ and try to solve them.)
Linear Equation in Two Variables (Standard Form):
Any equation expressible in the form ax + by + c = 0, where a, b, and c are real numbers, and a and b are not both zero.
Here, a is the coefficient of x, b is the coefficient of y, and c is the constant term.
Equations with a single variable such as ax + c = 0 are special cases written as ax + 0y + c = 0.
Solution as an Ordered Pair:
A solution is an ordered pair (x, y) that satisfies the equation.
A single linear equation in two variables possesses infinitely many solutions.
Geometrically, every solution corresponds to a point lying on the line, and conversely, every point on the line is a solution.
If the constant term c = 0 (ax + by = 0), the line passes directly through the origin (0, 0).
Slope and Slope-Intercept Form:
Slope (m): The measure of steepness of a line, defined as the ratio of vertical change (Rise) to horizontal change (Run): Slope (m) = Rise / Run = (y2 - y1) / (x2 - x1)
Slope-Intercept Form: y = mx + d, where m represents the slope and d represents the y-intercept (the point (0, d) where the line crosses the y-axis).
For the standard equation ax + by + c = 0 (with b != 0), slope m = -a/b and y-intercept d = -c/b.
Types of Slopes:
Positive Slope (m > 0): The line rises from left to right.
Negative Slope (m < 0): The line falls from left to right.
Zero Slope (m = 0): A horizontal line parallel to the x-axis (e.g., y = 5).
Undefined Slope: A vertical line parallel to the y-axis (e.g., x = 2; division by zero run is undefined).
Pair of Linear Equations in Two Variables:
General form: a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0.
Substitution Method: Express one variable in terms of the other from one equation and substitute it into the second equation to solve a single-variable linear equation.
Elimination Method: Multiply equations by constants to match the coefficients of one variable, then add or subtract equations to eliminate that variable.
Consistency and Nature of Solutions (Comparison of Ratios):
Intersecting Lines (Unique Solution): a1/a2 != b1/b2 The system is consistent with exactly one common point of intersection.
Coincident Lines (Infinitely Many Solutions): a1/a2 = b1/b2 = c1/c2 Both equations represent the exact same line. The system is dependent and consistent.
Parallel Lines (No Solution): a1/a2 = b1/b2 != c1/c2 The lines never meet. The system is inconsistent.
Q1: How many solutions does a single linear equation in two variables have, and why? A: A single linear equation in two variables (such as 2x + y = 7) has infinitely many solutions. For every real number value chosen for x, there is a unique corresponding real value for y obtained by solving the equation (y = 7 - 2x). Geometrically, this infinite set of ordered pairs forms a continuous straight line on the Cartesian plane.
Q2: What is the geometric meaning of a line having zero slope versus an undefined slope? A: A line with a slope of zero is completely horizontal and parallel to the x-axis (such as y = 3); as x changes, y does not change at all (Rise = 0). A line with an undefined slope is completely vertical and parallel to the y-axis (such as x = 4); the horizontal distance between any two points is zero (Run = 0), and since division by zero is mathematically undefined, the slope is undefined.
Q3: How can we tell if two linear equations are parallel without drawing their graphs? A: By comparing the ratios of their coefficients: if the ratio of the x-coefficients equals the ratio of the y-coefficients, but is not equal to the ratio of the constant terms (a1/a2 = b1/b2 != c1/c2), the two lines have identical slopes but different y-intercepts. Therefore, they are parallel and have no common solution.
Q1: (Exercise Set 13.5, Q1-ii) The difference between two numbers is 26 and one number is three times the other. Find the numbers using algebraic methods. A:
Let the two numbers be x and y, where x is the larger number (x > y).
According to the given conditions: Equation (1): x - y = 26 Equation (2): x = 3y
Using the Substitution Method:
Substitute x = 3y from Equation (2) into Equation (1): 3y - y = 26 2y = 26 y = 13
Substitute y = 13 into Equation (2): x = 3 * 13 = 39
Conclusion: The two numbers are 39 and 13.
Verification: 39 - 13 = 26, and 39 = 3 * 13.
Q2: (Exercise Set 13.5, Q1-iv) The taxi charges in a city consist of a fixed charge together with the charge for the distance covered per km. For a distance of 10 km, the total amount paid is Rs 155, and for a journey of 15 km, the total amount paid is Rs 220. Find the fixed charge and the charge per km. How much does a person pay for traveling 25 km? A:
Let the fixed charge be Rs x and the running charge per km be Rs y.
Setting up the pair of linear equations: Equation (1): x + 10y = 155 Equation (2): x + 15y = 220
Using the Elimination Method:
Subtract Equation (1) from Equation (2): (x + 15y) - (x + 10y) = 220 - 155 5y = 65 y = 13
The running charge per km is Rs 13.
Substitute y = 13 into Equation (1): x + 10(13) = 155 x + 130 = 155 x = 155 - 130 = 25
The fixed charge is Rs 25.
Cost for 25 km: Total Cost = x + 25y = 25 + 25(13) = 25 + 325 = Rs 350.
Q3: (Exercise Set 13.5, Q7 — Mahaviracharya, Ganita Sara Sangraha, c. 850 CE) The price of 9 citrons and 7 fragrant wood-apples is 107; the price of 7 citrons and 9 fragrant wood-apples is 101. Find the price of each fruit. A:
Let the cost of one citron be Rs x and the cost of one wood-apple be Rs y. Equation (1): 9x + 7y = 107 Equation (2): 7x + 9y = 101
Notice that the coefficients of x and y are interchanged. We solve this by adding and subtracting the equations:
Step 1: Add Equation (1) and Equation (2): (9x + 7x) + (7y + 9y) = 107 + 101 16x + 16y = 208 Divide both sides by 16: x + y = 13 --- Equation (3)
Step 2: Subtract Equation (2) from Equation (1): (9x - 7x) + (7y - 9y) = 107 - 101 2x - 2y = 6 Divide both sides by 2: x - y = 3 --- Equation (4)
Step 3: Solve the simplified Equations (3) and (4): Add (3) and (4): 2x = 16 => x = 8 Subtract (4) from (3): 2y = 10 => y = 5
Conclusion: The price of one citron is Rs 8 and the price of one fragrant wood-apple is Rs 5.
Q4: (End-of-Chapter Exercises, Q2-v) In the linear temperature conversion formula F = (9/5)C + 32, find the temperature that is numerically the same in both Fahrenheit and Celsius. A:
Set F = C in the conversion equation: C = (9/5)C + 32
Subtract (9/5)C from both sides: C - (9/5)C = 32 (5C - 9C) / 5 = 32 -4C / 5 = 32
Multiply by 5: -4C = 160
Divide by -4: C = -40
Conclusion: The temperature that is numerically identical in both scales is -40 degrees (-40 degrees C = -40 degrees F).
1. The standard form of a linear equation in two variables is ax + by + c = 0. Which condition must be satisfied by a and b?
A) a = 0 and b = 0
B) a and b are integers only
C) a and b are not both zero
D) c must be a positive number
Answer: C) a and b are not both zero
2. What is the slope of the linear equation 3x + 2y - 6 = 0?
A) 3/2
B) -3/2
C) 3
D) -3
Answer: B) -3/2 (In y = mx + d form: 2y = -3x + 6 => y = (-3/2)x + 3. Hence m = -3/2).
3. The pair of linear equations 2x + 3y = 9 and 4x + 6y = 18 represents lines that are:
A) Intersecting at exactly one point
B) Parallel to each other
C) Coincident (overlapping)
D) Perpendicular to each other
Answer: C) Coincident (a1/a2 = 2/4 = 1/2; b1/b2 = 3/6 = 1/2; c1/c2 = -9/-18 = 1/2. Since all ratios are equal, there are infinitely many solutions).
4. If a line is represented by the equation y = 4, what is its slope?
A) 4
B) 1
C) 0
D) Undefined
Answer: C) 0 (y = 4 is a horizontal line parallel to the x-axis with Rise = 0).
5. For what value of p will the system 4x + py + 8 = 0 and 2x + 2y + 2 = 0 have a unique solution?
A) p = 4
B) p != 4
C) p = 2
D) Any real value of p
Answer: B) p != 4 (For a unique solution: a1/a2 != b1/b2 => 4/2 != p/2 => 2 != p/2 => p != 4).
Standard Form: ax + by + c = 0, where a and b are real numbers and not both zero.
Slope-Intercept Form: y = mx + d, where m is the slope (-a/b) and d is the y-intercept (-c/b).
A single linear equation has infinitely many solutions; its graph is a straight line.
If c = 0, the line passes through the origin (0, 0).
Slope Formula: m = (y2 - y1) / (x2 - x1).
Unique Solution (Consistent): a1/a2 != b1/b2 (lines intersect at one point).
Infinitely Many Solutions (Dependent/Consistent): a1/a2 = b1/b2 = c1/c2 (lines coincide).
No Solution (Inconsistent): a1/a2 = b1/b2 != c1/c2 (lines are parallel).
Algebraic methods include Substitution and Elimination.
Interactive Quiz:
Chapter Notes:
Full Solutions:
Next Chapter: Maths of Space : Surface Area and Volume Class 9 Mathematics Solutions