WishWasTraining Academy
CDS exam school
โ† home
Chapter A3-5 ยท 5 of 9 in Algebra ยท 14 min read

Linear equations in two unknowns: algebraic and graphical; word problems

1 real CDS questions of this kind in the 6 papers from CDS I 2024 to CDS II 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter gave only 1 question in the 6 papers from CDS I 2024 to CDS II 2026. That question asked for the value of โ€‹kโ€‹ for which a pair of equations has no solution. The count is low, but the official syllabus lists the topic by name: "Simultaneous linear equations in two unknowns: analytical and graphical solutions", and practical problems that lead to them. So a question can come in any paper. The skill is also used inside other chapters. Questions on ages, prices, boats and the factor theorem often end in two equations with two unknowns. Learn it for speed, not for its own count.

What you will be able to do

  • Solve a pair of linear equations by elimination and by substitution.
  • Say what the graph of each equation is, and read the solution from the graph.
  • Decide from the coefficients whether a pair has one solution, no solution or infinitely many.
  • Turn a word problem into two equations and solve it.

Before you start you should know: how to solve an equation in one unknown, such as โ€‹3x - 5 = 7โ€‹, and how to work with ratios (Chapter A2-5).

1. One equation, two unknowns: a line

An equation such as โ€‹x + y = 5โ€‹ is linear: each unknown has power 1 and no two unknowns are multiplied together. Its general form is โ€‹ax + by = cโ€‹.

One such equation has many solutions. For โ€‹x + y = 5โ€‹: โ€‹(0, 5)โ€‹, โ€‹(5, 0)โ€‹, โ€‹(1, 4)โ€‹, โ€‹(3, 2)โ€‹ and so on. Plot these pairs as points and they lie on one straight line. The graph of a linear equation in two unknowns is a straight line, and every point on the line is a solution.

To draw the line, two points are enough. The quickest are where it cuts the axes: put โ€‹x = 0โ€‹, then put โ€‹y = 0โ€‹.

2. Two equations: where the lines meet

A pair of linear equations asks for values of โ€‹xโ€‹ and โ€‹yโ€‹ that satisfy both at once. On a graph, that is the point common to both lines.

The lines x plus y equals 5 and x minus y equals 1 drawn on the same axes. They cross at the point 3, 2.

The figure shows โ€‹x + y = 5โ€‹ and โ€‹x - y = 1โ€‹. They cross at โ€‹(3, 2)โ€‹. Check: โ€‹3 + 2 = 5โ€‹ and โ€‹3 - 2 = 1โ€‹. This is the graphical solution. It explains what a solution is, but in the exam the algebraic methods are faster.

3. Solving by algebra

Elimination is the method to use first. Make the coefficients of one unknown equal in size, then add or subtract the equations so that it disappears.

Solve โ€‹x + 2y = 8โ€‹ and โ€‹3x - y = 3โ€‹. Multiply the second equation by 2: โ€‹6x - 2y = 6โ€‹. Add it to the first: โ€‹7x = 14โ€‹, so โ€‹x = 2โ€‹. Put this back in the first: โ€‹2 + 2y = 8โ€‹, so โ€‹y = 3โ€‹.

Substitution is handy when one unknown stands alone. From the first equation, โ€‹x = 8 - 2yโ€‹. Put this in the second: โ€‹3(8 - 2y) - y = 3โ€‹, so โ€‹24 - 7y = 3โ€‹ and โ€‹y = 3โ€‹. Then โ€‹x = 8 - 6 = 2โ€‹.

Always put both values into the equation you did not use last. It takes five seconds and catches sign errors.

4. One solution, none, or infinitely many

Two lines in a plane can cross once, be parallel, or be the same line.

Three small graphs. In the first, two lines cross at one point: one solution. In the second, two lines are parallel: no solution. In the third, the two equations give the same line: infinitely many solutions.

You can tell which case you have without drawing. Write both equations in the same form, โ€‹a_1x + b_1y = c_1โ€‹ and โ€‹a_2x + b_2y = c_2โ€‹, and compare the ratios of the coefficients.

Ratios The lines Solutions Example
โ€‹\frac{a_1}{a_2} \ne \frac{b_1}{b_2}โ€‹ cross at one point exactly one โ€‹2x + 3y = 7โ€‹ and โ€‹4x + 5y = 10โ€‹
โ€‹\frac{a_1}{a_2} = \frac{b_1}{b_2} \ne \frac{c_1}{c_2}โ€‹ are parallel none โ€‹2x + 3y = 7โ€‹ and โ€‹4x + 6y = 10โ€‹
โ€‹\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}โ€‹ are the same line infinitely many โ€‹2x + 3y = 7โ€‹ and โ€‹4x + 6y = 14โ€‹

