The form ax + by + c = 0
An equation of the form ax + by + c = 0, where a, b and c are real numbers and a and b are not both zero, is a linear equation in two variables. The variables are usually x and y, and each appears only to the power 1. There is no product xy and no square. So 2x + 3y - 6 = 0 is linear in two variables, while x² + y = 4 and xy = 6 are not. Any equivalent rearrangement is the same equation. 2x + 3y = 6 is 2x + 3y - 6 = 0, so a = 2, b = 3 and c = -6. Multiplying through by a non-zero number does not create a new line: x + y = 5 and 2x + 2y = 10 have the same solutions. The Class 8 chapter on linear equations in one variable solved ax + b = 0 for a single number. That equation can be rewritten with a second variable whose coefficient is zero, as ax + 0·y + b = 0. It is then a linear equation in two variables, but its graph is a special line, treated later in this chapter. If both a and b were zero, the statement would be c = 0. That is either false for every pair, or true for every pair. It does not describe a line, so it is excluded.
- ax + by + c = 0, with a and b not both zero, and with no higher power of x or y.
- 2x + 3y = 6 is the same equation as 2x + 3y - 6 = 0.
- An equivalent equation, such as twice each term, has the same graph.
A solution is an ordered pair
A solution is a pair of values, one for x and one for y, that makes the equation true. The pair is written (x, y). The order matters: (2, 5) means x = 2 and y = 5, which is not the point (5, 2). For x + 2y = 8, the pair (0, 4) works because 0 + 8 = 8, and (2, 3) works because 2 + 6 = 8. The pair (1, 1) does not, because 1 + 2 = 3, not 8. Unlike a linear equation in one variable, there is not a single solution to hunt for. Choose any convenient number for one variable and the equation fixes the other, provided the coefficient you need is not zero. Choosing x = 0 gives the point where the line meets the y-axis. Choosing y = 0 gives the point where it meets the x-axis. Choosing a third value is a check, not a new kind of solution. There are infinitely many choices, so there are infinitely many solutions. Infinitely many does not mean that every pair works. Only the pairs that satisfy the equation are solutions. One equation cannot by itself pick out one price, one age or one fare. A second, independent condition would be needed, and solving two equations together is the Class 10 chapter.
- (x, y) is a solution only when substitution makes the equation true.
- There are infinitely many solutions, not one, and not every pair in the plane.
- One linear equation does not give a unique pair. A second equation is Class 10 work.
The graph is a straight line
Plot the solutions on the Cartesian plane from the Class 9 coordinate geometry chapter. Every solution of ax + by + c = 0 lies on one straight line, and every point of that line is a solution. The graph is the whole line, not the segment joining two convenient points. If (0, 4) and (4, 0) both satisfy x + y = 4, the point (5, -1) does too, because 5 + (-1) = 4, and so does (-1, 5). Those points lie on the same line extended past the axes. A point not on the line is not a solution. For x + y = 4, the point (1, 2) gives 3, so it is off the line. Two different-looking equations can share the line, as x + y = 5 and 2x + 2y = 10 do. Two equations that are not equivalent have different lines. Those lines may cross in one point, and that common point is the common solution, but finding it by solving the pair is outside this chapter. Here, a point is checked by substitution, or read only after the line has been drawn from the one equation. Two points determine the line. A third plotted point that does not lie on it means an arithmetic or plotting error, not a curve.
- Solution set of one linear equation in two variables = one straight line.
- The line continues beyond the two points used to draw it.
- A point is on the graph exactly when its coordinates satisfy the equation.
Drawing the graph from a table
Rewrite the equation so one variable is easy to find. From 2x + y = 6, y = 6 - 2x. Make a short table. When x = 0, y = 6, so plot (0, 6). When y = 0, 2x = 6 and x = 3, so plot (3, 0). When x = 1, y = 4, so plot (1, 4) as a check. If the third point is not on the line through the first two, recalculate before ruling the line. Use a ruler. Label the axes and the equation beside the line. The same method works when a value is negative or a fraction. For x - y = 2, the intercepts are (2, 0) and (0, -2). A third point is (4, 2), because 4 - 2 = 2. Fractions are allowed: if 3y = 2x + 1 and x = 1, then y = 1, so (1, 1) is a solution; if x = 4, then 3y = 9 and y = 3. Choosing x so that y is an integer keeps the plot clean, but a fractional coordinate is still a genuine solution. Do not join the points with a freehand curve, and do not stop at the intercepts. After the line is drawn, any new x read from it must be checked in the equation if the question asks for an exact value.
- Find two solutions, plot them, and use a third as a check.
- The intercepts are the points where x = 0 and where y = 0.
- Join the points with a ruler and extend the straight line.
Lines parallel to the axes, and lines through the origin
If b = 0 and a is not zero, ax + c = 0 fixes x and says nothing about y. The equation x = 4, or x + 0·y - 4 = 0, is satisfied by every pair (4, y). Its graph is the vertical line through (4, 0), parallel to the y-axis. If a = 0 and b is not zero, y is fixed. The equation y = -2 is the horizontal line through (0, -2), parallel to the x-axis. These two lines meet at (4, -2). A vertical line is still the graph of a linear equation in two variables, even though it is not the graph of a function that gives one y for each x. The equation y = mx, such as y = 2x, is satisfied by (0, 0). Its graph passes through the origin. The equation y = mx + k with k not zero does not: y = 2x + 3 passes through (0, 3). On y = 2x the y-coordinate is always twice the x-coordinate, so (1, 2) and (2, 4) lie on it and (1, 3) does not. Do not describe x = 4 as a single point. The number 4 is the fixed coordinate; the line is the set of all points with that x-coordinate.
- x = a is a vertical line, parallel to the y-axis.
- y = b is a horizontal line, parallel to the x-axis.
- y = mx passes through the origin. y = mx + k, with k not zero, does not.
Using one equation in a situation
Many Class 9 word problems ask only for the equation and for some solutions, not for one official pair. If a notebook costs twice as much as a pen, and the costs are ₹x and ₹y, then x = 2y, or x - 2y = 0. The pairs (10, 5) and (20, 10) both fit. The prices are not fixed until another fact is given. A constant force of 5 units does work y over a distance x in the direction of the force, so y = 5x. The graph passes through the origin, and x = 3 gives y = 15. A taxi fare of ₹8 for the first kilometre and ₹5 for each further kilometre, with x the distance in kilometres and y the fare in rupees, is y = 8 + 5(x - 1) = 5x + 3 for a journey of at least one kilometre. At x = 1 the fare is ₹8. At x = 4 it is ₹23. The algebraic line also gives y = 3 when x = 0, but that intercept is not a fare for a journey that was never made. Use the equation on the domain the situation describes, and still draw the full straight line when the question asks for the graph. To test a point someone has read off a graph, substitute it. If (2, 2) is claimed for x + 2y = 8, then 2 + 4 = 6, not 8, so the point was misread. For x = 2 the equation gives y = 3.
- Write the equation, then list solutions. Do not invent a second equation.
- y = 5x + 3 fits the taxi fare for x at least 1. At 4 km the fare is ₹23.
- Check a point read from a graph by substituting it into the equation.
Worked examples
Write 2x + 3y = 6 in the form ax + by + c = 0 and state a, b and c. Which of (3, 0) and (1, 1) is a solution?
- Subtract 6 from both sides: 2x + 3y - 6 = 0. So a = 2, b = 3 and c = -6.
- At (3, 0): 2(3) + 3(0) = 6, so (3, 0) is a solution.
- At (1, 1): 2 + 3 = 5, which is not 6, so (1, 1) is not a solution.
Find four solutions of x + 2y = 8.
- If x = 0, then 2y = 8 and y = 4, giving (0, 4).
- If y = 0, then x = 8, giving (8, 0).
- If x = 2, then 2 + 2y = 8, so y = 3, giving (2, 3).
- If x = -2, then -2 + 2y = 8, so y = 5, giving (-2, 5).
Find the intercepts of x - y = 2 and one more point on the graph.
- When y = 0, x = 2, so the x-intercept point is (2, 0).
- When x = 0, -y = 2 and y = -2, so the y-intercept point is (0, -2).
- When x = 4, 4 - y = 2 and y = 2, so (4, 2) is also on the line.
The point (3, 4) lies on the graph of 3y = ax + 7. Find a.
- Substitute x = 3 and y = 4.
- 3(4) = a(3) + 7, so 12 = 3a + 7.
- 3a = 5, so a = 5/3.
Write two linear equations whose graphs both pass through (2, 14). How many such lines are there? Describe the graphs of x = -3 and y = 4.
- Every point with x = 2 lies on the vertical line x = 2, including (2, 14).
- Every point with y = 14 lies on the horizontal line y = 14. The line y = 7x also contains (2, 14).
- Any second condition that (2, 14) satisfies gives another line, so there are infinitely many.
- x = -3 is the vertical line through (-3, 0), parallel to the y-axis. y = 4 is the horizontal line through (0, 4), parallel to the x-axis.
A taxi charges ₹8 for the first kilometre and ₹5 for each kilometre after that. Write the fare y rupees for x kilometres, with x at least 1, and find the fare for 4 km. A student reads (2, 2) on the graph of x + 2y = 8. Check it.
- After the first kilometre there are (x - 1) further kilometres, so y = 8 + 5(x - 1) = 5x + 3.
- When x = 4, y = 5(4) + 3 = 23. The same fare is 8 + 5 × 3 = 23.
- Substitute (2, 2) in x + 2y = 8: 2 + 4 = 6, not 8. For x = 2, 2 + 2y = 8 gives y = 3.
Common mistakes to avoid
Treating ax + by + c = 0 as if it had one solution, the way a Class 8 equation in one variable does.
Swapping the coordinates, so that (3, 4) is plotted or substituted as x = 4 and y = 3.
Saying that infinitely many solutions means every pair (x, y) works.
Drawing only the segment between the intercepts and leaving out the rest of the line.
Calling x = 4 a point rather than the vertical line of all points whose x-coordinate is 4.
Inventing a second equation so that a word problem has a unique pair. This chapter keeps the one equation and its many solutions.
Practise with questions and worked answers.
The worksheet moves from basic recall to careful application.
Questions students often ask
How is this different from the Class 8 linear equations chapter?
Class 8 solves a linear equation in one variable, which has one solution. This NCERT Class 9 Maths chapter uses two variables. One such equation has infinitely many solutions, and the graph of those solutions is a straight line.
Does infinitely many solutions mean every pair (x, y) works?
No. It means there is one solution for every allowed choice of one variable, with the other variable then fixed. A pair that fails substitution is not a solution. The successful pairs are exactly the points of the line.
Why is a third point useful if two points already determine a line?
The third point is a check. If it does not lie on the line through the first two, a coordinate was calculated or plotted wrongly. The graph of a linear equation is not a curve bending off that line.
Is x = 4 the equation of a point?
No. In two variables it is the vertical line of all points (4, y). Likewise y = -2 is the horizontal line of all points (x, -2). They meet at the single point (4, -2).
Can this chapter give a unique price from one sentence about notebooks and pens?
No. One linear equation gives a relationship and infinitely many pairs that fit it. A unique common pair needs a second independent equation, which is studied with pairs of linear equations in Class 10.