Linear Equations in Two Variables

👉 What is a linear equation in two variables?

An equation that can be written as ax + by + c = 0 is a linear equation in two variables. Here x, y are variables and a, b, c are constants. At least one of a and b must be nonzero.

Each variable that appears has degree 1. An equation containing a squared variable, such as x2 + y = 7, or a product of variables, such as xy = 12, is nonlinear. Even x = 4 represents a line in the plane because it can be written as x + 0y − 4 = 0.

Example. Each of the ordered pairs (x,y) = (1,6), (2,5), (4,3) satisfies x + y = 7. Over the real numbers, this equation has infinitely many solutions.

Two equations considered together form a pair of simultaneous equations. A solution is an ordered pair that satisfies both equations. Depending on the equations, there may be one solution, no solution or infinitely many solutions.

⭐ Five methods for solving a pair of linear equations

We will solve the same pair using elimination, substitution, comparison, cross-multiplication and the graphical method.

👉 1. Elimination method

Idea. Make the coefficients of one variable equal or opposite. Subtract the equations if the coefficients are equal, or add them if they are opposite. If necessary, first multiply both sides of an equation by a suitable nonzero number.

x + y = 7 --- (i)

x - y = 1 --- (ii)

Step 1. The coefficients of y are opposite, so add equations (i) and (ii).

∴ (x + y) + (x − y) = 7 + 1

x + y + x − y = 8 2x = 8 x = 4

Step 2. Substitute x = 4 into equation (i).

∴ 4 + y = 7

y = 7 − 4 y = 3

Solution. x = 4, y = 3.

✏️ Example 1. Multiply to make the coefficients equal

Solve the following pair.

2x + 3y = 12 .... (i)

3x + 2y = 13 .... (ii)

Multiply equation (i) by 3 and equation (ii) by 2.

6x + 9y = 36 .... (iii)

6x + 4y = 26 .... (iv)

Subtract equation (iv) from equation (iii).

Educational concept illustration

5y = 10 y = 2

Substitute y = 2 into equation (i).

2x + 3 × 2 = 12 2x = 12 − 6 2x = 6 x = 3

Answer. x = 3, y = 2.

Check both equations. 6 + 6 = 12 and 9 + 4 = 13.

✍️ Practice using elimination

🔹 1. 3x + 2y = 6, 2x − 3y = 17

🔹 2. 3x − 2y = 5, x + 4y = 3

🔹 3. x2 + y3 = 1, x3 + y2 = 1

🔹 4. 1x + 1y = 56, 1x − 1y = 16

🔹 5. x + y = a + b, ax − by = a2 − b2

👉 2. Substitution method

Idea. Use one equation to express a variable in terms of the other. Substitute that expression into the second equation.

x + y = 7 --- (i)

x - y = 1 --- (ii)

Step 1. Rearrange equation (ii) to obtain x in terms of y.

x = 1 + y --- (iii)

Step 2. Replace x in equation (i) with the expression from (iii).

∴ (1 + y) + y = 7

1 + 2y = 7 2y = 7 − 1 2y = 6 y = 3

Step 3. Substitute y = 3 into equation (iii).

∴ x = 1 + 3 = 4

Solution. x = 4, y = 3.

✏️ Example 2. Solve by substitution

Solve x = 2y and x + y = 9 together.

Replace x with 2y in the second equation.

2y + y = 9 3y = 9 y = 3

Hence x = 2 × 3 = 6.

Answer. x = 6, y = 3.

Check both equations. 6 = 2 × 3 and 6 + 3 = 9.

✍️ Practice using substitution

🔹 1. x + y = 48, x + 4 = 52(y + 4)

🔹 2. 2x + 3y = 32, 11y − 9x = 3

🔹 3. x2 + y3 = 8, 5x4 − 3y = − 3

🔹 4. x + aa = y + bb, ax − by = a2 − b2

🔹 5. x + 1y + 1 = 54, x − 5y − 5 = 12

👉 3. Comparison method

Idea. Rearrange each equation to express the same variable in terms of the other. Set the two expressions equal.

x + y = 7 --- (i)

x - y = 1 --- (ii)

Step 1. Equation (i) gives x = 7 − y.

Step 2. Equation (ii) gives x = 1 + y.

Step 3. Equate the two expressions for x.

∴ 7 − y = 1 + y

7 − 1 = y + y 6 = 2y y = 3

Step 4. Substitute back to get x = 1 + y = 1 + 3 = 4.

Solution. x = 4, y = 3 .

