Two equations, one answer: the graphical method · Mathematics Class 9–10 | StemPy Lab
Course 7.2·Lesson 1 of 3
Two equations, one answer: the graphical method
Two lines can cross at one point, never cross, or be the same line. The point where they cross is the answer to both equations.
about 25 min1 simulation2 practice questions
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Two equations together
A boat goes down a river and then back up. We have two pieces of information, and two unknowns. Each piece of information gives one equation. We call two such equations a pair of linear equations in two variables.
A solution of the pair is a value of x and a value of y that make both equations true at the same time.
The graphical method
Each equation is a line. A solution of the pair must be on both lines. So it is the point where the two lines meet.
Example. Solve x+y=6 and x−y=2.
The first line has the points (6,0), (0,6) and (3,3). The second line has the points (2,0), (0,−2) and (4,2). We draw both lines on one graph.
The lines cross at the point (4,2). So x=4 and y=2.
Check. In the first equation, 4+2=6. In the second, 4−2=2. Both are true.
Make the two slopes equal. The lines turn parallel and the crossing point is gone. Make the two starting values equal as well, and the two lines become one.
Three cases
Two lines in a plane can be in one of three positions.
Three small graphs. In the first, two lines cross at one point. In the second, two lines are parallel. In the third, two lines lie on top of each other and are the same line.
The lines cross at one point. The pair has one solution. We say that the pair is consistent.
The lines are parallel. They never meet, so the pair has no solution. We say that it is inconsistent.
The lines are the same line. Every point on the line is a solution, so the pair has infinitely many solutions. We say that it is dependent.
Can we tell without drawing?
Yes. Write the pair as
a1x+b1y+c1=0a2x+b2y+c2=0
Compare the ratios a2a1, b2b1 and c2c1.
If
Then the pair has
The lines
a2a1=b2b1
one solution
cross
a2a1=b2b1=c2c1
no solution
are parallel
a2a1=b2b1=c2c1
infinitely many solutions
are the same line
Examples.
x+2y−4=0 and 2x+4y−8=0. The ratios are 21, 42 and −8−4. All three are 21. So the lines are the same, and there are infinitely many solutions.
x+2y−4=0 and 2x+4y−12=0. The first two ratios are 21. The third is −12−4=31. So the lines are parallel, and there is no solution.
Practise with new numbers
Try it in Python
This program tests three pairs of equations with the ratios.
Remember these
A solution of a pair is a point on both lines.
One crossing point: one solution. Parallel lines: no solution. The same line: infinitely many solutions.
The ratios a2a1, b2b1, c2c1 tell the case without drawing.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Why does a pair whose lines are parallel have no solution?
How many solutions does the pair x+y=5 and 2x+2y=10 have?
Picture the pair x=2 and y=3. Where do the lines cross?
Do the lines x+3y=6 and 2x+6y=15 meet?
Enroll free in Pairs of Linear Equations
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.