• Practice
  • About 20 min
  • 5 practice questions

Linear equations in three variables and the GCD and LCM of polynomials

Solve a system of three linear equations in x, y and z by elimination, tell when it has no solution or infinitely many, and find the GCD of polynomials by long division and the LCM by factorisation, using f(x) × g(x) = LCM × GCD.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Solve three linear equations in three variables by eliminating one variable at a time.
  • Recognise from 0 = 1 or 0 = 0 that a system has no solution or infinitely many solutions.
  • Find the GCD of two polynomials by repeated division, the LCM by factorisation, and use f(x) × g(x) = LCM × GCD.

Chapter 3 of the Tamil Nadu textbook is the longest in the book: it runs from equations in three unknowns to matrices. This lesson covers its first two sections. Three unknowns need three equations; a GPS receiver, for example, fixes a position from several equations at once. Then the Euclid-style division you used for numbers in Chapter 2 is applied to polynomials.

Three equations in three variables

A linear equation in x, y, z has the form ax + by + cz + d = 0, with at least one of a, b, c non-zero. In two variables such an equation is a straight line; in three variables it is a plane. A system of three such equations may have exactly one solution (the three planes meet in one point), infinitely many solutions, or no solution.

Solving three linear equations by elimination

  1. Pick a variable to eliminate Choose the one easiest to cancel, say z.
  2. Eliminate it from one pair Add or subtract equations (after multiplying if needed).
  3. Eliminate the same variable from another pair Now there are two equations in two variables.
  4. Solve the two-variable system Use any method from earlier classes.
  5. Substitute back Find the third variable from one original equation, then check all three.

Worked example 1: a unique solution

Solve x + 2y + z = 8 …(1), 2x − y + z = 3 …(2), x + y − z = 0 …(3). Working: eliminate z. (1) + (3): 2x + 3y = 8 …(4). (2) + (3): 3x = 3, so x = 1. Put x = 1 in (4): 2 + 3y = 8, y = 2. From (3): z = x + y = 3. x = 1, y = 2, z = 3. Check (1): 1 + 4 + 3 = 8; (2): 2 − 2 + 3 = 3.

Worked example 2: a word problem (made-up prices)

One pen, one pencil and one eraser cost ₹22 together. Two pens, three pencils and one eraser cost ₹45. One pen, two pencils and three erasers cost ₹32. Find each price. Working: let the prices be p, q, r. Then p + q + r = 22 …(1), 2p + 3q + r = 45 …(2), p + 2q + 3r = 32 …(3). (2) − (1): p + 2q = 23 …(4). 3 × (1) − (3): 2p + q = 34 …(5). 2 × (4) − (5): 3q = 12, so q = 4. Then p = 23 − 8 = 15 and r = 22 − 15 − 4 = 3. Pen ₹15, pencil ₹4, eraser ₹3. Check (3): 15 + 8 + 9 = 32.

No solution or infinitely many

  • If elimination produces a false statement such as 0 = 1, the system has no solution. Example: x + y + z = 2 and 2x + 2y + 2z = 5. Doubling the first gives 2x + 2y + 2z = 4, and subtracting gives 0 = 1.
  • If it produces an identity such as 0 = 0 (and no false statement), the system has infinitely many solutions. Example: x + y + z = 3, 2x + 2y + 2z = 6 and x − y + z = 1. The second is just twice the first, so subtracting gives 0 = 0 and only two independent equations remain.

GCD of polynomials by division

The GCD (or HCF) of two polynomials f(x) and g(x) is found exactly as for numbers. Divide f(x) by g(x) to get f(x) = g(x)q(x) + r(x), where the degree of r(x) is less than that of g(x). If r(x) ≠ 0, divide g(x) by r(x), and keep going until the remainder is zero; the last divisor is the GCD. If the two polynomials have the same degree, take the one with the larger leading coefficient as the dividend. A constant factor of a remainder may be removed before the next division, since it does not affect the GCD.

Worked example 3: GCD by division