The reason is simple. In the third row the second equation is the first one doubled, so it says nothing new. In the second row the left side is doubled but the right side is not, so the two cannot both be true.

A pair with at least one solution is called consistent. A pair with no solution is inconsistent.

5. Equations that become linear

If the unknowns appear as โ€‹\frac{1}{x}โ€‹ and โ€‹\frac{1}{y}โ€‹, give these new names. For

\frac{2}{x} + \frac{3}{y} = 13, \qquad \frac{5}{x} - \frac{4}{y} = -2

put โ€‹u = \frac{1}{x}โ€‹ and โ€‹v = \frac{1}{y}โ€‹. Then โ€‹2u + 3v = 13โ€‹ and โ€‹5u - 4v = -2โ€‹. Elimination gives โ€‹u = 2โ€‹ and โ€‹v = 3โ€‹, so โ€‹x = \frac{1}{2}โ€‹ and โ€‹y = \frac{1}{3}โ€‹. Boat and stream questions have this form, with โ€‹\frac{1}{\text{speed}}โ€‹ as the unknown.

6. Word problems

Three steps: name the two unknowns, write one equation for each fact, solve.

The problem says Write
a two-digit number with tens digit โ€‹aโ€‹ and units digit โ€‹bโ€‹ the number is โ€‹10a + bโ€‹; reversed it is โ€‹10b + aโ€‹
ages now โ€‹fโ€‹ and โ€‹sโ€‹; "in 10 years" โ€‹f + 10โ€‹ and โ€‹s + 10โ€‹
a fraction โ€‹\frac{x}{y}โ€‹, with โ€‹xโ€‹ and โ€‹yโ€‹ as the unknowns
a boat at โ€‹xโ€‹ km/h in still water, stream at โ€‹yโ€‹ km/h downstream speed โ€‹x + yโ€‹, upstream speed โ€‹x - yโ€‹
a fixed charge and a charge per unit total โ€‹= x + (\text{number of units}) \times yโ€‹

Worked examples

Example 1. Solve โ€‹3x + 2y = 12โ€‹ and โ€‹5x - 2y = 4โ€‹.

The โ€‹yโ€‹ terms are already equal and opposite. Add: โ€‹8x = 16โ€‹, so โ€‹x = 2โ€‹. Then โ€‹6 + 2y = 12โ€‹, so โ€‹y = 3โ€‹. Check in the second: โ€‹10 - 6 = 4โ€‹.

Example 2. Solve โ€‹2x + 3y = 12โ€‹ and โ€‹3x - 2y = 5โ€‹.

Multiply the first by 2 and the second by 3, so that โ€‹yโ€‹ has the coefficient 6 in both: โ€‹4x + 6y = 24โ€‹ and โ€‹9x - 6y = 15โ€‹. Add: โ€‹13x = 39โ€‹, so โ€‹x = 3โ€‹. Then โ€‹6 + 3y = 12โ€‹, so โ€‹y = 2โ€‹.

Example 3. For what value of โ€‹kโ€‹ does the pair โ€‹kx + 3y = k - 3โ€‹ and โ€‹12x + ky = kโ€‹ have (i) infinitely many solutions, (ii) no solution?

For either case the first two ratios must be equal: โ€‹\frac{k}{12} = \frac{3}{k}โ€‹, so โ€‹k^2 = 36โ€‹ and โ€‹k = 6โ€‹ or โ€‹-6โ€‹.

For โ€‹k = 6โ€‹: the ratios are โ€‹\frac{6}{12}โ€‹, โ€‹\frac{3}{6}โ€‹ and โ€‹\frac{k - 3}{k} = \frac{3}{6}โ€‹. All three are โ€‹\frac{1}{2}โ€‹. Infinitely many solutions.

For โ€‹k = -6โ€‹: the first two ratios are โ€‹-\frac{1}{2}โ€‹, but the third is โ€‹\frac{-9}{-6} = \frac{3}{2}โ€‹. No solution.

Example 4. A two-digit number is 4 times the sum of its digits. If its digits are reversed, the new number is 27 more than the first. Find the number.

Let the tens digit be โ€‹aโ€‹ and the units digit โ€‹bโ€‹. First fact: โ€‹10a + b = 4(a + b)โ€‹, which simplifies to โ€‹b = 2aโ€‹. Second fact: โ€‹(10b + a) - (10a + b) = 27โ€‹, which simplifies to โ€‹b - a = 3โ€‹. So โ€‹2a - a = 3โ€‹: โ€‹a = 3โ€‹ and โ€‹b = 6โ€‹. The number is 36. Check: โ€‹36 = 4 \times 9โ€‹ and โ€‹63 - 36 = 27โ€‹.

