PrepRung

Class 9 Maths Chapter 13: Two Variables, One Line — Notes, Examples & Practice

Many real problems have two unknowns: the price of a pen and a notebook, the ages of two people. One equation in two variables has infinitely many solutions — all lying on a straight line. Two such equations usually pin down one common solution, where the lines cross. This chapter shows the picture (graphs), the algebra (substitution and elimination) and how to turn word problems into equations.

1Linear equations in two variables

A linear equation in two variables can be written as ax+by+c=0ax + by + c = 0, where aa and bb are not both zero. Examples: 2x+3y=122x + 3y = 12, y=5x−1y = 5x - 1, x=4x = 4 (here b=0b = 0).

A solution is an ordered pair (x,y)(x, y) that makes the equation true. For 2x+3y=122x + 3y = 12: (0,4)(0, 4), (6,0)(6, 0) and (3,2)(3, 2) are solutions. Order matters — (2,3)(2, 3) gives 4+9=13≠124 + 9 = 13 \neq 12, so it is not a solution.

There are infinitely many solutions: choose any xx and solve for yy. In real situations only some may make sense — for example, the number of tickets must be a whole number.

Key formulas & definitions
  • Standard form: ax+by+c=0ax + by + c = 0 (aa, bb not both 0).
  • To find solutions: pick xx, solve for yy (or the other way round).
  • x-intercept: put y=0y = 0; y-intercept: put x=0x = 0.
Worked example 1

A pen costs ₹xx and a notebook ₹yy. Three pens and two notebooks cost ₹70. Write the equation and find two possible price pairs.

  1. 3x+2y=703x + 2y = 70.
  2. If x=10x = 10: 2y=402y = 40, y=20y = 20 → (10, 20).
  3. If x=14x = 14: 2y=282y = 28, y=14y = 14 → (14, 14).

Answer: 3x+2y=703x + 2y = 70; e.g. (10, 20) and (14, 14).

Common mistakes
  • Thinking an equation like x+y=5x + y = 5 has just one solution.
  • Writing the pair as (y,x)(y, x).

2Graph, slope and intercepts

Plot several solutions of a linear equation and they all lie on one straight line; every point on the line is a solution. To draw it, find two points (intercepts are easiest) and a third as a check.

Rearranged as y=mx+dy = mx + d, the number mm is the slope — how much yy changes when xx goes up by 1 — and dd is the y-intercept. From ax+by+c=0ax + by + c = 0 with b≠0b \neq 0: m=−abm = -\dfrac{a}{b}, d=−cbd = -\dfrac{c}{b}.

Special lines: y=ky = k is horizontal (slope 0); x=kx = k is vertical and cannot be written as y=mx+dy = mx + d. The x-axis is y=0y = 0 and the y-axis is x=0x = 0.

Key formulas & definitions
  • y=mx+dy = mx + d: slope mm, y-intercept dd.
  • Slope through two points: m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
  • Parallel lines have equal slopes.
Worked example 1

Draw 2x+3y=122x + 3y = 12 and find its slope.

  1. Intercepts: x=0⇒y=4x = 0 \Rightarrow y = 4; y=0⇒x=6y = 0 \Rightarrow x = 6. Points (0, 4) and (6, 0). Check (3, 2).
  2. Rearrange: 3y=−2x+12⇒y=−23x+43y = -2x + 12 \Rightarrow y = -\dfrac{2}{3}x + 4.

Answer: Line through (0, 4) and (6, 0); slope −23-\dfrac{2}{3}.

Common mistakes
  • Reading the slope of 2x+3y=122x + 3y = 12 as 2 — first make yy the subject.

3Pairs of equations: the graphical view

A pair (system) of linear equations asks for (x,y)(x, y) satisfying both. On a graph, that is a point on both lines.

Two lines in a plane can: intersect at one point → exactly one solution (consistent); be parallel → no solution (inconsistent); or coincide → infinitely many solutions (dependent).

You can tell which without drawing by comparing the ratios of coefficients for a1x+b1y+c1=0a_1x + b_1y + c_1 = 0 and a2x+b2y+c2=0a_2x + b_2y + c_2 = 0.

Key formulas & definitions
  • a1a2≠b1b2\dfrac{a_1}{a_2} \neq \dfrac{b_1}{b_2}: intersecting, one solution.
  • a1a2=b1b2≠c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} \neq \dfrac{c_1}{c_2}: parallel, no solution.
  • a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}: same line, infinitely many.
Worked example 1

Without solving, classify: (i) x+2y=4x + 2y = 4, 2x+4y=92x + 4y = 9 (ii) 3x−y=23x - y = 2, x+y=6x + y = 6.

  1. (i) 12=24≠49\dfrac{1}{2} = \dfrac{2}{4} \neq \dfrac{4}{9} → parallel lines, no solution.
  2. (ii) 31≠−11\dfrac{3}{1} \neq \dfrac{-1}{1} → intersecting lines, one solution (it is (2, 4)).

