Linear Algebra
1.18 min read

Linear Equations in Two Variables

A linear equation in two variables is the simplest kind of constraint you can put on two quantities: you take each variable, multiply it by a fixed number (its coefficient), add them up, and set the result equal to some target value. For example, 7x1x2=27x_1 - x_2 = -2 says: "take seven times the first quantity, subtract the second, and you get negative two."

The word linear is key — it rules out squares (x12x_1^2), products (x1x2x_1 x_2), reciprocals (1/x11/x_1), and all other nonlinear combinations. Only weighted sums are allowed. This restriction might seem severe, but it's exactly what makes linear equations so tractable and geometrically clean.

The general form is a1x1+a2x2++anxn=ba_1 x_1 + a_2 x_2 + \cdots + a_n x_n = b, where the aia_i are the coefficients and bb is the right-hand side (RHS). At least one coefficient must be nonzero for the equation to be meaningful.

Formal View

Definition 1.1 — Linear Equation
A linear equation in variables x1,x2,,xnx_1, x_2, \ldots, x_n has the form
a1x1+a2x2++anxn=ba_1 x_1 + a_2 x_2 + \cdots + a_n x_n = b
where a1,,an,bRa_1, \ldots, a_n, b \in \mathbb{R} and not all aia_i are zero. The aia_i are called coefficients and bb is the right-hand side.

Terms like x1x2x_1 x_2, x13x_1^3, sin(x1)\sin(x_1), 1/x11/x_1 are all forbidden — they make the equation nonlinear.

Why This Matters

Linear equations appear everywhere physical laws are expressed as constraints between quantities.

  • Kirchhoff's voltage law gives a linear equation relating currents in a circuit
  • Chemical stoichiometry requires balanced equations — linear constraints on molecular counts
  • Economics uses linear budget constraints and supply-demand equations
  • Every pixel in a CT scan image satisfies a linear equation relating X-ray absorption

Quiz

Question 1

Which of the following is a linear equation?

Question 2

The equation 0x1+5x2=30 \cdot x_1 + 5x_2 = 3 is a valid linear equation.

Common Mistakes

  • Confusing "linear" (no powers, products, or functions) with "linear function" in the calculus sense.
  • Thinking a zero coefficient invalidates the equation — 0x1+3x2=50 \cdot x_1 + 3x_2 = 5 is perfectly valid.
  • Forgetting that the RHS bb can be any real number, including zero.