Example 5. 5 pens and 3 notebooks cost Rs 96. 3 pens and 5 notebooks cost Rs 128. Find the price of each.

โ€‹5p + 3n = 96โ€‹ and โ€‹3p + 5n = 128โ€‹. The coefficients are swapped, so add and subtract instead of eliminating. Adding: โ€‹8p + 8n = 224โ€‹, so โ€‹p + n = 28โ€‹. Subtracting the first from the second: โ€‹2n - 2p = 32โ€‹, so โ€‹n - p = 16โ€‹. Hence โ€‹n = 22โ€‹ and โ€‹p = 6โ€‹. A pen costs Rs 6 and a notebook Rs 22.

From the real papers

The six papers have one question on this chapter. It is from CDS I 2026, whose answer key is still provisional. Our working agrees with that key.

CDS I 2026, Q10. For what integral value of k, the system of equations โ€‹kx - 5y + 6 = 0โ€‹ and โ€‹4(k - 1)y - 12x + 3 = 0โ€‹ has no solution?

(a) 4โ€ƒโ€ƒ(b) 3โ€ƒโ€ƒ(c) 1โ€ƒโ€ƒ(d) No such value exists

Solution. First put both in the same order. The second is โ€‹-12x + 4(k - 1)y + 3 = 0โ€‹. For no solution the first two ratios must be equal: โ€‹\frac{k}{-12} = \frac{-5}{4(k - 1)}โ€‹. Cross-multiply: โ€‹4k(k - 1) = 60โ€‹, so โ€‹k^2 - k - 15 = 0โ€‹. Two whole numbers with product โ€‹-15โ€‹ and sum โ€‹-1โ€‹ do not exist, so this has no integer root. (Its roots are โ€‹\frac{1 \pm \sqrt{61}}{2}โ€‹.) For every integer โ€‹kโ€‹ the ratios differ, and the pair has exactly one solution. Answer (d).

Notice the trap: the second equation is printed with the โ€‹yโ€‹ term first.

Practice questions in the exam style

These three are our own, written in the pattern of the paper. They are not from a real paper.

Practice 1. For what value of โ€‹kโ€‹ does the pair โ€‹2x + 3y = 7โ€‹ and โ€‹4x + 6y = kโ€‹ have infinitely many solutions?

(a) 7โ€ƒโ€ƒ(b) 14โ€ƒโ€ƒ(c) 21โ€ƒโ€ƒ(d) No such value exists

Solution. โ€‹\frac{2}{4} = \frac{3}{6} = \frac{1}{2}โ€‹, so the third ratio must also be โ€‹\frac{1}{2}โ€‹: โ€‹\frac{7}{k} = \frac{1}{2}โ€‹ and โ€‹k = 14โ€‹. Answer (b).

Practice 2. A boat goes 24 km upstream and 50 km downstream in 11 hours. It goes 36 km upstream and 30 km downstream in 12 hours. What is the speed of the stream?

(a) 2 km/hโ€ƒโ€ƒ(b) 3 km/hโ€ƒโ€ƒ(c) 4 km/hโ€ƒโ€ƒ(d) 7 km/h

Solution. Let โ€‹u = \frac{1}{\text{upstream speed}}โ€‹ and โ€‹v = \frac{1}{\text{downstream speed}}โ€‹. Then โ€‹24u + 50v = 11โ€‹ and โ€‹36u + 30v = 12โ€‹. Multiply the first by 3 and the second by 2: โ€‹72u + 150v = 33โ€‹ and โ€‹72u + 60v = 24โ€‹. Subtract: โ€‹90v = 9โ€‹, so โ€‹v = \frac{1}{10}โ€‹, and then โ€‹u = \frac{1}{4}โ€‹. The upstream speed is 4 km/h and the downstream speed is 10 km/h. So โ€‹x - y = 4โ€‹ and โ€‹x + y = 10โ€‹: the boat does 7 km/h and the stream 3 km/h. Answer (b).

Practice 3. A Question is followed by two Statements.

Question: What are the values of โ€‹xโ€‹ and โ€‹yโ€‹?

Statement-I: โ€‹2x + 3y = 12โ€‹

Statement-II: โ€‹4x + 6y = 24โ€‹

(a) The Question can be answered by one of the Statements alone, but not by the other.โ€ƒโ€ƒ(b) The Question can be answered by either Statement alone.โ€ƒโ€ƒ(c) The Question can be answered by using both the Statements together, but cannot be answered by using either Statement alone.โ€ƒโ€ƒ(d) The Question cannot be answered even by using both Statements together.