Answer: (i) inconsistent (ii) unique solution.

Common mistakes
  • Forgetting to write both equations in the same form before comparing ratios.

4Substitution method

Make one variable the subject of one equation, substitute that expression into the other equation, and solve the resulting one-variable equation. Then substitute back to get the second variable.

Choose the variable with coefficient 1 or −1 if possible — it avoids fractions.

Always check the answer in both original equations.

Key formulas & definitions
  • 1. Express yy (or xx) from one equation. 2. Substitute in the other. 3. Solve. 4. Back-substitute. 5. Check.
Worked example 1

Solve x+2y=8x + 2y = 8 and 3x−y=33x - y = 3.

  1. From the second: y=3x−3y = 3x - 3.
  2. Substitute: x+2(3x−3)=8⇒7x−6=8⇒x=2x + 2(3x - 3) = 8 \Rightarrow 7x - 6 = 8 \Rightarrow x = 2.
  3. y=3(2)−3=3y = 3(2) - 3 = 3.
  4. Check: 2+6=82 + 6 = 8 ✓, 6−3=36 - 3 = 3 ✓.

Answer: x=2x = 2, y=3y = 3.

Common mistakes
  • Substituting back into the same equation you rearranged — it only gives 0=00 = 0.

5Elimination method

Multiply one or both equations by suitable numbers so that one variable has equal (or opposite) coefficients, then subtract (or add) the equations to eliminate it.

If eliminating one variable also eliminates the other and you get a false statement like 0=50 = 5, the lines are parallel (no solution). A true statement like 0=00 = 0 means the same line (infinitely many).

Key formulas & definitions
  • Make coefficients of one variable equal → subtract; opposite → add.
  • 0=k0 = k (k≠0k \neq 0): no solution · 0=00 = 0: infinitely many.
Worked example 1

Solve 3x+4y=103x + 4y = 10 and 2x−3y=−162x - 3y = -16.

  1. Make the xx-coefficients 6: multiply the first by 2 and the second by 3: 6x+8y=206x + 8y = 20, 6x−9y=−486x - 9y = -48.
  2. Subtract: 17y=68⇒y=417y = 68 \Rightarrow y = 4.
  3. 3x+16=10⇒x=−23x + 16 = 10 \Rightarrow x = -2.
  4. Check: 2(−2)−3(4)=−162(-2) - 3(4) = -16 ✓.

Answer: x=−2x = -2, y=4y = 4.

Trick / memory aid

Eliminate the variable whose coefficients already match or are opposite. Otherwise multiply each equation by the other's coefficient (cross-multiply the coefficients).

Common mistakes
  • Multiplying only the left side of an equation.
  • Sign errors when subtracting: 8y−(−9y)=17y8y - (-9y) = 17y.

6Word problems

Step 1: name the two unknowns clearly (with units). Step 2: translate each sentence into one equation. Step 3: solve by any method. Step 4: answer the question asked, in words, and check that the answer makes sense (whole numbers, positive ages, and so on).

Typical contexts: prices, ages (remember both people age by the same number of years), two-digit numbers (a number with tens digit xx and units digit yy is 10x+y10x + y), fares with a fixed charge plus a rate, and fractions.

Key formulas & definitions
  • Two-digit number: 10x+y10x + y; reversed: 10y+x10y + x.
  • Ages after nn years: (x+n)(x + n) and (y+n)(y + n).
  • Fixed charge + rate: C=F+r×(quantity)C = F + r \times (\text{quantity}).
Worked example 1

The sum of the digits of a two-digit number is 9. Reversing the digits makes the number 27 more. Find the number.

  1. Let the number be 10x+y10x + y. Then x+y=9x + y = 9.
  2. 10y+x=10x+y+27⇒9y−9x=27⇒y−x=310y + x = 10x + y + 27 \Rightarrow 9y - 9x = 27 \Rightarrow y - x = 3.
  3. Add: 2y=12⇒y=62y = 12 \Rightarrow y = 6, x=3x = 3.

Answer: 36 (reversed 63 = 36 + 27 ✓).

Worked example 2

A taxi charges a fixed amount plus a rate per km. A 10 km ride costs ₹155 and a 15 km ride costs ₹220. Find the fixed charge and rate.

  1. F+10r=155F + 10r = 155, F+15r=220F + 15r = 220.
  2. Subtract: 5r=65⇒r=135r = 65 \Rightarrow r = 13; F=155−130=25F = 155 - 130 = 25.

Answer: Fixed ₹25, ₹13 per km.

Common mistakes
  • Writing a two-digit number as x+yx + y or xyxy.
  • In age problems, adding years to only one person.

Important questions

Try each question on paper first, then tap it to check the answer.

Basic Recall and direct use

