Class 9Maths · AlgebraFull chapter

Linear Equations in Two Variables

The whole chapter in one place — read it, then test yourself. Clear notes, formula sheet, a practice quiz, and worked NCERT solutions & PYQs.

Linear Equation in Two Variables: Definition and Standard Form

Quick answer A linear equation in two variables has the form ax + by + c = 0, where a and b are not both zero, and every variable appears with degree 1.

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 called a linear equation in two variables. The word "linear" means the highest power of each variable is 1 — there is no x², y², √x, xy or similar term.

For example, 2x + 3y − 5 = 0 is linear, but x² + y = 4 and xy = 6 are not linear because the degree of a variable exceeds 1 or the two variables are multiplied together.

Even an equation that looks like it has only one variable, such as 2x + 3 = 0 or y − 5 = 0, can be written as a linear equation in two variables by inserting the missing variable with coefficient zero: 2x + 0y + 3 = 0 or 0x + y − 5 = 0.

Worked Example: Write the equation 2x = 5 − 3y in the standard form ax + by + c = 0 and state the values of a, b and c.

Rearranging, 2x + 3y − 5 = 0. Comparing with ax + by + c = 0, we get a = 2, b = 3 and c = −5.

Standard form ax + by + c = 0, where a and b are not both zero
One-variable case rewritten ax + c = 0 written as ax + 0y + c = 0
Remember
  • Standard form is ax + by + c = 0, with a and b not both zero
  • Each variable has degree 1; no xy, x² or √x terms are allowed
  • A linear equation in one variable is a special case, with the other coefficient equal to 0
  • Infinitely many linear equations can be written by choosing different values of a, b, c

Solutions of a Linear Equation in Two Variables

Quick answer A solution is an ordered pair (x, y) that satisfies the equation; because one variable can be chosen freely, every linear equation in two variables has infinitely many solutions.

A pair of values, one for x and one for y, which satisfies a linear equation is called a solution of that equation. A solution is written as an ordered pair (x, y), with the x-value always written first.

Because a linear equation in two variables has two unknowns but only one equation connecting them, we can choose any value for one variable and then solve for the other. Since x can take infinitely many values, a linear equation in two variables has infinitely many solutions.

Worked Example: Find four solutions of 2x + y = 6.

  • Let x = 0: 2(0) + y = 6 ⟹ y = 6, giving (0, 6)
  • Let x = 1: 2(1) + y = 6 ⟹ y = 4, giving (1, 4)
  • Let x = 2: 2(2) + y = 6 ⟹ y = 2, giving (2, 2)
  • Let x = 3: 2(3) + y = 6 ⟹ y = 0, giving (3, 0)

Worked Example: Is (2, 3) a solution of x − 2y = 4?

Substitute x = 2, y = 3 into the left side: 2 − 2(3) = 2 − 6 = −4, which is not equal to the right side, 4. So (2, 3) is not a solution.

Solving for y y = -(ax + c)/b, valid when b ≠ 0
Checking a solution (x₁, y₁) is a solution if ax₁ + by₁ + c = 0
Remember
  • A solution is an ordered pair (x, y), written with the x-coordinate first
  • A linear equation in two variables has infinitely many solutions
  • To find a solution, assign a value to one variable and solve for the other
  • To verify a solution, substitute both values back and check both sides are equal

Graph of a Linear Equation in Two Variables

Quick answer Every solution of a linear equation corresponds to a point, and plotting all such points always produces a straight line — the graph of the equation.

Since a linear equation in two variables has infinitely many solutions, each solution (x, y) can be plotted as a point on the Cartesian plane. When all these points are plotted, they always lie on a single straight line. This line is called the graph of the linear equation.

Two important facts follow from this:

  • Every point on the line satisfies the equation, i.e. it is a solution.
  • Every solution of the equation lies on the line.
  • A point that does not lie on the line is not a solution.

Since two points are enough to fix a straight line, it is good practice to find at least three solutions — the third acts as a check that no arithmetic mistake was made.

