Anish runs a small stationery shop near his school in Dhulikhel. A customer buys two pens and a copy and pays Rs 60. Later Anish wants to write the prices on his shelf, but he has forgotten what each one costs. All he remembers is that sale.
Can he work out the price of a pen from it? Try a few guesses. A pen at Rs 20 and a copy at Rs 20 fits: 2 × 20 + 20 = 60. But a pen at Rs 25 and a copy at Rs 10 fits too, and so does a pen at Rs 15 and a copy at Rs 30. One sale, many answers.
In this unit you write sums like this one as an equation in two variables, and you find out why it has so many answers, and how all of them together make a straight line on a graph. On the way you solve inequalities, sentences with < or > that are true for a whole stretch of numbers. In Back to the shop Anish remembers one more sale, and that is enough to fix both prices.
12.0 Review
Read each question, discuss it with a friend and answer it.
Is the sum of 5 and 7 equal to 11?
Answer
If x − 3 = 5, what is the value of x?
Answer
If 3a = 18, what is the value of a?
Answer
If , what is the value of x?
Answer
If the sum of x and 10 is 18, what is the value of x?
Answer
Is −10 > −15 true?
Answer
If x − 4 < 8, what is the solution set of x?
Answer
12.1 Linear equations in two variables
Two unknowns, one sum
Each of these equations has two variables, each to the power 1 (no or ), joined by an equals sign. An equation like this is called a linear equation in two variables. Examples: x + y = 30, 2x + y = 60, 2x = 3y.
The word “linear” comes from “line”. You will see why in 12.3: the answers of such an equation all lie on a straight line.
Which of these is a linear equation in two variables?
Pick an answer to see why.
Many answers, then one
An equation in one variable, like x + 4 = 8, has one answer. An equation in two variables has many pairs of answers. To get one answer, you need to know one of the two numbers; then the equation gives the other.
Exercise 12.1
Question 1
Write whether each sentence is true or false.
x + 4 = 8 is an equation in two variables.
Answer
2x = 3y is an equation in two variables.
Answer
An equation with two variables and an equals sign is called an equation in two variables.
Answer
3x = 12 is an equation in two variables.
Answer
Question 2
A plot of land is x m long and y m broad. Its perimeter is 240 m.
Write the equation for its perimeter.
Answer
If the length is 70 m, find the breadth.
Answer
Question 3
A path 5 m wide runs all round a rectangular pond. The perimeter of the outside edge of the path is 210 m.
Write an equation for the pond’s length and breadth.
Answer
If the breadth of the pond is 40 m, find its length.
Answer
Question 4
The sum of two consecutive odd numbers is 56. Find the numbers.
Answer
Question 5
There are 75 students in a class. The number of boys is double the number of girls. Find the number of boys and of girls.
Answer
Question 6
The sum of the present ages of Lhamu and her son Tenzing is 40 years. Lhamu is three times as old as Tenzing. Find their present ages.
Answer
Question 7
There are 42 students in a class.
Write an equation for all the students.
Answer
What could the numbers of boys and girls in the class be?
Answer
12.2 Inequalities on the number line
Bigger, smaller or equal
A sentence with <, >, ≤ or ≥ is an inequality. Read them as:
| Sign | Read it as | Example |
|---|---|---|
| > | is greater than | x > 4 |
| < | is less than | x < 3 |
| ≥ | is greater than or equal to | x ≥ 2 |
| ≤ | is less than or equal to | x ≤ 1 |
An equation like x + 2 = 5 is true for one number. An inequality like x > 4 is true for a whole stretch of numbers, so we show it on a number line.
Showing an inequality on a number line
Try it here. Choose a sign, and drag the yellow point to test numbers: the sentence says whether each one makes the inequality true.
Which inequality has a filled circle at −2 and an arrow to the right?
Pick an answer to see why.
Rules of inequality
Solving an inequality is like solving an equation: you do the same thing to both sides. But one move behaves differently. Play with it first.
Let x, y and z be integers with x > y. Then:
- a.x + z > y + z: the addition axiom, adding the same number to both sides.
- b.x − z > y − z: the subtraction axiom, subtracting the same number from both sides.
- c.xz > yz when z is positive: the multiplication axiom, multiplying by a positive number.
- d. when z is positive: the division axiom, dividing by a positive number.
- e.xz < yz when z is negative: the multiplication axiom, multiplying by a negative number.
- f. when z is negative: the division axiom, dividing by a negative number.
So: multiplying or dividing both sides by a negative number turns the sign round (> becomes <, and ≥ becomes ≤). Every other move keeps it.
Why? Take 5 > 2. Multiply both by −1: you get −5 and −2. But −5 is to the left of −2, so −5 < −2. Multiplying by a negative number flips every number to the other side of 0, and the bigger one ends up further left.
6 > 3. Both sides are divided by −3. Which is true?
Pick an answer to see why.
Solving inequalities
Exercise 12.2
Question 1
1, 2 and −3 are integers. Is each of these true, by the trichotomy law?
1 + (−3) = 2 + (−3)
Answer
2 − 3 < 1 + 2
Answer
2 − 1 > −3 − 1
Answer
1 − 3 < 1 + 2
Answer
Answer
(−3) × 1 ≥ 2 × (−3)
Answer
Question 2
Solve each inequality and show it on a number line.
x + 1 > 2
Answer
x − 3 ≤ 4
Answer
x + 2 < 4
Answer
x − 2 ≤ 3
Answer
3 − x ≥ 1
Answer
4 − 2x ≥ 6
Answer
3x + 2 ≥ x − 6
Answer
5x − 3 ≥ 12
Answer
7x − 4 ≤ 17
Answer
5x − 7 ≤ 2x + 5
Answer
Question 3
Write the inequality shown on each number line.
What inequality does number line (a) show?
Answer
What inequality does number line (b) show?
Answer
What inequality does number line (c) show?
Answer
What inequality does number line (d) show?
Answer
What inequality does number line (e) show?
Answer
What inequality does number line (f) show?
Answer
Question 4
Write each sentence as an inequality, solve it and show it on a number line.
One fourth of a number is subtracted from 3, and the result is greater than or equal to 2.
Answer
13 is subtracted from double a number, and the result is less than or equal to 3.
Answer
9 is subtracted from four times a number, and the result is less than or equal to −3.
Answer
7 is added to three times a number, and the result is less than 13.
Answer
12.3 Graph of a linear equation in two variables
The answers line up
This is true of every linear equation in two variables: its pairs of answers, plotted, lie on one straight line, and every point on that line is an answer. The line is called the graph of the equation. (For balls, only the whole-number points make sense: the head teacher can’t buy 2.5 volleyballs. The line still shows where they all are.)
Build one yourself. Choose x with the slider, add the pair to the table, and watch where the dots fall. Then drag the yellow point onto the line and off it again, and see when the equation is true.
Which point lies on the graph of x + y = 4?
Pick an answer to see why.
Exercise 12.3
Question 1
Make a table of values of x and y for each equation.
3x + y = 6
Answer
x + y = 4
Answer
3x − y = 7
Answer
Question 2
Draw the graph of each equation.
2x + y = 8
Answer
3x + 2y = 6
Answer
x + y + 3 = 0
Answer
x + 2y = 10
Answer
y = 4x − 1
Answer
2x + y − 3 = 0
Answer
Miscellaneous exercise
These questions bring together this unit and Units 10 and 11, Indices and Algebraic Expression.
Question 1
Write each product as a power.
Answer
Answer
Question 2
If a = 1, b = 2 and c = −3, find the value of each. First notice that a + b + c = 1 + 2 − 3 = 0.
Answer
Answer
Answer
Answer
Question 3
If a = 3, b = 1 and c = −4, find the value of each.
Answer
Answer
Answer
Answer
Question 4
Divide.
Answer
Answer
Answer
Question 5
A cricket stadium is (2x + y) m long and (x − 2y) m broad. Find its area.
Answer
Question 6
The floor of a seminar hall has an area of m². It is to be covered by a carpet (x − 2) m broad.
How long must the carpet be to cover it?
Answer
If x = 5, find its length, its breadth and its area.
Answer
Find the cost of the carpet at Rs 400 per square meter.
Answer
If x is increased by 1, from 5 to 6, by what percent does the cost increase?
Answer
Question 7
Divide by (7x + 15). Find the quotient and the remainder.
Answer
Question 8
Find the square of each expression by the formula, by multiplying without the formula, and with a drawing of squares and rectangles.
(y + 4)
Answer
(y + 5)
Answer
(b − 2)
Answer
Question 9
Find the square of each number by writing it as a sum or a difference of two numbers.
28
Answer
296
Answer
502
Answer
Question 10
Simplify.
Answer
Answer
Answer
Question 11
If , find the value of each.
Answer
Answer
Question 12
If x + y = 15 and xy = 8, find the value of each.
Answer
Answer
Question 13
If , find the value of each.
Answer
Answer
Question 14
Make a table of values of x and y for each equation.
x + y = 2
Answer
2x − y = 4
Answer
Question 15
Draw the graph of each equation.
2x + y = 5
Answer
4x + 3y = 6
Answer
3x − 2y = 7
Answer
Printable PDFs
- Study notes 2 pages
- Harder practice questions 2 pages Answer key
Practice every question in the book, and keep track of the ones you miss →
Back to the shop
Anish’s first sale gives him one equation. Let a pen cost Rs x and a copy Rs y:
It has many answers: (20, 20), (25, 10), (15, 30), (10, 40)… all on one straight line.
Then Anish remembers a second sale: a pen and a copy for Rs 35. That is a second equation:
The first sale had one more pen than the second, and it cost Rs 25 more. So that extra pen cost Rs 25, and a copy costs 35 − 25 = Rs 10. Check: 2 × 25 + 10 = 60 ✓ and 25 + 10 = 35 ✓
On a graph, each sale is a line, and the answer is the one point on both lines: where they cross.
One equation in two variables has many answers; two equations together usually have one. Solving two equations at once is the start of Grade 8, Equation and Graph.
Where this is used
- Thermometers. A temperature in degrees Fahrenheit, used in the United States, is for a temperature of C degrees Celsius: a linear equation in two variables, whose graph is a straight line. Water boils at 100 °C, which is 212 °F.
- Spending money. Economists draw a budget line: with Rs 60 to spend on pens at Rs 25 and copies at Rs 10, every mix you can just afford lies on the line 25x + 10y = 60, and every mix you can afford at all satisfies the inequality 25x + 10y ≤ 60.
Where these facts come from
- Celsius and Fahrenheit: Wikipedia, “Fahrenheit” (the conversion f = 1.8c + 32, and water boiling at 212 °F), read November 2026.
- The signs < and >: Wikipedia, “Thomas Harriot” (credited with their first widespread use; his Artis Analyticae Praxis published after his death, in 1631), read November 2026.
- Budget line: Wikipedia, “Budget constraint”, read November 2026.
A companion to your textbook, not a replacement for it: study from the book your school uses, and where the two differ, follow your teacher. Found a mistake? Please tell us.
