📘 CodingMarble Learn

Pair of Linear Equations in Two Variables

Two equations like a₁x + b₁y = c₁ and a₂x + b₂y = c₂ each make a straight line. The answer that fits both is the point where the lines meet. Lines that cross give one answer, parallel lines give none, and lines that lie on top of each other give endless answers. We can find the answer by drawing (graph), by substitution or by elimination.

🎬 Step-by-step story

  1. Look at x + y = 5. Many pairs work: (0,5), (1,4), (2,3)… Put them on the graph. They all sit on one straight line.
  2. Now a second rule: x − y = 1. It also has many answers, so it makes its own line (green).
  3. The two lines cross at one point, (3, 2). Only this point follows both rules. So x = 3 and y = 2.
  4. Change the second rule to x + y = 2. The lines are now parallel. They never meet, so there is no answer.
  5. Now take 2x + 2y = 10. It is just x + y = 5 doubled. Both lines lie on top of each other, so every point on the line is an answer.
  6. Free play: move the sliders to make your own second line, see which case you get, and tap the button to watch elimination solve it line by line.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why does one equation like x + y = 5 have so many answers?

Two unknowns and only one rule: you can choose x freely and then y is fixed. Every choice gives a new point, and all the points line up.

Why is the graph a straight line and not a curve?

When x goes up by 1, y always changes by the same amount. Equal steps every time give a straight line.

Why is the meeting point the answer?

A point on line 1 fits equation 1; a point on line 2 fits equation 2. Only the shared point lies on both, so only it fits both.

How can two equations have no answer at all?

If the lines lean the same way but start at different places, they are parallel and never share a point.

How can 2x + 2y = 10 be the same as x + y = 5?

Divide every term by 2 and you get x + y = 5. Same rule, same line, so every point on it works.

Does elimination give the same answer as the graph?

Yes. Elimination finds the meeting point exactly, even when it is a fraction that is hard to read from a graph. Try the button in free play.

How do I know which way the line leans from y = mx + c?

Look at m. If m is positive, the line goes up as you move right. If m is negative, it goes down. Bigger m means steeper.

What is a pair of linear equations?

A linear equation in two variables looks like ax + by = c. Here x and y are unknown numbers (variables). a, b and c are fixed numbers, and a and b are not both zero.

"Linear" means its graph is a straight line. One such equation has endless answers. Two equations about the same x and y are called a pair. We want the one (x, y) that makes both true together.

Graph of one linear equation

Take one rule, like 2x + y = 6. It has many answers. Each answer is a pair (x, y).

  1. Pick an easy x, like 0. Then y = 6. Point (0, 6).
  2. Pick x = 3. Then y = 0. Point (3, 0).
  3. Pick one more to check, x = 1. Then y = 4. Point (1, 4).
  4. Plot the points and join them with a ruler.

All the points sit on one straight line. Every point on the line is an answer. A point off the line is not an answer. Look at step 1 of the 3D: the dots for x + y = 5 all line up.

Special lines: x = 2 is a straight up-and-down line. y = 3 is a flat line. y = 2x passes through (0, 0).

Slope-intercept form: y = mx + c

We can rewrite any line (with b ≠ 0) so that y is alone: y = mx + c.

Example: 2x + y = 6 becomes y = −2x + 6. Slope −2: the line goes down 2 for every 1 step right. It cuts the y-axis at 6.

Why this helps: two lines with the same slope but different c are parallel (no answer). Same slope and same c means the same line. Different slopes means the lines cross once. In the free-play step, change the green line and watch its slope and intercept.

Graphical method

Step 1. For each equation, make a small table: pick 2 or 3 values of x and work out y.

Step 2. Plot the points and join them with a ruler. You get two lines.

Step 3. Read where the lines meet. That point (x, y) is the solution.

Example: x + y = 5 gives (0,5), (5,0). x − y = 1 gives (1,0), (3,2). The lines meet at (3, 2), so x = 3, y = 2. Try it in the 3D above (steps 1 to 3).

Three possible pictures: consistency

Ratio test without drawing

For a₁x + b₁y = c₁ and a₂x + b₂y = c₂, compare the ratios:

Why? If a and b are in the same ratio, the lines lean at the same angle (same slope). Then c decides whether they are the same line or just side by side.

Substitution method

"Substitute" means "put in place of".

  1. From one equation, write one variable in terms of the other. Example: x − y = 1 gives x = y + 1.
  2. Put this into the other equation: (y + 1) + y = 5, so 2y = 4, y = 2.
  3. Put y back: x = 2 + 1 = 3.
  4. Check in both equations: 3 + 2 = 5 ✓, 3 − 2 = 1 ✓.

If the variable vanishes and you get something always true (like 0 = 0), there are endless solutions. If you get something false (like 0 = 3), there is no solution.

Elimination method

"Eliminate" means "remove".

  1. Multiply one or both equations so that one variable has the same number in front (same coefficient).
  2. Add or subtract the equations. That variable disappears.
  3. Solve the simple equation left over.
  4. Put the value back to find the other variable, then check.

Example: x + y = 5 and x − y = 1. Adding them: 2x = 6, so x = 3; then y = 2. In the 3D free-play step, the button shows this line by line for any pair you make.

Word problems

Four steps turn a story into maths:

  1. Name the two unknowns: "Let the price of a pen be ₹x and a notebook be ₹y."
  2. Write one equation for each fact in the story.
  3. Solve by substitution or elimination.
  4. Check the answer makes sense (prices positive, ages whole numbers) and answer in words.

Common types: prices, ages, two-digit numbers, fractions, speed of boat and stream, fixed charge plus rate, and angles or sides of a figure.

Try it: a kitchen experiment