Worked Example: Find three solutions of x + 2y = 8 and use them to describe its graph.

  • x = 0 ⟹ 2y = 8 ⟹ y = 4, point (0, 4)
  • x = 2 ⟹ 2 + 2y = 8 ⟹ y = 3, point (2, 3)
  • x = 4 ⟹ 4 + 2y = 8 ⟹ y = 2, point (4, 2)

Plotting (0, 4), (2, 3) and (4, 2) on graph paper and joining them with a ruler gives a straight line extending in both directions — this line is the graph of x + 2y = 8.

Point-on-line test (x₁, y₁) lies on ax + by + c = 0 if ax₁ + by₁ + c = 0
Remember
  • The graph of any linear equation in two variables is always a straight line
  • Every point on the line is a solution, and every solution lies on the line
  • At least two points are needed to draw the line; a third point is used to verify accuracy
  • The line extends infinitely in both directions, matching the infinite number of solutions

Equations of Lines Parallel to the x-axis and y-axis

Quick answer Equations of the form y = k give lines parallel to the x-axis, and x = k give lines parallel to the y-axis; the axes themselves are y = 0 and x = 0.

Some linear equations involve only one variable but are still linear equations in two variables, because the missing variable is present with coefficient 0.

The equation y = 0 (i.e., 0x + y = 0) is satisfied by every point whose y-coordinate is 0, such as (1, 0), (−3, 0), (5, 0). All such points lie on the x-axis, so y = 0 is the equation of the x-axis.

Similarly, x = 0 is the equation of the y-axis, since it is satisfied by every point of the form (0, y).

More generally, the equation y = k (k a fixed real number) is satisfied by all points (x, k) for any x, so its graph is a line parallel to the x-axis, at a distance |k| from it — above the x-axis if k is positive, below if k is negative.

Likewise, the equation x = k gives a line parallel to the y-axis, at a distance |k| from it — to the right of the y-axis if k is positive, to the left if k is negative.

Worked Example: Describe the graphs of y = 3 and x = −2.

y = 3 is a line parallel to the x-axis, 3 units above it, passing through points such as (0, 3), (1, 3), (−2, 3). x = −2 is a line parallel to the y-axis, 2 units to the left of it, passing through points such as (−2, 0), (−2, 1), (−2, 5).

x-axis y = 0
y-axis x = 0
Line parallel to x-axis y = k
Line parallel to y-axis x = k
Remember
  • x = 0 is the equation of the y-axis; y = 0 is the equation of the x-axis
  • y = k is a line parallel to the x-axis, at distance |k| from it
  • x = k is a line parallel to the y-axis, at distance |k| from it
  • The sign of k tells the direction: above/below the x-axis, or right/left of the y-axis

Formulating Linear Equations from Real-Life Situations

Quick answer Two related quantities in a real-life statement can usually be modelled as a linear equation ax + by + c = 0 once suitable variables are chosen.

Many everyday statements that relate two quantities can be written as a linear equation in two variables. The key step is to choose clear variable names for the two quantities before translating the words into an equation.

Worked Example: The cost of a fountain pen is Rs 10 more than twice the cost of a ball pen. Write this as a linear equation in two variables.

Let the cost of the fountain pen be Rs x and the cost of the ball pen be Rs y. "Twice the cost of a ball pen" is 2y, and the fountain pen costs Rs 10 more than this, so x = 2y + 10, which in standard form is x − 2y − 10 = 0.

Worked Example: The relation between temperature in Fahrenheit (F) and Celsius (C) is the linear equation F = (9/5)C + 32. Find F when C = 0, and find C when F = 86.

When C = 0: F = (9/5)(0) + 32 = 32, so 0°C corresponds to 32°F.

When F = 86: 86 = (9/5)C + 32 ⟹ 54 = (9/5)C ⟹ C = 54 × 5/9 = 30. So 86°F corresponds to 30°C.

Celsius-Fahrenheit relation F = (9/5)C + 32
General real-life model ax + by + c = 0
Remember
  • Choose and clearly state the variables before forming the equation
  • Words like "is", "more than", "twice" translate directly into algebraic terms
  • The resulting equation still has infinitely many solutions unless one value is fixed
  • Substituting a known value of one variable gives the corresponding value of the other

