Graphical method of solution

Two straight lines on the same graph can meet, run parallel, or lie exactly on top of each other — and each of those three pictures is a complete answer to a pair of linear equations in two variables. The graphical method of solution turns algebra into geometry: plot both equations a1x+b1y+c1=0a_1x+b_1y+c_1=0 and a2x+b2y+c2=0a_2x+b_2y+c_2=0 as lines, and read the shared point (or points, or absence of any) straight off the paper. This matters because it builds the intuition behind every algebraic method that follows in the chapter — substitution, elimination, cross-multiplication all just compute, without drawing, what the picture already shows. It also connects to a compact algebraic shortcut, the ratio test on a1/a2a_1/a_2, b1/b2b_1/b_2, c1/c2c_1/c_2, which predicts the type of picture before a single point is plotted. This article expands the core idea with a worked derivation of why the ratio test works, a fully solved example, common exam traps, and a quick-reference cheat sheet.

The core insight

A pair of linear equations in two variables is two straight lines, so its solution set is exactly their intersection — one point (unique solution), no points (parallel, no solution), or every point (coincident, infinite solutions) — and the ratios a1/a2a_1/a_2, b1/b2b_1/b_2, c1/c2c_1/c_2 tell you which case holds without drawing anything.

The core idea

A linear equation ax+by+c=0ax+by+c=0 is satisfied by infinitely many pairs (x,y)(x,y), and plotting all of them traces a straight line. Given two such equations,

a1x+b1y+c1=0,a2x+b2y+c2=0a_1x+b_1y+c_1=0, \qquad a_2x+b_2y+c_2=0

where: a1,b1,c1a_1,b_1,c_1 and a2,b2,c2a_2,b_2,c_2 are the real coefficients of the first and second equation, and x,yx,y are the unknowns — solving the pair graphically means drawing both lines on one set of axes and reading off whatever they share. There are exactly three geometric outcomes, and each corresponds to a distinct relationship between the coefficients:

  • Intersecting lines. The lines cross at exactly one point, giving a unique solution — the coordinates of that crossing. This is the generic case, and it happens whenever the lines are not parallel, i.e. a1a2≠b1b2\dfrac{a_1}{a_2} \neq \dfrac{b_1}{b_2}.
  • Parallel lines. The lines have the same steepness but never meet, so the pair has no solution. This happens when a1a2=b1b2≠c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} \neq \dfrac{c_1}{c_2}.
  • Coincident lines. Both equations describe the same line, so every point on it is a solution — infinitely many solutions. This happens when a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}.

To actually draw a line from ax+by+c=0ax+by+c=0, rewrite it as y=−c−axby=\dfrac{-c-ax}{b} (with b≠0b\neq0), choose two or three convenient values of xx, compute the matching yy-values, plot those points, and join them with a ruler. Two points fix a line; a third is a cheap check against arithmetic slips.

Figure
Three coordinate grids side by side showing two lines crossing at one point labelled unique solution, two parallel lines never meeting labelled no solution, and two lines lying exactly on top of each other labelled infinite solutions
Three pictures, three answers unique solution a1/a2 not equal b1/b2 no solution a1/a2 = b1/b2 not equal c1/c2 infinite solutions a1/a2 = b1/b2 = c1/c2
Derivation AWhy the coefficient ratios predict the picture

Show that comparing the ratios a1/a2a_1/a_2, b1/b2b_1/b_2, and c1/c2c_1/c_2 of two linear equations a1x+b1y+c1=0a_1x+b_1y+c_1=0 and a2x+b2y+c2=0a_2x+b_2y+c_2=0 correctly predicts, without any plotting, whether their graphs intersect at one point, run parallel with no common point, or coincide as the same line with infinitely many common points.

Step 1. Rewrite each equation in slope-intercept form, y=mx+ky=mx+k, to expose what actually controls a line's shape on the graph. From a1x+b1y+c1=0a_1x+b_1y+c_1=0 with b1≠0b_1\neq0, y=−a1b1x−c1b1y=-\dfrac{a_1}{b_1}x-\dfrac{c_1}{b_1}, so the line has slope m1=−a1b1m_1=-\dfrac{a_1}{b_1} and yy-intercept k1=−c1b1k_1=-\dfrac{c_1}{b_1}. Similarly the second line has slope m2=−a2b2m_2=-\dfrac{a_2}{b_2} and intercept k2=−c2b2k_2=-\dfrac{c_2}{b_2}.

Step 2. Two distinct straight lines meet at exactly one point precisely when their slopes differ, m1≠m2m_1\neq m_2, because two lines with different steepness must cross somewhere and can cross nowhere else. Writing that condition in terms of the coefficients, −a1b1≠−a2b2-\dfrac{a_1}{b_1}\neq-\dfrac{a_2}{b_2}, which rearranges to a1a2≠b1b2\dfrac{a_1}{a_2}\neq\dfrac{b_1}{b_2}. This is exactly the unique-solution condition, and it matches intuition: unequal slopes means the lines are tilted differently, so they must intersect once.

