• Foundation
  • About 14 min
  • 5 practice questions

Linear equations in two variables and the standard form

Turn an everyday situation with two unknowns into a linear equation, write any linear equation in the standard form ax + by + c = 0, and read off a, b and c.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Write a linear equation in two variables for a situation with two unknown quantities.
  • Rewrite a linear equation in the standard form ax + by + c = 0 and identify a, b and c.
  • Recognise special cases such as x = 4 or 2y = 9 as linear equations in two variables.

At a school canteen a samosa costs ₹15 and a kachori costs ₹12. Ravi buys some of each and pays ₹90 in all. We do not know how many of each he bought, so we use two letters: let x be the number of samosas and y the number of kachoris. The samosas cost ₹15x, the kachoris cost ₹12y, and together they cost ₹90:

15x + 12y = 90

Both sides stand for the same quantity, the total cost in rupees. An equation like this, with two unknowns each appearing only to the first power, is a linear equation in two variables.

The standard form

A linear equation in two variables is one that can be written as ax + by + c = 0, where a, b and c are real numbers and a and b are not both zero. Here a is the coefficient of x, b is the coefficient of y and c is the constant term.

— Standard form

Some points to notice:

  • a, b and c may be fractions or decimals. We usually multiply through by a suitable number to get whole-number coefficients. For example, x/3 + y/4 − 1 = 0 becomes 4x + 3y − 12 = 0 after multiplying by 12.
  • An equation such as 2x − 7 = 0 is still a linear equation in two variables: it is 2x + 0×y − 7 = 0, with b = 0. Likewise 2y = 9 has a = 0.
  • The same equation has many standard forms. Multiplying every term by −1 turns 5x + 2y − 3 = 0 into −5x − 2y + 3 = 0, which has exactly the same solutions.
  • Equations such as x² + y = 5 or xy = 6 are NOT linear: a variable is squared, or two variables are multiplied.

From a situation to the standard form

  1. Name the unknowns Say exactly what x and y stand for, with units
  2. Write each quantity For example, the cost of x samosas is 15x rupees
  3. Form the equation Put equal quantities on the two sides
  4. Move all terms to one side Get ax + by + c = 0
  5. Tidy up Clear fractions or decimals; read off a, b, c

Worked example 1: writing in standard form

Each equation moved to the form ax + by + c = 0
EquationStandard formabc
3x = 7 − 2y3x + 2y − 7 = 032−7
y = 4x − 54x − y − 5 = 04−1−5
x/3 + y/4 = 14x + 3y − 12 = 043−12
2y = 90×x + 2y − 9 = 002−9
x = −6x + 0×y + 6 = 0106

Working for the third row: multiply x/3 + y/4 = 1 by 12 (the LCM of 3 and 4) to get 4x + 3y = 12, then subtract 12 from both sides: 4x + 3y − 12 = 0. For the second row: subtract y from both sides of y = 4x − 5 to get 0 = 4x − y − 5, that is, 4x − y − 5 = 0.

Worked example 2: getting the relation the right way round

'The number of boys in a club is three times the number of girls.' Let b be the number of boys and g the number of girls. Is it b = 3g or g = 3b?

Working: test with numbers. If there are 10 girls there are 30 boys. b = 3g gives 30 = 3 × 10, which is true; g = 3b would give 10 = 90, which is false. So b = 3g, or in standard form b − 3g = 0. Testing with a small example is a quick way to avoid reversing a relation.

Worked example 3: a price relation

A notebook costs ₹8 more than twice the price of a pen. Write an equation using ₹n for the notebook and ₹p for the pen.

Working: twice the pen's price is 2p, and ₹8 more is 2p + 8. So n = 2p + 8. Moving everything to one side: 2p − n + 8 = 0 (a = 2 for p, b = −1 for n, c = 8). Check with p = 10: the notebook costs 2 × 10 + 8 = ₹28, and 2(10) − 28 + 8 = 0.

Key takeaways: a linear equation in two variables can always be written as ax + by + c = 0 with a and b not both zero. Clear fractions by multiplying through, remember that one of a or b may be 0, and test a word relation with a small number before trusting it.

Check your understanding

  1. 1. Which of these is NOT a linear equation in two variables?

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

    Answer: C. In x² + y = 5 the variable x is squared, so it is not linear. x = −4 is linear with b = 0, and the equation with fractions becomes 5y + 2x − 10 = 0 after multiplying by 10.

  2. 2. Write 5y = 2x + 3 in the form ax + by + c = 0 with a positive value of a. What are a, b and c?

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

    Answer: B. Subtract 5y from both sides: 0 = 2x − 5y + 3, so 2x − 5y + 3 = 0. Hence a = 2, b = −5, c = 3.

  3. 3. In a class there are 6 more girls than boys. With g girls and b boys, which equation is correct?

    1. b − g + 6 = 0
    2. g − b + 6 = 0
    3. b + g − 6 = 0
    4. 6b − g = 0
    Show answer

    Answer: A. There are 6 more girls, so g = b + 6. Moving all terms to one side gives b − g + 6 = 0. Check: with 20 boys and 26 girls, 20 − 26 + 6 = 0.

  4. 4. x/2 − y/3 = 1 is written in standard form with whole-number coefficients. Which is correct?

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

    Answer: D. Multiply both sides by 6 (the LCM of 2 and 3): 3x − 2y = 6. Subtract 6: 3x − 2y − 6 = 0.

  5. 5. The equation x = −7 is written as ax + by + c = 0. What are a, b and c?

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

    Answer: C. Add 7 to both sides: x + 7 = 0, which is 1×x + 0×y + 7 = 0. So a = 1, b = 0 and c = 7.

Privacy · Terms · Refunds · Delivery