Check whether (2,−1)(2, -1) is a solution of 3x+4y=23x + 4y = 2.Answer
3(2)+4(−1)=6−4=23(2) + 4(-1) = 6 - 4 = 2 ✓ Yes.
Find the intercepts of 5x−2y=105x - 2y = 10.Answer
x-intercept: y=0⇒x=2y = 0 \Rightarrow x = 2. y-intercept: x=0⇒y=−5x = 0 \Rightarrow y = -5.
Solve x+y=11x + y = 11, x−y=3x - y = 3.Answer
Add: 2x=142x = 14, x=7x = 7; y=4y = 4.

Medium Two or three steps

Solve by substitution: 2x+y=72x + y = 7, 4x−3y=−14x - 3y = -1.Answer
y=7−2xy = 7 - 2x. 4x−3(7−2x)=−1⇒10x=20⇒x=24x - 3(7 - 2x) = -1 \Rightarrow 10x = 20 \Rightarrow x = 2, y=3y = 3.
For what value of kk do 2x+3y=52x + 3y = 5 and 4x+ky=74x + ky = 7 have no solution?Answer
Need 24=3k≠57\dfrac{2}{4} = \dfrac{3}{k} \neq \dfrac{5}{7}. So k=6k = 6 (and 12≠57\dfrac{1}{2} \neq \dfrac{5}{7} ✓).
5 apples and 3 bananas cost ₹105; 2 apples and 5 bananas cost ₹80. Find the price of each.Answer
5a+3b=1055a + 3b = 105, 2a+5b=802a + 5b = 80. Multiply by 2 and 5: 10a+6b=21010a + 6b = 210, 10a+25b=40010a + 25b = 400 → 19b=19019b = 190, b=10b = 10, a=15a = 15. Apple ₹15, banana ₹10.

Advanced Reasoning and HOTS

Find a fraction that becomes 45\dfrac{4}{5} when 1 is added to both numerator and denominator, and 12\dfrac{1}{2} when 5 is subtracted from both.Answer
Let it be xy\dfrac{x}{y}. x+1y+1=45⇒5x−4y=−1\dfrac{x + 1}{y + 1} = \dfrac{4}{5} \Rightarrow 5x - 4y = -1. x−5y−5=12⇒2x−y=5\dfrac{x - 5}{y - 5} = \dfrac{1}{2} \Rightarrow 2x - y = 5. From the second, y=2x−5y = 2x - 5; substitute: 5x−8x+20=−1⇒x=75x - 8x + 20 = -1 \Rightarrow x = 7, y=9y = 9. Fraction 79\dfrac{7}{9} (check: 810=45\dfrac{8}{10} = \dfrac{4}{5} ✓, 24=12\dfrac{2}{4} = \dfrac{1}{2} ✓).
Five years ago, Asha was three times as old as her brother. Ten years from now she will be twice as old as him. Find their present ages.Answer
Let ages be aa, bb. a−5=3(b−5)⇒a−3b=−10a - 5 = 3(b - 5) \Rightarrow a - 3b = -10. a+10=2(b+10)⇒a−2b=10a + 10 = 2(b + 10) \Rightarrow a - 2b = 10. Subtract: b=20b = 20, a=50a = 50. Asha 50, brother 20. Check: 45 = 3 × 15 ✓, 60 = 2 × 30 ✓.

Self-check quiz

Five quick questions. Tap an option to see if you are right.

How many solutions does 3x−y=43x - y = 4 have?
The slope of y=−4x+7y = -4x + 7 is
The lines x+y=3x + y = 3 and 2x+2y=62x + 2y = 6
Solving x+y=10x + y = 10, x−y=2x - y = 2 gives
The graph of x=3x = 3 is

FAQ

Which method is best: substitution or elimination?

Substitution is quick when a variable has coefficient 1 or −1. Elimination is quicker when coefficients are larger or already match. Both always give the same answer.

Why does one equation in two variables have infinitely many solutions?

You can choose any value for one variable and solve for the other, so there is a solution for every choice. Graphically, they are all the points of a line.

How do I know a pair of equations has no solution?

If the ratios of the x- and y-coefficients are equal but differ from the ratio of the constants, the lines are parallel and never meet.

Book references

  • NCERT Ganita Manjari Part II, Chapter 13: Two Variables, One LineRead the chapter and do every exercise set first.
  • Mathematics for Class 9 — R.D. Sharma (Dhanpat Rai)Extra graded practice; its chapter numbers follow the old syllabus, so match by topic.
  • Mathematics for Class 9 — R.S. Aggarwal (Bharati Bhawan)Good for drill on basics; match by topic.
  • Exemplar Problems in Mathematics, Class IX — NCERTHarder, concept-testing questions (written for the old book).

These notes, examples and questions are written by PrepRung in our own words to help you study the NCERT Ganita Manjari book. NCERT and CBSE are not affiliated with PrepRung. Always study from your textbook too.