Solution. One equation in two unknowns has many solutions, so neither statement alone is enough. Together they look like two equations, but the second is the first doubled: all three ratios are โ€‹\frac{1}{2}โ€‹. It is the same line, with infinitely many solutions. Answer (d).

Mistakes that cost marks

  1. Multiplying only the left side. When you multiply an equation by 3, multiply every term, the right side too. โ€‹2x + 3y = 12โ€‹ becomes โ€‹6x + 9y = 36โ€‹, not โ€‹6x + 9y = 12โ€‹.
  2. Comparing ratios before the equations are in the same order. Write both as โ€‹ax + by = cโ€‹ with โ€‹xโ€‹ first, then compare. The real question above depends on this.
  3. Stopping at โ€‹\frac{a_1}{a_2} = \frac{b_1}{b_2}โ€‹. That only says the lines do not cross. Check the third ratio to tell "no solution" from "infinitely many".
  4. Counting equations without looking at them. Two equations do not always fix two unknowns. If one is a multiple of the other, there is really only one.

Quick check

Do these without help. Answers are at the end.

  1. Solve โ€‹x + y = 9โ€‹ and โ€‹x - y = 3โ€‹.
  2. Solve โ€‹2x + y = 7โ€‹ and โ€‹3x - 2y = 0โ€‹.
  3. How many solutions does the pair โ€‹3x - 2y = 5โ€‹ and โ€‹6x - 4y = 7โ€‹ have?
  4. For what value of โ€‹kโ€‹ does the pair โ€‹x + 2y = 3โ€‹ and โ€‹2x + ky = 7โ€‹ have no solution?
  5. A father is three times as old as his son. In 10 years he will be twice as old as his son. Find their ages now.

Read and watch more, free

What Where Language
Textbook, the whole chapter NCERT Class 10 Mathematics, Chapter 3 Pair of Linear Equations in Two Variables ยท Hindi edition English, Hindi
Textbook, the line and its graph NCERT Class 9 Ganita Manjari Part II, Chapter 13 Two Variables, One Line English
Textbook, with word problems NIOS Secondary Mathematics (211), Lesson 5 Linear Equations ยท Hindi edition English, Hindi
Practice with answers NCERT Exemplar Class 10, Unit 3 Linear Equations ยท Hindi edition English, Hindi
The real papers UPSC previous question papers English, Hindi
Video and practice by NCERT chapter Khan Academy, NCERT Math Class 10 (the unit on linear equations) ยท in Hindi English, Hindi
Video, numbered classes Chandigarh Career Group: CDS advance maths by Sandeep Brar (the eight classes on equations) Hinglish
Video, a full CDS course R.S SIR: Maths Playlist for CDS 2025 (the algebra lessons, about 55 minutes each) Hindi and Hinglish

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. Add: โ€‹2x = 12โ€‹, so โ€‹x = 6โ€‹ and โ€‹y = 3โ€‹.
  2. From the first, โ€‹y = 7 - 2xโ€‹. Then โ€‹3x - 2(7 - 2x) = 0โ€‹ gives โ€‹7x = 14โ€‹, so โ€‹x = 2โ€‹ and โ€‹y = 3โ€‹.
  3. None. โ€‹\frac{3}{6} = \frac{-2}{-4} = \frac{1}{2}โ€‹ but โ€‹\frac{5}{7}โ€‹ is different: the lines are parallel.
  4. โ€‹\frac{1}{2} = \frac{2}{k}โ€‹ gives โ€‹k = 4โ€‹. The third ratio is โ€‹\frac{3}{7}โ€‹, which is different, so there is no solution.
  5. โ€‹f = 3sโ€‹ and โ€‹f + 10 = 2(s + 10)โ€‹. So โ€‹3s + 10 = 2s + 20โ€‹: the son is 10 and the father is 30.

Next chapter: Linear inequations in two variables.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    Consider the following statements about the pair of equations โ€‹3x - 5y = 7โ€‹ and โ€‹6x - 10y = 15โ€‹: I. The pair is inconsistent. II. The graphs of the two equations are parallel lines. Which of the statements given above is/are correct?
  2. Question 2 of 3
    Consider the following statements: I. Every pair of linear equations in two unknowns has at least one solution. II. A pair of linear equations in two unknowns can have exactly two solutions. Which of the statements given above is/are correct?
  3. Question 3 of 3
    The pair of equations โ€‹2x + 3y = 7โ€‹ and โ€‹(a + 1)x + (b - 1)y = 21โ€‹ has infinitely many solutions. What is the value of โ€‹a + bโ€‹?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the working is WishWas's own, checked against UPSC's answer key where one has been published. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.