The formula sheet

Every formula in this chapter, in one place — screenshot it before your exam.

ax + by + c = 0, where a and b are not both zero
Standard form
ax + c = 0 written as ax + 0y + c = 0
One-variable case rewritten
y = -(ax + c)/b, valid when b ≠ 0
Solving for y
(x₁, y₁) is a solution if ax₁ + by₁ + c = 0
Checking a solution
(x₁, y₁) lies on ax + by + c = 0 if ax₁ + by₁ + c = 0
Point-on-line test
y = 0
x-axis
x = 0
y-axis
y = k
Line parallel to x-axis
x = k
Line parallel to y-axis
F = (9/5)C + 32
Celsius-Fahrenheit relation
ax + by + c = 0
General real-life model

Test yourself

Tap an answer to check it instantly — you'll see why it's right, and what to revise if it isn't.

0 correct · 0/12 answered
Q1 Definition of linear equation easy

Which of the following is a linear equation in two variables?

Q2 Standard form medium

The standard form of the equation 3x = 2y − 7 is:

Q3 Definition of linear equation medium

In ax + by + c = 0 representing a linear equation in two variables, which condition must hold on a and b?

Q4 Solutions of a linear equation easy

How many solutions does the linear equation 2x + 3y = 12 have?

Q5 Solutions of a linear equation medium

Which ordered pair is a solution of x − 2y = 4?

Q6 Graph of a linear equation medium

The point (3, 4) lies on the graph of which equation?

Q7 Graph of a linear equation easy

The graph of a linear equation in two variables is always:

Q8 Lines parallel to axes easy

The equation of the x-axis is:

Q9 Lines parallel to axes medium

The line x = −3 is:

Q10 Solutions of a linear equation easy

If (2, k) is a solution of the equation 3x + y = 11, the value of k is:

Q11 Lines parallel to axes easy

Which of these equations represents a line parallel to the y-axis?

Q12 Real-life linear equations medium

Using the relation F = (9/5)C + 32 between Celsius (C) and Fahrenheit (F) temperatures, the value of F when C = 0 is:

NCERT solutions & previous-year questions

Step-by-step model answers — tap a question to reveal the full solution.

NCERT questions 6

1 The cost of a notebook is twice the cost of a pen. Write a linear equation in two variables to represent this statement (take the cost of the notebook as Rs x and the cost of the pen as Rs y).Formulating linear equations

Let the cost of the notebook be Rs x and the cost of the pen be Rs y.

"Cost of a notebook is twice the cost of a pen" translates to x = 2y.

Rewriting in standard form: x − 2y = 0.

2 Give the geometric representation of y = 3 as an equation (i) in one variable, and (ii) in two variables.Lines parallel to axes

(i) As an equation in one variable, y = 3 has only one solution, y = 3, so on the number line it is represented by a single point at 3.

(ii) As an equation in two variables, y = 3 can be written as 0x + y − 3 = 0. It is satisfied by every point whose y-coordinate is 3, such as (0, 3), (1, 3), (−2, 3). Its graph is therefore a straight line parallel to the x-axis, at a distance of 3 units above it.

3 Write four solutions of the linear equation 2x + y = 7.Solutions of a linear equation

Solve for y: y = 7 − 2x, then substitute values of x.

  • x = 0 ⟹ y = 7 − 0 = 7, solution (0, 7)
  • x = 1 ⟹ y = 7 − 2 = 5, solution (1, 5)
  • x = 2 ⟹ y = 7 − 4 = 3, solution (2, 3)
  • x = 3 ⟹ y = 7 − 6 = 1, solution (3, 1)

So four solutions are (0, 7), (1, 5), (2, 3) and (3, 1).

4 Check which of the following are solutions of the equation x − 2y = 4, and which are not: (i) (0, 2) (ii) (2, 0) (iii) (4, 0) (iv) (√2, 4√2).Solutions of a linear equation