✍️ Practice using comparison

🔹 1. 3x − 4y = 1, 4x = 3y + 6

🔹 2. x6 − y3 = x12 − 2y3 = 4

🔹 3. x + 5y = 36, x + yx − y = 53

🔹 4. x + 27 + y − x4 = 2x − 8, 2y − 3x3 + 2y = 3x + 4

🔹 5. x + yxy = 2, x − yxy = 1

👉 4. Cross-multiplication method

First write both equations in the same standard form.

a1x + b1y + c1 = 0 --- (i)

a2x + b2y + c2 = 0 --- (ii)

Let .

If D is nonzero, the pair has a unique solution given by the following formulas.

The usual ratio form is

Check the denominators. The ratio form requires every denominator to be nonzero. If the first or second denominator is zero but D is nonzero, use the direct formulas above. The corresponding variable is then zero. If D = 0, use the coefficient test later in the lesson.

Step 1. Write our pair in standard form.

x + y − 7 = 0 --- (i)

x − y − 1 = 0 --- (ii)

Thus and . Include the sign of each coefficient.

Step 2. Substitute the coefficients into the ratio form.

Step 3. Find the two values.

✍️ Practice using cross-multiplication

🔹 1. 3x − 2y = 2, 7x + 3y = 43

🔹 2. 5x + 3y = 11, 2x − 7y = − 12

🔹 3. 7x − 3y − 31 = 0, 9x − 5y − 41 = 0

🔹 4. (7x − y − 6)2 + (14x + 2y − 16)2 = 0

👉 5. Graphical method

Each linear equation in two variables represents a straight line. The coordinates of any point on both lines give a solution of the pair.

Step 1. Choose convenient values of x. For each equation, calculate the corresponding values of y.

EquationxyPoint
x + y = 707(0, 7)
x + y = 743(4, 3)
x + y = 770(7, 0)
x − y = 110(1, 0)
x − y = 143(4, 3)
x − y = 176(7, 6)

Step 2. Draw a horizontal x-axis and a vertical y-axis on graph paper. Use one square per unit on both axes. Plot the points for each equation and draw a straight line through them. Two distinct points determine the line. The third helps you check your work.

Step 3. The lines meet at (4, 3), so x = 4, y = 3. The graph below shows the intersection.

The lines x + y = 7 and x − y = 1 intersect at (4, 3). The graph shows part of each line.

The lines x + y = 7 and x − y = 1 intersect at (4, 3). The graph shows part of each line.

A graph may give only an approximate reading. Check the coordinates in both original equations to confirm the exact answer.

Check the solution

Substitute x = 4 and y = 3 into the original equations.

  • Equation (i) gives 4 + 3 = 7.
  • Equation (ii) gives 4 − 3 = 1.

Therefore (4, 3) is a solution of both equations. The first coordinate gives x and the second gives y.

Forming and solving equations from word problems

✏️ Example 3. Find two numbers

🔸 Two numbers add up to 15. Subtracting the smaller from the larger gives 3. What are the numbers?

Let x be the larger number and y the smaller. The two conditions give the following equations.

x + y = 15 ----- (i)

x − y = 3 ----- (ii)

Add equations (i) and (ii).

2x = 18 x = 9

Hence y = 15 − 9 = 6.

Answer. The numbers are 9 and 6.

Check both equations. 9 + 6 = 15 and 9 − 6 = 3.

✏️ Example 4. The price of a notebook and a pen

🔸 Two notebooks and one pen cost ₹50. One notebook and one pen cost ₹30. What is the price of each item?

Let x be the price of one notebook in rupees and y the price of one pen in rupees. Assume all the notebooks have the same price and all the pens have the same price.

2x + y = 50, x + y = 30

Subtract the second equation from the first to get x = 20.

Then 20 + y = 30 gives y = 10.

Answer. One notebook costs ₹20 and one pen costs ₹10.

Check both equations. 2 × 20 + 10 = 50 and 20 + 10 = 30.

✍️ Practice forming equations from word problems

🔹 1. Prayas writes a proper fraction on the blackboard. Its denominator is 5 more than its numerator. Adding 3 to both the numerator and denominator gives a fraction equal to 34. Form a pair of equations.

🔹 2. My uncle is twice as old as my sister. 10 years ago, he was three times as old as she was. Form a pair of equations and find their present ages.

How many solutions can a pair have?

For two equations that each represent a straight line, there are 3 possibilities.

a1x + b1y + c1 = 0 --- (i)