Ask someone at home to secretly pick two numbers. Ask only for their sum and their difference. Write x + y = sum and x − y = difference. Add the two equations: 2x = sum + difference. Find x, then y. Surprise them! Then in the 3D free play, set the green line to x − y = your difference and see the meeting point move.

Key formulas and definitions

Worked examples

1. Draw the graph of 2x + y = 6. Is (2, 2) a solution?

Table: x = 0 → y = 6; x = 3 → y = 0; x = 1 → y = 4. Plot (0,6), (3,0), (1,4) and join. Check (2, 2): 2×2 + 2 = 6 ✓, so yes, it lies on the line.

2. Write 3x + 2y = 8 in the form y = mx + c. Find the slope and y-intercept.

2y = −3x + 8, so y = −(3/2)x + 4. Slope m = −3/2 (goes down 3 for every 2 steps right). y-intercept c = 4, point (0, 4).

3. Solve by elimination: x + y = 7, x − y = 3.

Add: 2x = 10, so x = 5. Then y = 7 − 5 = 2. Check: 5 − 2 = 3 ✓. Answer x = 5, y = 2.

4. Solve by substitution: y = 2x and 3x + y = 15.

Put y = 2x: 3x + 2x = 15, so 5x = 15, x = 3. Then y = 6. Check: 9 + 6 = 15 ✓.

5. Without solving, say how many solutions 2x + 3y = 6 and 4x + 6y = 15 have.

a₁/a₂ = 2/4 = 1/2, b₁/b₂ = 3/6 = 1/2, c₁/c₂ = 6/15 = 2/5. The first two are equal but the third differs, so the lines are parallel: no solution (inconsistent).

6. Find k so that kx + 2y = 5 and 3x + y = 1 have exactly one solution.

One solution needs a₁/a₂ ≠ b₁/b₂: k/3 ≠ 2/1, so k ≠ 6. Any k except 6 works.

7. Solve by elimination: 3x + 2y = 11 and 2x + 3y = 4.

Multiply the first by 3 and the second by 2: 9x + 6y = 33 and 4x + 6y = 8. Subtract: 5x = 25, x = 5. Put back: 15 + 2y = 11, so 2y = −4, y = −2. Check: 10 − 6 = 4 ✓.

8. 2 pens and 3 notebooks cost ₹80. 1 pen and 1 notebook cost ₹30. Find each price.

Let pen = ₹x, notebook = ₹y. 2x + 3y = 80 and x + y = 30. From the second, x = 30 − y. Then 2(30 − y) + 3y = 80 → 60 + y = 80 → y = 20, x = 10. A pen costs ₹10, a notebook ₹20.

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

Let fixed = ₹x, rate = ₹y per km. x + 10y = 105 and x + 15y = 155. Subtract: 5y = 50, y = 10. Then x = 105 − 100 = 5. Fixed charge ₹5, rate ₹10 per km.

10. A boat goes 30 km downstream in 2 hours and comes back upstream in 3 hours. Find the speed of the boat in still water and of the stream.

Let boat = x km/h, stream = y km/h. Downstream speed x + y = 30/2 = 15; upstream x − y = 30/3 = 10. Add: 2x = 25, x = 12.5 km/h; y = 2.5 km/h.

Common mistakes

Practice quiz

1. Two lines that cross at one point give:
2. Parallel lines mean the pair is:
3. x + y = 4 and 2x + 2y = 8 have:
4. Solve x + y = 9, x − y = 1. x = ?
5. In elimination we first:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

Which method is best for a pair of linear equations?

If one variable is already alone (like y = 2x), use substitution. If the coefficients are easy to match, use elimination. Use the graph to see the answer and to decide the number of solutions.

What does consistent mean?

A pair is consistent if it has at least one solution (lines cross or lie on top of each other). Inconsistent means no solution (parallel lines).

Is cross-multiplication in the Class 10 syllabus?

For CBSE 2026-27 Standard Maths, the listed methods are graphical, substitution and elimination. Cross-multiplication is not required.

Is this lesson enough for Class 9 linear equations in two variables?

Yes. It covers the graph of one linear equation, the slope-intercept form y = mx + c, pairs of equations by the graph, consistency, substitution and elimination, as listed for CBSE Class 9 (2026-27). The same lesson also serves Class 10.

Where this is taught

Canada (Ontario)Grade 10Modelling Linear Relations
Canada (Ontario)Grade 10Analytic Geometry
ItalyScuola secondaria di primo grado – classe 3ªRelations and functions
ItalySecondaria di secondo grado – classe 1ªArithmetic and algebra
ItalySecondaria di secondo grado – classe 2ªArithmetic and algebra
PolandLiceum ogólnokształcące, klasa IISystems of equations
Spain1º BachilleratoAlgebraic sense and computational thinking
Spain2º BachilleratoAlgebraic Sense
Spain2º BachilleratoAlgebraic Sense
Ukraine8 класFunctions
Ukraine9 класSystems of equations
CBSE (India)Class 9Algebra
CBSE (India)Class 10Algebra
USA (Common Core, NGSS, AP)Grade 8Expressions and Equations (8.EE)
USA (Common Core, NGSS, AP)Grade 9Linear and exponential relationships
USA (Common Core, NGSS, AP)Grade 9Linear and exponential relationships
Japan中学2年Numbers and expressions
South Korea중학교 2학년Inequalities and simultaneous equations
South Korea중학교 2학년Linear functions
Germany (Bavaria)Jahrgangsstufe 8Systems of linear equations
Russia7 классEquations and inequalities
Russia7 классEquations and inequalities
Russia8 классEquations and inequalities
Russia9 классEquations and inequalities
China八年级(初二)Ch.23 Linear functions

Learn first

Learn next

Related lessons

All Maths lessons