• Practice
  • About 16 min
  • 5 practice questions

The standard form ax + by + c = 0

Write any linear equation in two variables in the form ax + by + c = 0, read off a, b and c correctly, and treat equations such as x = −5 or 3y = 4 as equations in two variables.

If something looks wrong, please tell us.

By the end of this lesson you can

  • State the definition of a linear equation in two variables in the form ax + by + c = 0.
  • Rearrange equations into this form and identify a, b and c, including signs.
  • Write equations with only one visible variable as equations in two variables.

Equations come in many shapes: x + y = 150, b = w + 50, F = (9/5)C + 32. To compare them and work with them in the same way, mathematicians agree on one standard way of writing them. The PSEB textbook (prepared by NCERT) uses that form to give the exact definition of a linear equation in two variables.

The definition

Any equation that can be put in the form ax + by + c = 0, where a, b and c are real numbers and a and b are not both zero, is called a linear equation in two variables.

— Definition

Here a is the coefficient of x, b is the coefficient of y and c is the constant term. To read them correctly, first bring every term to the left side so that the right side is 0. Then read each number together with the sign in front of it.

Why a and b cannot both be zero

If a = 0 and b = 0, the equation becomes 0·x + 0·y + c = 0, that is c = 0. The variables have disappeared. For example, 0·x + 0·y + 5 = 0 says 5 = 0, which is simply false; it says nothing about x or y. So at least one of a and b must be non-zero. It is fine for one of them to be zero, as you will see below.

Worked example 1: rearranging into the form

Reading a, b and c
Given equationIn the form ax + by + c = 0abc
4x − 5y = 2.64x − 5y − 2.6 = 04−5−2.6
x + 3 = √2 yx − √2 y + 3 = 01−√23
7 = 2x − 3y2x − 3y − 7 = 02−3−7
y = 6x6x − y + 0 = 06−10
x/2 + y/3 = 1(1/2)x + (1/3)y − 1 = 01/21/3−1

Working for the second row: start with x + 3 = √2 y. Subtract √2 y from both sides: x − √2 y + 3 = 0. So a = 1 (x means 1·x), b = −√2 and c = 3. Working for the third row: 7 = 2x − 3y. Subtract 7 from both sides: 0 = 2x − 3y − 7, which is the same as 2x − 3y − 7 = 0.

The form is not unique

Multiplying both sides of an equation by a non-zero number does not change its solutions, so the same equation can be written in many ways. 2x − 3y − 7 = 0 can also be written −2x + 3y + 7 = 0 (multiply by −1), giving a = −2, b = 3, c = 7. And (1/2)x + (1/3)y − 1 = 0 becomes 3x + 2y − 6 = 0 after multiplying by 6, which many students find easier to work with. Each version is correct; just keep a, b and c from the same version.

Equations with only one visible variable

An equation such as x = 4 seems to have one variable. But it can be written with a 0 coefficient for y: 1·x + 0·y − 4 = 0. Now a = 1, b = 0, c = −4, and a and b are not both zero, so it fits the definition. In the same way any equation of the form ax + c = 0 or by + c = 0 is also a linear equation in two variables.

Worked example 2: writing as equations in two variables

EquationAs an equation in two variablesabc
x = 41·x + 0·y − 4 = 010−4
y = −30·x + 1·y + 3 = 0013
6 − 2x = 0−2x + 0·y + 6 = 0−206
4y = 90·x + 4y − 9 = 004−9

Kinds of equations ax + by + c = 0

  • a ≠ 0 and b ≠ 0 Both variables appear.
    • Example: 2x + 3y − 12 = 0
  • a = 0, b ≠ 0 Only y appears; y has one fixed value.
    • Example: 0·x + 4y − 9 = 0
  • a ≠ 0, b = 0 Only x appears; x has one fixed value.
    • Example: 1·x + 0·y − 4 = 0
  • a = 0 and b = 0 Not allowed: no variable is left.
    • 0·x + 0·y + 5 = 0 just says 5 = 0
The first three are linear equations in two variables; the last is not.

Worked example 3: from a word statement to the form

'The sum of two numbers is 3 more than their difference', with the larger number x and the smaller y. Working: x + y = (x − y) + 3. Subtract x from both sides: y = −y + 3. Add y: 2y = 3. In standard form: 0·x + 2y − 3 = 0, so a = 0, b = 2, c = −3. Interesting: the statement fixes the smaller number (y = 3/2) but leaves x free.

Common mistakes

  • Reading c from the right side. In 4x − 5y = 2.6, c is −2.6, not 2.6, because the 2.6 must first be moved to the left.
  • Forgetting a hidden coefficient: in x − y = 10, a = 1 and b = −1.
  • Mixing versions: if you multiply by −1, change the signs of a, b and c together.

Key takeaways: a linear equation in two variables is one that can be written as ax + by + c = 0 with a and b not both zero; move all terms to the left before reading a, b and c with their signs; the form can be multiplied through by any non-zero number; and equations like x = 4 or 4y = 9 are linear equations in two variables with one coefficient equal to 0.

Check your understanding

  1. 1. Write 3x = 8 − 2y in the form ax + by + c = 0. What are a, b and c?

    1. a = 3, b = −2, c = 8
    2. a = 3, b = 2, c = 8
    3. a = 3, b = 2, c = −8
    4. a = 3, b = −2, c = −8
    Show answer

    Answer: C. Add 2y and subtract 8 on both sides: 3x + 2y − 8 = 0. So a = 3, b = 2 and c = −8.

  2. 2. For the equation y = −5 written as an equation in two variables, which is correct?

    1. 0·x + 1·y + 5 = 0
    2. 1·x + 0·y + 5 = 0
    3. 0·x + 1·y − 5 = 0
    4. 0·x + 0·y + 5 = 0
    Show answer

    Answer: A. Add 5 to both sides: y + 5 = 0. There is no x, so its coefficient is 0: 0·x + 1·y + 5 = 0.

  3. 3. Why is 0·x + 0·y + 7 = 0 not a linear equation in two variables?

    1. Because a and b are both zero, so no variable remains
    2. Because c is not zero
    3. Because 7 is an odd number
    4. Because the right side is zero
    Show answer

    Answer: A. The definition needs a and b not both zero. Here both are 0, so the equation reduces to 7 = 0, which has no variable at all.

  4. 4. In the form ax + by + c = 0, the equation 2x = 5y has

    1. a = 2, b = 5, c = 0
    2. a = 5, b = −2, c = 0
    3. a = 2, b = −5, c = 0
    4. a = 2, b = −5, c = 5
    Show answer

    Answer: C. Subtract 5y from both sides: 2x − 5y + 0 = 0. So a = 2, b = −5 and c = 0. (The version −2x + 5y = 0 is also correct, but it is not among the options.)

  5. 5. Which equation has the same solutions as x/3 + y/4 = 1?

    1. 3x + 4y − 12 = 0
    2. 4x + 3y − 12 = 0
    3. 4x + 3y − 1 = 0
    4. x + y − 7 = 0
    Show answer

    Answer: B. Multiply every term by 12: 12 × x/3 = 4x, 12 × y/4 = 3y and 12 × 1 = 12. So 4x + 3y = 12, that is 4x + 3y − 12 = 0. Multiplying by a non-zero number keeps the solutions.

Privacy · Terms · Refunds · Delivery