Linear equations in two variables
You already know how to solve — one letter, one number waiting to be found. But real situations rarely hand you just one unknown. "The cost of a notebook is twice the cost of a pen" ties two unknown prices together in a single sentence, and no amount of algebra pins either price down exactly — only their relationship. That relationship, written as , is a linear equation in two variables: an equation of degree one, connecting two letters instead of one. This article builds the general form , shows how to force any messy-looking equation into that shape, and explains why a one-variable equation is secretly a special case of this bigger family. Getting this definition rock solid is what makes the next two topics — finding solutions, and graphing them as a straight line — click into place.
A linear equation in two variables has the form with and not both zero, and because one equation cannot fix two unknowns at once, it is satisfied by infinitely many pairs rather than a single answer.
The core idea
What "linear" and "two variables" mean together. An equation is called linear when every variable appears only to the first power — no , no , and no product term like . When two such variables, conventionally and , are joined by addition, subtraction, and multiplication by constants, the result is a linear equation in two variables. The standard way to write any such equation is:
where: and are the two variables, and are their coefficients, is the constant term, and are real numbers with the single restriction that and are not both zero — at least one of them must be non-zero, or there would be no variable left in the equation at all.
Any linear relation can be forced into this shape. An equation like does not look like at first glance, but moving every term to one side gives , so , , . This rearranging step — collect everything on one side, keep the right side zero — is the entire skill this topic is built on.
A one-variable equation is a hidden special case. Something like can be rewritten as : it is a two-variable equation where the coefficient of happens to be zero. This is exactly why the condition is " and not both zero" rather than "both non-zero" — an equation with (or ) is still perfectly valid, as long as the other coefficient survives.
Why one equation cannot fix two unknowns. With a single linear equation and two independent letters, choosing any value for still leaves an equation in alone to solve, and a different choice of gives a different . So instead of one definite answer, the equation is satisfied by an unending list of pairs — the idea that the next topic (finding and listing solutions) develops in full.
The goal is to show that no matter how a linear relationship between two unknowns is originally written — with terms on both sides, in a different order, or missing one variable altogether — it can always be rearranged into the single template , and that this rearrangement is what lets us safely read off the values of , , and without ambiguity.
Step 1. Start from any linear relation joining two unknowns, written however it first appears — for instance an equation with terms on both sides of the equals sign, such as , where are some known real numbers and are the unknowns.
Step 2. Move every term to one side so the other side becomes zero. Subtracting from both sides gives , which still contains exactly the same information as the original equation — nothing has been added, removed, or multiplied in, only shifted across the equals sign.
Step 3. Reorder the terms so the -term comes first, matching the template : . Sign errors are the one place this step can go wrong, so each term must carry the sign it had immediately after Step 2.
Step 4. Compare term by term with to read off the coefficients: , , . Finally check the condition — since the original equation genuinely involved both and , at least one of and is non-zero, so and are not both zero, confirming this is a valid linear equation in two variables.
Worked example
Problem. The cost of a notebook is twice the cost of a pen. Write this as a linear equation in two variables in standard form, identify , , , and check whether the price pair notebook ₹20, pen ₹10 fits the equation.
Step 1. Choose letters for the two unknown prices. Let the cost of a notebook be and the cost of a pen be .
Step 2. Translate the sentence into an equation: "notebook cost is twice pen cost" becomes .
Step 3. Rearrange into standard form by moving every term to one side: , i.e. . Comparing with gives , , ; since , the condition on holds.
Step 4. Test the given pair. Substitute into : , which matches the right-hand side, so satisfies the equation — a sensible price pair, since ₹20 is indeed twice ₹10.
Answer: the standard form is with , and (notebook ₹20, pen ₹10) is one of its solutions.
Competitive stretch
Would (notebook ₹15, pen ₹5) also work? Substitute: , which is not , so this pair does not satisfy the equation — ₹15 is not twice ₹5. Only pairs where the notebook price is exactly double the pen price will work, and there are infinitely many such pairs, e.g. , , , all lying on the same relationship.
Common traps
- Calling an equation "linear" just because it looks short: has a squared term and is not linear, regardless of how simple it appears.
- Forgetting that a one-variable equation such as is also a two-variable equation in disguise, — questions sometimes test exactly this connection.
- Misreading the condition on and : it only forbids both being zero at once, so (i.e. ) is still perfectly valid.
- Sloppy sign-flips while moving a term across the equals sign, which silently changes the value of , , or that gets read off.
Ask the tutor: Want to practice converting a few messy equations into standard form, or check whether a particular pair of numbers is a solution — ask the AI tutor to work through more examples with you.
Why does an equation with two unknowns not just have one clean answer like a one-variable equation does?
Because there is only one condition (the equation) trying to constrain two independent letters. Fixing to any value still leaves the equation free to be solved for , and a different choice of gives a different valid . So instead of a single pinned-down answer, you get a whole family of pairs that all satisfy the relationship — which is exactly what the next topic explores by actually listing and graphing them.
Is x + 5 = 0 a one-variable equation or a two-variable equation?
Both, depending on how you look at it. On its own it is a familiar one-variable equation with the single solution . But it can also be written as , which fits the two-variable template with . So a one-variable linear equation is really a special case of the two-variable form, not a different kind of object altogether.
How do I know if an equation like 2x = 3y - 7 counts, since it does not look like ax + by + c = 0 at all?
Rearrange it first. Move every term to one side so the other side is zero: . Now it matches the template directly, with , , . Many equations that look unfamiliar are linear equations in two variables in disguise — the standard form is not a different kind of equation, just a tidy, comparable way of writing the same relationship.