Substitute each point into the left side, x − 2y, and compare with the right side, 4.

  • (0, 2): 0 − 2(2) = −4 ≠ 4, so (0, 2) is not a solution.
  • (2, 0): 2 − 2(0) = 2 ≠ 4, so (2, 0) is not a solution.
  • (4, 0): 4 − 2(0) = 4 = 4, so (4, 0) is a solution.
  • (√2, 4√2): √2 − 2(4√2) = √2 − 8√2 = −7√2 ≠ 4, so it is not a solution.
5 Draw the graph of the linear equation x + y = 6. From the graph (or by substitution), find the value of y when x = 4.Graph of a linear equation

Find at least three solutions of x + y = 6:

  • x = 0 ⟹ y = 6, point (0, 6)
  • x = 2 ⟹ y = 4, point (2, 4)
  • x = 4 ⟹ y = 2, point (4, 2)
  • x = 6 ⟹ y = 0, point (6, 0)

Plotting these points and joining them with a ruler gives a straight line, the graph of x + y = 6.

Reading the graph (or substituting directly), when x = 4, y = 6 − 4 = 2.

6 If the point (3, 4) lies on the graph of the equation 3y = ax + 7, find the value of a.Graph of a linear equation

Since (3, 4) lies on the graph of 3y = ax + 7, it must satisfy the equation.

Substituting x = 3, y = 4: 3(4) = a(3) + 7 ⟹ 12 = 3a + 7 ⟹ 3a = 5 ⟹ a = 5/3.

So the value of a is 5/3.

Previous-year board questions 4

Q1 Write a linear equation in two variables such that the ordinate (y-coordinate) of every point on its graph is 3 times its abscissa (x-coordinate). CBSE 2023 1 mark

Let a general point on the graph be (x, y). The condition "ordinate is 3 times the abscissa" means y = 3x.

In standard form: 3x − y = 0.

Q2 Given the linear equation 2x + 3y = 12, express y in terms of x. Hence check whether the point (3, 2) lies on the graph of this equation. CBSE 2022 2 marks

From 2x + 3y = 12, isolate y: 3y = 12 − 2x, so y = (12 − 2x)/3.

Check (3, 2): substitute x = 3, y = 2 into 2x + 3y: 2(3) + 3(2) = 6 + 6 = 12, which equals the right-hand side.

Since both sides are equal, (3, 2) does lie on the graph of the equation.

Q3 Give the equations of two different lines passing through the point (2, 14). How many more such lines can be drawn, and why? CBSE 2023 3 marks

Any line ax + by + c = 0 passing through (2, 14) must satisfy 2a + 14b + c = 0, so many different choices of a, b, c are possible.

Two examples:

  • y = 7x, i.e. 7x − y = 0, since 7(2) = 14.
  • x + y = 16, i.e. x + y − 16 = 0, since 2 + 14 = 16.

Infinitely many more such lines can be drawn, because a single point does not fix a unique line — only two distinct points determine one and only one straight line. Through one point, infinitely many straight lines (and hence infinitely many linear equations) can pass.

Q4 Draw the graph of the linear equation 3x + 4y = 12. Find the coordinates of the points where the line meets the x-axis and the y-axis, and verify whether the point (4, 0) lies on the graph. CBSE 2024 5 marks

Find solutions of 3x + 4y = 12 by choosing convenient values of x:

  • x = 0 ⟹ 4y = 12 ⟹ y = 3, point (0, 3)
  • x = 2 ⟹ 6 + 4y = 12 ⟹ y = 1.5, point (2, 1.5)
  • x = 4 ⟹ 12 + 4y = 12 ⟹ y = 0, point (4, 0)

Plotting (0, 3), (2, 1.5) and (4, 0) and joining them with a ruler (extended both ways) gives the straight-line graph of 3x + 4y = 12.

Putting y = 0 gives x = 4, so the line cuts the x-axis at (4, 0). Putting x = 0 gives y = 3, so the line cuts the y-axis at (0, 3).

Checking (4, 0): 3(4) + 4(0) = 12 + 0 = 12, which equals the right-hand side, so (4, 0) does lie on the graph — it is exactly the x-intercept found above.

Part of Priodemy for School

Interactive Maths & Science — free with every school on Priodemy EduSuite. Explore more chapters and labs on the Priodemy for School hub.

Ask AI