Skip to content

Language

Sign in

Learn › Class 9 › Mathematics › Two Variables, One Line

Linear equations in two variables

You will learn to

  • Write a situation as ax + by + c = 0
  • Find solutions of a linear equation in two variables
  • Draw its graph and recognise lines parallel to the axes

Helpful to know first: Coordinates; Linear polynomials.

An equation like 2x + 3y = 12 has two unknowns. It can be written as ax + by + c = 0, where a and b are not both zero.

A solution is a pair (x, y) that makes the equation true. For 2x + 3y = 12, both (0, 4) and (6, 0) work. There are infinitely many solutions.

The graph

Every solution is a point, and all of them lie on one straight line. Two solutions are enough to draw it; a third is a useful check.

x = 3 is the vertical line through (3, 0). y = −2 is the horizontal line through (0, −2). The x-axis is y = 0 and the y-axis is x = 0.

Real situations give such equations. If a pen costs ₹10 and a notebook ₹25, spending ₹100 gives 10x + 25y = 100.

Common mix-ups

  • Not quite: A linear equation in two variables has only one solution.

    Instead: It has infinitely many solutions, one for every point on its line.

  • Not quite: x = 4 is the horizontal line through 4.

    Instead: x = 4 keeps x fixed while y changes, so it is a vertical line.

Reviewed by EduFlint team on 1 Dec 2026 · version 1

Written by us for this site. Independent; not affiliated with NCERT or CBSE.

Report a mistake

Looking for another topic?