Step 3. If instead m1=m2m_1=m_2, the two lines are parallel (same steepness) and there are two sub-cases depending on whether they also share the same yy-intercept. Equal slopes give a1a2=b1b2\dfrac{a_1}{a_2}=\dfrac{b_1}{b_2}. If additionally k1≠k2k_1\neq k_2 — the lines are shifted vertically from each other — they never touch, giving no solution; translating intercepts into coefficients, k1≠k2k_1\neq k_2 corresponds to c1b1≠c2b2\dfrac{c_1}{b_1}\neq\dfrac{c_2}{b_2}, which combined with equal slopes gives a1a2=b1b2≠c1c2\dfrac{a_1}{a_2}=\dfrac{b_1}{b_2}\neq\dfrac{c_1}{c_2} — the no-solution condition.

Step 4. If m1=m2m_1=m_2 and also k1=k2k_1=k_2, the two lines share both slope and intercept, so every (x,y)(x,y) satisfying one equation satisfies the other — they are the same line, plotted twice. Equal intercepts translate to c1b1=c2b2\dfrac{c_1}{b_1}=\dfrac{c_2}{b_2}, which together with equal slopes gives a1a2=b1b2=c1c2\dfrac{a_1}{a_2}=\dfrac{b_1}{b_2}=\dfrac{c_1}{c_2} — the infinite-solutions condition, confirming all three ratio rules follow directly from comparing slopes and intercepts.

Worked example

Solve x+y=5x+y=5 and 2x−y=42x-y=4 graphically, and use the ratio test to confirm the type of solution before checking the picture.

Step 1. Build a table for x+y=5x+y=5, i.e. y=5−xy=5-x: at x=0, y=5x=0,\ y=5; at x=5, y=0x=5,\ y=0; at x=2, y=3x=2,\ y=3.

Step 2. Build a table for 2x−y=42x-y=4, i.e. y=2x−4y=2x-4: at x=0, y=−4x=0,\ y=-4; at x=2, y=0x=2,\ y=0; at x=3, y=2x=3,\ y=2.

Step 3. Apply the ratio test before plotting. Here a1=1, b1=1a_1=1,\ b_1=1 for the first line and a2=2, b2=−1a_2=2,\ b_2=-1 for the second, so a1a2=12\dfrac{a_1}{a_2}=\dfrac12 and b1b2=−1\dfrac{b_1}{b_2}=-1. Since 12≠−1\dfrac12\neq-1, the lines must intersect at exactly one point — a unique solution is guaranteed before any graph is drawn.

Step 4. Plot both sets of points on the same axes and draw the two lines; they cross at (3,2)(3,2), exactly as the ratio test predicted.

Step 5. Verify by substitution: 3+2=53+2=5 checks against the first equation, and 2(3)−2=42(3)-2=4 checks against the second. Both hold, so the intersection point is confirmed algebraically, not just read off the graph. The unique solution is x=3, y=2x=3,\ y=2.

Competitive stretch

The same reasoning explains why 2x+3y=92x+3y=9 and 4x+6y=184x+6y=18 never even need a graph: here a1a2=24=12\dfrac{a_1}{a_2}=\dfrac{2}{4}=\dfrac12, b1b2=36=12\dfrac{b_1}{b_2}=\dfrac{3}{6}=\dfrac12, and c1c2=918=12\dfrac{c_1}{c_2}=\dfrac{9}{18}=\dfrac12 — all three ratios equal 12\dfrac12, so the ratio test alone confirms coincident lines and infinitely many solutions, matching the fact that the second equation is just the first multiplied by 2.

Common traps

  • Plotting only two points per line — a single arithmetic slip can still look like a valid straight line. Always add a third point as a self-check.
  • Treating parallel lines as "not solved yet." No solution is a complete, correct final answer in itself; there is nothing further to find.
  • Reading the intersection point off an imprecisely drawn graph without checking it. Always substitute the coordinates back into both original equations before finalising an answer.
  • Skipping the ratio test and jumping straight to plotting. Computing a1a2,b1b2,c1c2\dfrac{a_1}{a_2}, \dfrac{b_1}{b_2}, \dfrac{c_1}{c_2} first tells you what kind of picture to expect, saving time and catching setup errors early.

Ask the tutor: if you are unsure how to pick convenient xx-values for your table, or want to check whether your graph's intersection point is exact, ask the AI tutor to walk through your specific pair of equations step by step.

Why do coincident lines give infinitely many solutions instead of just two

Because a coincident pair is really the same equation written twice, in disguised form (one is a scalar multiple of the other). Every single point that lies on that one line automatically satisfies both original equations at once, and a line contains infinitely many points, so the solution set is infinite too — not limited to the couple of points you happened to plot.

Do I always need to draw the graph, or can I just use the ratio test

For CBSE Class 10 exams, if a question explicitly says "solve graphically," you must draw the graph and read the answer from it, since that is what is being tested. But the ratio test is still worth computing first in every case, even when graphing is required, because it tells you in advance what the picture should look like, so you can catch a plotting mistake immediately if your graph disagrees with the prediction.

What if my two lines look almost parallel but not quite when I plot them

Trust the ratio test over your eyes. If a1a2≠b1b2\dfrac{a_1}{a_2}\neq\dfrac{b_1}{b_2}, the lines are genuinely not parallel and do intersect somewhere, even if the crossing point falls far outside your drawn axes or the angle between them looks tiny. Recompute the ratios carefully, and if needed, extend your table to larger or smaller xx-values to bring the actual intersection point onto the graph paper.

Before this

Where this leads