Find the GCD of f(x) = x³ + 2x² − x − 2 and g(x) = x³ + x² − 4x − 4. Working: both have degree 3 and leading coefficient 1, so compare the x² coefficients: f(x) has 2, so f(x) is the dividend. f(x) − g(x) = (2x² − x²) + (−x + 4x) + (−2 + 4) = x² + 3x + 2, so f(x) = g(x) × 1 + (x² + 3x + 2). Now divide g(x) by x² + 3x + 2: (x² + 3x + 2)(x − 2) = x³ + 3x² + 2x − 2x² − 6x − 4 = x³ + x² − 4x − 4, remainder 0. GCD = x² + 3x + 2 = (x + 1)(x + 2).

LCM of polynomials by factorisation

The LCM of two or more expressions is the expression of lowest degree that each of them divides exactly. Factorise each expression, take every factor with its highest power, and multiply by the LCM of the numerical coefficients.

  • LCM(6x²y³, 9x⁴y): LCM(6, 9) = 18, highest powers x⁴ and y³, so the LCM is 18x⁴y³.
  • LCM(x² − 9, x² + x − 6): x² − 9 = (x − 3)(x + 3) and x² + x − 6 = (x + 3)(x − 2). LCM = (x + 3)(x − 3)(x − 2); the GCD is x + 3.

For any two polynomials, f(x) × g(x) = LCM[f(x), g(x)] × GCD[f(x), g(x)].

— LCM and GCD

Worked example 4: finding the LCM from the GCD

p(x) = x² − 5x + 6 and q(x) = x² − x − 6 have GCD x − 3. Find their LCM. Working: LCM = p(x)q(x) ÷ GCD = (x − 2)(x − 3) × (x − 3)(x + 2) ÷ (x − 3) = (x − 2)(x − 3)(x + 2). Check: it contains each factor of p and of q, and LCM × GCD = (x − 2)(x − 3)²(x + 2) = p(x) × q(x).

Key takeaways: eliminate the same variable from two different pairs of equations to reduce three unknowns to two. A false result such as 0 = 1 means no solution; an identity 0 = 0 means infinitely many. The GCD of polynomials comes from repeated division until the remainder is zero; the LCM takes every factor with its highest power; and f × g = LCM × GCD.

Check your understanding

  1. 1. Solve x + y + z = 9, y + z = 7, z = 4.

    1. x = 2, y = 3, z = 4
    2. x = 3, y = 2, z = 4
    3. x = 2, y = 4, z = 3
    4. x = 4, y = 3, z = 2
    Show answer

    Answer: A. Work upwards: z = 4. Then y + 4 = 7 gives y = 3. Then x + 3 + 4 = 9 gives x = 2.

  2. 2. While solving three linear equations by elimination you reach the statement 0 = 5. What does this tell you?

    1. The system has a unique solution
    2. The system has infinitely many solutions
    3. The system has no solution
    4. The system has exactly two solutions
    Show answer

    Answer: C. 0 = 5 is false whatever x, y and z are, so no values satisfy all the equations: the system has no solution. An identity such as 0 = 0 would instead point to infinitely many solutions.

  3. 3. What is the GCD of x² − 4 and x² + 5x + 6?

    1. x − 2
    2. x + 2
    3. x + 3
    4. (x + 2)(x + 3)
    Show answer

    Answer: B. x² − 4 = (x − 2)(x + 2) and x² + 5x + 6 = (x + 2)(x + 3). The only common factor is x + 2.

  4. 4. What is the LCM of 4x³y² and 6x²y⁵?

    1. 24x⁵y⁷
    2. 2x²y²
    3. 12x²y²
    4. 12x³y⁵
    Show answer

    Answer: D. LCM of the coefficients 4 and 6 is 12. Take the highest powers of the variables: x³ and y⁵. So the LCM is 12x³y⁵. (2x²y² is the GCD.)

  5. 5. p(x) = x² − 1 and q(x) = x² − 3x + 2 have GCD x − 1. What is their LCM?

    1. (x − 1)(x + 1)
    2. (x − 1)(x + 1)(x − 2)
    3. (x − 1)²(x + 1)(x − 2)
    4. (x + 1)(x − 2)
    Show answer

    Answer: B. LCM = p(x)q(x) ÷ GCD = (x − 1)(x + 1)(x − 1)(x − 2) ÷ (x − 1) = (x − 1)(x + 1)(x − 2). The product without dividing, (x − 1)²(x + 1)(x − 2), is p × q, not the LCM.

Privacy · Terms · Refunds · Delivery