Linear Equations in Two Variables
Recognise an equation of the form , check whether a pair of values is a solution, find solutions and tables of values, and write such an equation from words.
Before you start
- To solve a linear equation in one unknown, do the same to both sides: gives , so .
- To substitute a negative number, use brackets: when , .
- To make the subject of a formula, rearrange it so that stands alone on one side.
What Is a Linear Equation in Two Variables?
In Secondary 1 an equation such as had one unknown, and one value of made it true. Many situations need two unknowns. If a pen costs $ and a file costs $, and 3 pens and 2 files cost $, then . This is an equation in two variables, and .
Linear equation in two variables
A linear equation in two variables and is an equation that can be written in the form
where , and are numbers and and are not both .
Each variable appears only to the power . There is no , no (the variables are not multiplied together) and no variable in a denominator, such as .
Example 1: Is it a linear equation in two variables?
Which of these are linear equations in two variables? Give a reason for each. (a) (b) (c) (d) (e) (f) (g)
Solution
(a) Yes. It is already in the form , with , and .
(b) Yes. Subtract from both sides: . This is the form with , , .
(c) No. The two variables are multiplied together.
(d) No. is squared.
(e) No. is in a denominator: is not a number times .
(f) Yes. Expand the bracket: . Subtract from both sides: . This is the form with , and .
(g) Yes. is and is , so , and . Fractions are allowed as the numbers , and .
(a), (b), (f) and (g) are linear equations in two variables; (c), (d) and (e) are not.
Solutions Are Ordered Pairs
A solution of an equation in two variables
A solution of an equation in and is a pair of values, one for and one for , that makes the equation true.
It is written as an ordered pair , with the value of first. means and .
To check a pair, substitute both values and see whether the two sides are equal.
Example 2: Checking pairs
Which of the pairs , , and are solutions of ?
Solution
Substitute each pair into the left-hand side, , and compare with .
: Equal to , so it is a solution.
: A solution.
: Not equal to , so it is not a solution.
: A solution.
Look at and : the same two numbers, but only one is a solution. The order matters, which is why the pair is called ordered.
, and are solutions of ; is not.
Finding a Solution from One Value
If you know one of the two values, substitute it. What is left is an equation in one unknown, which you solve as in Secondary 1. The answer may be negative or a fraction.
Example 3: Given x, find y; given y, find x
For the equation , find (a) when , (b) when , (c) when , (d) when .
Solution
(a) , so . Subtract : . Divide by : .
(b) , so . Subtract : . Divide by : .
(c) , so . Subtract : . Divide by : .
(d) , so . Subtract : . Divide by : .
Check (a): Check (c):
(a) , so is a solution. (b) , so . (c) , so . (d) , so .
Infinitely Many Solutions
Whatever value you choose for , you can find the value of that goes with it, as in Example 3. There is no end to the values you can choose, so one linear equation in two variables has infinitely many solutions.
To find solutions quickly, choose values that make the arithmetic easy, such as , or values that make the division come out whole.
Example 4: Listing solutions
Find five solutions of . Include one in which is negative and one in which is a fraction.
Solution
Here it is easier to choose and find : add to both sides to get .
: , giving .
: , giving .
: , giving .
: giving , with negative.
For a fraction, choose : , so and , giving .
Check : Check :
For example , , , and . There are infinitely many others.
The drawing shows seven solutions of plotted as points: six found in Examples 2 and 3, and , since . They lie on one straight line. Every solution of the equation is a point of that line: this is the graph of the equation, which the next lesson draws.
Making y the Subject and Tables of Values
To find for many values of , it saves work to make the subject first. Then each value of is substituted into one expression.
Making y the subject of ax + by = c
Subtract from both sides: .
Divide both terms by (this needs ):
Take care with signs when is negative.
Example 5: A table of values for 5x + 2y = 10
Make the subject of , and use it to complete a table of values for .
Solution
Subtract from both sides: . Divide by : .
:
:
:
:
:
Check in the original equation:
, and the values of are , , , and .
Example 6: When b is negative
Make the subject of , and find for .
Solution
Subtract from both sides: .
Multiply both sides by to make the term positive: . Divide by : .
:
:
:
:
Check :
, and the values of are , , and .
Finding an Unknown in a Solution
If you are told that a pair is a solution, its values make the equation true. Substitute them, and solve for the unknown.
Example 7: Finding k
(a) is a solution of . Find . (b) is a solution of . Find .
Solution
(a) Here and : , so . Add : . Divide by : .
Check:
(b) Here and : , so . Subtract : . Divide by : .
Check:
(a) (b)
Equations with the Same Solutions
Equivalent equations
Multiplying or dividing every term on both sides of an equation by the same number (not ), or rearranging its terms, gives an equation with exactly the same solutions. Such equations are called equivalent.
and are equivalent: divide every term of the first by to get the second.
Example 8: Which equations are equivalent?
Which of these equations have exactly the same solutions as ? (a) (b) (c) (d)
Solution
(a) Every term of multiplied by gives . Equivalent.
(b) Add to both sides of , then subtract : , that is . Equivalent.
(c) Only the right-hand side has changed. is a solution of , since , but not of . Not equivalent.
(d) The left-hand side was multiplied by but the right-hand side was not. gives , not . Not equivalent.
(a) and (b) are equivalent to ; (c) and (d) are not.
Writing an Equation from Words
First say what each letter stands for, with its unit. Then turn the sentence into an equation.
Example 9: From a sentence to an equation
Write an equation in and for each sentence. (a) The sum of two numbers is . (b) The difference between two numbers is , the first being the larger. (c) 3 pens and 2 files cost $. (d) The chickens and goats on a farm have legs altogether.
Solution
(a) Let the numbers be and : .
(b) Let the larger number be and the smaller : .
(c) Let a pen cost $ and a file cost $. 3 pens cost $ and 2 files cost $: .
(d) Let there be chickens and goats. A chicken has 2 legs and a goat 4: .
(a) (b) (c) (d)
In a real setting, not every solution makes sense. You cannot have goats or notes. When the variables count things, only whole numbers that are not negative will do, and there are usually only a few such solutions.
Example 10: Whole-number solutions
Mrs Lim pays exactly $ using only $ notes and $ notes, with at least one note of each kind. Write an equation and list every way she can do it.
Solution
Let be the number of $ notes and the number of $ notes: .
Make the subject: . For to be a whole number, must be even, so must be even.
Try the even values of from up. Stop when would be or less.
gives , which has no $ notes, so it is not allowed.
Check: and
There are two ways: ten $ notes and two $ notes, or five $ notes and four $ notes.
Common Mistakes
- Swapping the order. means and . In Example 2, is a solution of but is not.
- Losing a minus sign. Substitute a negative number in brackets: at is not .
- Dividing only one term. From , , not . Both terms are divided by .
- Changing one side only. is not equivalent to : every term on both sides must be divided by .
- Calling linear. A term with times , or with , or with in a denominator, makes the equation not linear.
Practice Questions
Work each question on paper before you open its solution. The questions get harder as you go.
Question 1
Which of these are linear equations in two variables? (a) (b) (c) (d) (e) (f)
ShowHide solution
(a) Yes: the form with , , .
(b) No: is squared.
(c) No: is in a denominator.
(d) Yes: add to both sides to get .
(e) No: and are multiplied together.
(f) No: expanding gives , and and are multiplied together.
(a) and (d) only.
Question 2
Which of the pairs , , and are solutions of ?
ShowHide solution
: . Yes.
: . No.
: Yes.
: No.
and are solutions; and are not.
Question 3
For the equation , find (a) when , (b) when , (c) when , (d) when .
ShowHide solution
(a) , so and .
(b) , so , and .
(c) , so . Add : , so .
(d) , so . Subtract : , so .
Check (c):
(a) (b) (c) (d)
Question 4
Make the subject of . Use it to complete the table of values for .
ShowHide solution
Subtract : . Divide by : .
: . : . : . :
Check :
; the values of are , , and .
Question 5
Make the subject of . Use it to find for .
ShowHide solution
Subtract : . Multiply both sides by : . Divide by : .
: : . : . : .
Check :
; the values of are , , and .
Question 6
Complete this table for the equation . Some of the missing values are values of .
| ? | ? | ||||
| ? | ? | ? |
ShowHide solution
: , so and .
: , so .
: , so .
: , so and .
: , so and .
The pairs are , , , and .
Question 7
Write down four solutions of : one with a negative value of , and one in which is not a whole number.
ShowHide solution
Make the subject: . Choose values of .
: , giving . : , giving . : , giving .
For not whole, choose : , so and , giving .
Check : . Check :
For example , , and . Any pair that makes true is right.
Question 8
(a) is a solution of . Find . (b) is a solution of . Find . (c) is a solution of . Find .
ShowHide solution
(a) , so , and . Check: .
(b) , so . Add : , so . Check:
(c) Both values are : , so and . Check: .
(a) (b) (c)
Question 9
Which of these equations have exactly the same solutions as ? (a) (b) (c) (d) (e)
ShowHide solution
(a) Every term multiplied by . Equivalent.
(b) The left-hand side is multiplied by but , not . Not equivalent: solves but gives here.
(c) Add to both sides of . Equivalent.
(d) Every term multiplied by . Equivalent.
(e) was multiplied by but was not. Not equivalent: works, but solves and gives here.
(a), (c) and (d).
Question 10
Write an equation in and for each. (a) A number is less than three times a number . (b) At a cinema, adult tickets at $ each and child tickets at $ each cost $ altogether. (c) A rectangle cm long and cm wide has a perimeter of cm.
ShowHide solution
(a) Three times is ; less is : , or .
(b) The adult tickets cost $ and the child tickets $: . Dividing every term by gives the equivalent .
(c) The perimeter is , or .
(a) (b) (c)
Question 11
Kumar spends exactly $ on pens at $ each and notebooks at $ each, and buys at least one of each. Write an equation and find every possible number of pens and notebooks.
ShowHide solution
Let be the number of pens and the number of notebooks: , so .
Try and keep only whole values of that are at least :
| — | — | — | — | — | — |
gives : no pens, so it is not allowed. A dash means is not a multiple of .
Check: ,
Three ways: 12 pens and 1 notebook, 8 pens and 4 notebooks, or 4 pens and 7 notebooks.
Question 12
Aisha has only 20-cent and 50-cent coins in her purse, worth $ altogether. She has at least one coin of each kind. How many of each could she have?
ShowHide solution
Work in cents: $ is cents. Let there be 20-cent coins and 50-cent coins: .
Divide every term by : , so . For a whole , must be even.
: . : , not allowed (no 20-cent coins).
Check: coins of 20 cents make cents and coins of 50 cents make cents; together cents, or $.
Only one way: five 20-cent coins and two 50-cent coins.
Key Points
- A linear equation in two variables can be written as , with and not both ; no , no , no variable in a denominator.
- A solution is an ordered pair , first, that makes the equation true. Check a pair by substituting both values.
- Given one value, substitute it and solve for the other. The answer may be negative or a fraction.
- One linear equation in two variables has infinitely many solutions.
- To make a table of values, first make the subject: (when ).
- If a pair with an unknown is a solution, substitute it and solve for .
- Multiplying or dividing every term by the same non-zero number gives an equivalent equation, with the same solutions.
- In a setting where the variables count things, only whole numbers that are not negative make sense.