a2x + b2y + c2 = 0 --- (ii)

⭐ One solution. If D ≠ 0, the lines intersect at one point. When both ratios are defined, this is equivalent to ≠ .

⭐ No solution. If the x- and y-coefficients of one equation are the same multiple of those in the other, but its constant term does not follow that multiple, the lines are distinct and parallel.

⭐ Infinitely many solutions. If one entire equation is a nonzero multiple of the other, they represent the same line. Every point on it satisfies both equations.

Why can there be no solution?

Consider x + y = 4 and x + y = 6. The same x and y cannot add up to both 4 and 6. Subtracting the first equation from the second would give 0 = 2. A pair with no solution is inconsistent.

Why can there be infinitely many solutions?

Consider x + y = 4 and 2x + 2y = 8. The second equation is 2 times the first, so every solution of the first also satisfies the second. Examples include (0, 4), (1, 3), (2, 2). A pair with at least one solution is consistent.

Use the coefficients to count the solutions+

Write the equations as and . In each equation, at least one of the coefficients of x and y must be nonzero.

Calculate these three quantities.

  • If D is nonzero, there is one solution.
  • If D = 0 and at least one of Dₓ and Dᵧ is nonzero, there is no solution.
  • If D = Dₓ = Dᵧ = 0, there are infinitely many solutions.

Which method should you choose?

What you see in the equationsMethod to use
The coefficients of one variable are equal or easy to match.Elimination
One variable is already expressed in terms of the other.Substitution
Both equations are easy to rearrange for the same variable.Comparison
The coefficients are clear in standard form and D is nonzero.Direct cross-multiplication formulas
You want to see which points the lines share.Graphical method

✍️ Solve using a method of your choice

🔹 1. xyx + y = 15, xyx − y = 19

🔹 2. x + y2 + 3y − 5y4 = 2, x14 + y18 = 1

🔹 3. 14x + y + 3x − y= 5, 21x + y − 1x − y= 2

🔹 4. ax + by = c, a2x + b2y = c2

🔹 5. ax + by = 1, bx + ay = (a + b)2a2 + b2 − 1

🧠 Common mistakes and reminders

  • When multiplying an equation by a number, multiply every term on both sides.
  • When subtracting equations, change the sign of every term in the equation being subtracted. Use brackets to keep track of the signs.
  • Before cross-multiplying, collect all terms on the left and write 0 on the right.
  • Put negative coefficients in brackets when substituting. For example, if c = −7, using 7 would change the answer.
  • After finding one variable, substitute back to find the other.
  • Check both equations. A pair of values may satisfy just one of them.
  • Division by zero is undefined. When D = 0, use the coefficient test to decide whether any solutions exist.

✍️ Short-answer questions

🔹 1. Given x = 3t and y = 2t3 - 1, for which value of t is x = 3y?

🔹 2. For which value of k do 2x + 5y = 8 and 2x + ky = 3 have no common solution?

🔹 3. If x, y are real and (x - 5)2 + (x - y)2 = 0, find x and y.

🔹 4. Given x2 + y2 - 2x + 4y = - 5, find the real values of x and y.

🔹 5. For which value of r do rx - 3y - 1 = 0 and (4 - r) x - y + 1 = 0 have no common solution?

🔹 6. Assuming b1 ≠ 0, write a1x + b1y + c1 = 0 in the form y = mx + c and identify the constants m and c.

🔹 7. For which values of k do kx - 21y + 15 = 0 and 8x - 7y = 0 have a unique solution?

🔹 8. For which values of a and b do 5x + 8y = 7 and (a+b) x + (a - b) y = (2a + b + 1) have infinitely many solutions?

Frequently asked questions

Does one linear equation determine both variables?

A single straight line contains infinitely many points, so its equation has infinitely many real solutions. To select one ordered pair, a second line must intersect the first at exactly one point.

How do elimination and substitution differ?

Elimination removes a variable by adding or subtracting equations. Substitution replaces a variable in one equation with an expression obtained from the other.

Do all five methods give the same answer?

When there is a unique solution, each method gives the same ordered pair. A reading from a plotted graph may be approximate, so check it in both equations.

Does D = 0 mean there is no solution?

When D = 0, the lines are either distinct and parallel, with no solution, or coincident, with infinitely many solutions. Compare the constant terms along with the coefficients to decide.

What does a solution represent on the graph?

A solution gives the coordinates of a point on both lines. Intersecting lines share one point, distinct parallel lines share none, and coincident lines share infinitely many points.