Linear pairs

Type two equations and see their lines cross, run parallel or lie on top of each other. The ratio test says how many solutions there are, and the substitution and elimination methods are worked step by step with exact fractions.

Keep it one tap away for everyday use.

Bookmark Linear pairs?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Equations
  2. Two lines
  3. Ratio test
  4. Steps
Nothing is uploadedWorks offline once open

Two lines

Level
(1)x + y =
(2)x + y =

The ratio test

Solve it two ways

Substitution

    Elimination

      Try this

      • Drag the crossing point. Both lines slide with it but keep their slopes: only c1 and c2 change.
      • Make a1/a2 equal to b1/b2 (for example x + 2y and 2x + 4y). Now change c2 until the two lines become one.
      • Try the Fractions example and follow elimination: which number did each equation get multiplied by, and why?
      • Class 9: pick an equation and check two rows of the table by putting the numbers back in.

      Check yourself

      Fresh questions every time. Nothing is saved.

      What it does

      A linear equation in x and y, like 2x + 3y = 12, draws a straight line: every point on it is a solution. Two such equations together have:

      • one solution if their lines cross,
      • no solution if the lines are parallel,
      • infinitely many if both equations draw the same line.

      This page draws both lines, finds which case you have with the ratio test, and solves the pair by substitution and by elimination, showing every step with your numbers and exact fractions.

      It follows the Class 10 chapter pair of linear equations in two variables (graphical method, consistency, substitution and elimination), and with the Class 9 level it shows one equation, its line and a table of solutions, as in the Class 9 chapter on linear equations in two variables.

      For quadratic equations, move on to the quadratic explorer; for zeros of polynomials, the polynomial zeros page. Bigger systems with three or more unknowns are easier with the matrix calculator.

      How to use it

      1. Type the numbers for each equation in the form a x + b y = c. Use negative numbers for minus signs, for example b = −1 for x − y.
      2. Or tap an example: Cross, Parallel, Same line or Fractions.
      3. When the lines cross inside the window, drag the blue crossing point. Both lines slide so that they pass through the new point; their slopes stay the same, so only c1 and c2 change.
      4. Read the ratio test, then follow either method. Both end with the same answer.
      5. Switch the Level to Class 9 to work with a single equation.

      The ratio test

      Write the equations as a1x + b1y = c1 and a2x + b2y = c2.

      • If a1/a2 ≠ b1/b2, the lines have different slopes, so they cross once.
      • If a1/a2 = b1/b2 ≠ c1/c2, they have the same slope but are different lines: parallel.
      • If a1/a2 = b1/b2 = c1/c2, one equation is just a multiple of the other: the same line.

      (Textbooks often write a1x + b1y + c1 = 0. That flips the sign of every c, which does not change c1/c2.)

      A worked example

      The page starts with 2x + 3y = 12 and x − y = 1.

      • Ratio test: 2/1 ≠ 3/(−1), so there is exactly one solution.
      • Substitution: from (1), y = (12 − 2x)/3. Put it into (2) and multiply by 3: 5x = 15, so x = 3, then y = 2.
      • Elimination: multiply (1) by 1 and (2) by 2, so both have 2x. Subtract: 5y = 10, so y = 2, then x = 3.
      • On the graph the lines cross at (3, 2).

      Try Fractions (3x − 5y = −4 and 9x + 2y = 7): the answer is x = 9/17, y = 19/17, which is hard to read off a graph but easy by elimination.

      Check yourself

      Four fresh questions each time: solve a pair, find k for parallel lines, read a point on a line and a sum-and-difference word problem. Type the answer, press Check, and open the worked answer if you need it. Nothing is saved.

      FAQ

      Why does the graph only go from −10 to 10? So the grid stays readable on a phone. If the lines cross outside it, the page still gives the crossing point.

      Is this from the NCERT book? It covers the same topics with fibub’s own examples. fibub is not part of NCERT.

      Where the numbers come from

      • Standard school algebra: graphs of linear equations, the ratio test a1/a2, b1/b2, c1/c2, and the substitution and elimination methods. Written for fibub.
      • Solutions checked against numpy.linalg.solve and by putting them back into both equations for 400 random systems; the step texts are checked to end in the same values.

      Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

      Last updated 2026-11-09.

      Change log for Linear pairs

      1. Add #1157 Pair of linear equations Details on GitHub

      Every change to fibub

      Related tools

      Matrix calculator #T371 Determinant, inverse, rank and row reduction with every step in exact fractions, solving A x = B, products and powers, eigenvalues and eigenvectors (complex ones too), and LU, QR, Cholesky and SVD decompositions. Checked against numpy and sympy. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions. Polynomial zeros #L73 Slide the coefficients of a linear, quadratic or cubic polynomial and see its zeros where the graph meets the x axis. Drag a zero and the polynomial rebuilds itself. The sum and product of zeros are checked against the coefficients live. Section formula #L77 Drag two points on a grid and see the distance formula, the point that divides the segment in any ratio m : n, and the midpoint, worked with your numbers. Add a third point for the centroid and the area of the triangle. Arithmetic progression staircase #L79 Slide the first term a and the common difference d and watch the terms grow as a staircase of bars. The nth term and the sum of n terms are worked with your numbers, and Gauss's pairing trick is drawn as the staircase plus its upside-down copy. Number trick decoder #L134 Run a think-of-a-number trick with any number and with the letter n side by side, see each step as bags and counters, and find out why the answer is always the same, or how a mind reader gets your number back. Build your own trick too. Balance equations #L135 Put x boxes and 1-weights on a two-pan balance, then solve the equation one move at a time: take the same from both pans or share both into equal groups until x is alone. Slide a guess to see the beam tip. Coordinate treasure hunt #L153 Four quick games on the coordinate plane: tap a point from its coordinates, read the coordinates of a point, hunt buried treasure using distance clues, and sink three hidden ships. Learn the quadrants, the signs of x and y, and the distance formula as you play. Linear function explorer #L154 Slide m and c, or drag the line itself, and see y = mx + c drawn with its slope triangle (rise over run), the point where it cuts the y-axis and the zero where it meets the x-axis, all worked with your numbers. A Class 11 level adds the angle of the line and its other forms. Clock hand angles #L166 Drag the minute hand round a clock (the hour hand follows) or type a time, and see the angle between the hands worked out step by step, how far each hand has turned, and every time in 12 hours when the hands make the angle you choose. Line solutions #L170 Set a, b and c in ax + by = c and watch its line move. Whole-number solutions show as dots; tap any grid point or type one to test it, with the sum worked out. A table of solutions, where the line crosses the axes, and lines parallel to the axes. Ends with fresh practice questions. Linear word problems #L192 Pick a story (ages, tickets, a boat in a stream, a rectangle or banknotes) with fresh numbers, then reveal step by step how to name the unknowns, write the two equations, solve them by elimination or substitution and check the answer, with both lines drawn crossing at it.

      Also related: Inequality shader, Line forms converter, LPP graphical solver