An equation is linear when every term is either a constant or a constant times a single variable raised to the first power — and when no variable is multiplied by another variable, divided by a variable, or hidden inside a function like sin, log, or a square root. If a single term breaks that rule, the whole equation is nonlinear, no matter how tidy the rest looks. The fastest way to decide is to rewrite the equation so one side equals zero, inspect every term, then confirm by checking that doubling each variable doubles the total change.
Take y = 3x + 4. Every term is a constant or a first-power variable, so it's linear. Now take y = 3xy + 4. It looks nearly identical, but the "xy" term multiplies two variables together — and that alone makes it nonlinear. That gap between "looks simple" and "is linear" is where most mistakes happen, so this guide walks through exactly how to test for it.
The Two-Word Test: Constant or First-Power Variable
Linear equations are built from exactly two kinds of pieces: constants (plain numbers like 5, −2, or ½) and terms where one variable sits alone at the first power (3x, −7y, x). Nothing else is allowed. Rewrite the equation with everything on the left and zero on the right, then read each term as if it were a separate item on a receipt.
Start with the standard form most textbooks use. Any linear equation in two variables can be rearranged into Ax + By = C, where A and B aren't both zero and C is a constant. You'll see this in Algebra I curricula and in nearly every standardized test guide, including the College Board's SAT math reference material. If your equation slips into that shape after basic algebra, it's linear.
Watch for disguised forms. 2(x + 3) = y − 1 is linear once you distribute and rearrange to 2x − y = −7. The parentheses trick people because it feels structurally complicated, but after expansion, every term is clean. The test isn't "does it look simple" — it's "after cleanup, is every term a constant or a single first-power variable?"
One trap worth naming: constants hide variables too. The equation 4 = 7 has no variables at all. It's technically a statement, not a linear equation in the algebraic sense — but in the Ax + By = C framework, you could write it as 0x + 0y = 3, which fails the linear definition because A and B would both be zero. The Khan Academy algebra sequence calls this a "degenerate case," and it's worth flagging rather than glossing over.
Here's the plain checklist most tutors run through silently. If a term passes all three, it's linear-safe:
It's a number alone (5, −3.2, ½). It's a number times one variable (7x, −0.5y). It's a variable alone (x, y).
If a term is anything else, the equation fails.
Why a Single Nonlinear Term Ruins the Whole Equation
Linearity is an all-or-nothing property. One bad term is enough to disqualify the entire equation — there's no partial credit. That's because linearity is defined over the whole expression as a mathematical object, and a single nonlinear piece destroys the structure the definition depends on. The same rule shows up in linear algebra, where a transformation fails to be linear if it breaks the additive property for even one input.
Consider y = 2x + x². The first term is perfectly linear. The second is a square. Because the square exists, the whole thing is a parabola, and the equation is nonlinear. If you plot it, the graph curves. If you double x, y doesn't simply double — it quadruples the x² contribution. Both signals point the same way.
The same logic applies to trig functions. The equation y = sin(x) has one term, but sin(x) is a nonlinear function of x because sin(2x) ≠ 2·sin(x) — a fact you can verify with a calculator at x = 45° and x = 90°. A single sine, cosine, log, exponential, or absolute value pushes the whole equation out of the linear category, regardless of what surrounds it.
There's a practical consequence worth knowing. Linear equations always produce straight-line graphs in two variables and exactly one solution (or none, or infinitely many) rather than the two solutions a parabola produces for many quadratic setups. MIT OpenCourseWare's 18.06 linear algebra lecture notes make this connection explicit: straight-line geometry and the Ax + By = C form are equivalent statements about the same object. If the graph curves, the algebra wasn't linear.
The xy Product Test: Multiplying Variables Is the Most Misread Failure
The most commonly missed nonlinear term isn't a square — it's a product of two variables. y = 4xy − 2 looks harmless until you notice that "xy" means x times y. Two variables multiplied together is a degree-2 term, and it kills linearity. This is the failure mode students overlook because it doesn't look like an exponent.
The reason is built into the definition. Ax + By = C treats each variable separately — x's interest is independent of y's. When you write xy, the two variables are entangled. Double x and y together, and the xy term quadruples. That's not linear behavior, no matter how you rewrite the equation — xy cannot be algebraically separated into a sum of single-variable terms.
A worked example makes it concrete. Take y = 4xy − 2 and test x = 1, y = 2. Left side: 2. Right side: 4(1)(2) − 2 = 6. Those don't match. The equation may have solutions for specific (x, y) pairs, but that doesn't make it a linear equation. Linearity is about the form of the expression, not about whether solutions exist.
You should also reject terms where a variable appears in a denominator with another variable: x/y is nonlinear, because it's equivalent to x·y⁻¹ and the exponent on y is −1, not 1. Terms like 3/x are nonlinear for the same reason. Even x divided by a constant (x/2) is fine, but x/y is not — the line is drawn at "is there a variable beneath the fraction bar."
Four Failure Zones: Exponents, Functions, Products, and Denominator Variables
Most nonlinear equations fail because of a term in exactly one of four categories. Understanding the categories by name makes the inspection step faster than trying to spot violations from scratch. After enough practice with this grid, deciding whether an equation is linear takes less than ten seconds.
Comparison: What Makes a Term Survive or Fail
| Term example | Category | Linear? | Reason |
|---|---|---|---|
| 5 | Constant | Yes | No variable present |
| 3x | First-power variable | Yes | Single variable, exponent 1 |
| x² | Exponent | No | Exponent is 2, not 1 |
| x³ − 1 | Exponent | No | Cubic term present |
| sin(x) | Function | No | Trig of a variable |
| e^x | Function | No | Exponential in x |
| log(x) | Function | No | Logarithm of a variable |
| √x | Function | No | Square root, exponent ½ |
| x | Function | ||
| xy | Product | No | Two variables multiplied |
| x/y | Denominator variable | No | Variable in denominator |
| 3/x | Denominator variable | No | Reciprocal of x |
| x·y² | Product | No | Product plus exponent |
Run each term through the table's column headers — that's the inspection pass. If any term lands in the "No" column, the equation is nonlinear. If all terms land in "Yes," the equation is linear. The table also handles mixed cases: x·y² fails twice (Product and Exponent), but the equation still fails either way.
A quick note on √x. It's often confused with x^0.5, which is the same thing written differently. Either form is nonlinear because the exponent is ½, not 1. If the variable appears under a radical, it fails. If the variable appears with no explicit exponent, its exponent is 1 — that's the only case that passes.
Worked Examples: Five Equations Tested End to End
Practice on real equations, in the same order the tests would run. Each example picks a different failure or a clean pass, so the outcomes read like a verdict list rather than a solved problem set. All five come from common Algebra I and Algebra II exercises; the fifth is a frequently used standardized-test trap.
Example 1: 5x + 2y = 10
Pass. Both x and y appear alone with coefficients 5 and 2; constant is 10. This is already in Ax + By = C form, so A = 5, B = 2, C = 10. Linear.
Example 2: y = 3x² − 4x + 1
Fail. The −4x term is fine, and 1 is fine, but 3x² is a quadratic term. Any polynomial equation with a variable raised to any power other than 1 (or 0) is nonlinear. This is a parabola, not a line.
Example 3: 2x + y = 4/x
Fail. The right side is 4 times x⁻¹. Even after multiplying all terms by x, you get 2x² + xy = 4, which contains both a square and a product. Linear-looking coefficients don't rescue a nonlinear term.
Example 4: 7x − 2(x − 3) = y + 1
Pass. Distribute the left: 7x − 2x + 6 = y + 1. Simplify to 5x + 5 = y + 1, then rearrange to 5x − y = −4. Every term is now a constant or first-power variable. Linear.
Example 5: 3x·y + 2 = 10
Fail. The 3x·y multiplies two variables. Even after you simplify to 3xy = 8, the xy term is a variable product. This is the xy-product failure, and it's the equation from Section 2 in numeric form. Nonlinear.
The Additivity and Scaling Check, Verified by Counterexample
The formal definition of linearity rests on two properties: additivity (f(x + y) = f(x) + f(y)) and homogeneity (f(kx) = k·f(x) for any real constant k). If both hold for every input, the equation is linear. If either fails for even one set of inputs, it's nonlinear. The counterexample is the fastest way to check without rewriting the whole expression.
Test f(x) = 4x + 3 against additivity. f(1 + 2) = f(3) = 15. f(1) + f(2) = 7 + 11 = 18. Those don't match — 15 ≠ 18. Does that mean the equation is nonlinear? No. It's the "linear function" vs. "linear equation" terminology problem, and it's the single most confusing side-issue in the topic.
A linear equation is any equation of the form Ax + By = C (or equivalently y = mx + b). A linear map, in linear algebra, satisfies the two properties above — and it has no constant term. The function f(x) = 4x + 3 is a linear equation in disguise; it fails strict linear-map additivity only because of the +3. In the algebra classroom, y = 4x + 3 is called linear. In linear algebra, f(x) = 4x is called a linear map. Both uses are standard; both are valid — but they refer to different objects.
For determining whether an equation is linear (the task this article addresses), use the Ax + By = C form. Save the additivity/scaling test for functions when the context is linear algebra, and note the ambiguity rather than treating one usage as wrong.
Grader Passes and Grade-Level Rules: What Counts in Each Context
Different contexts apply slightly different tests, and knowing which version you're dealing with prevents arguing with a grading rubric that disagrees with you. A middle-school worksheet and an entry-level linear algebra course are not using identical definitions, even when both use the word "linear."
In Algebra I and high school mathematics, an equation is linear if it can be written as a polynomial equation of degree 1. That means the highest power of any variable is 1, and no variables multiply, divide, or vanish into a function. This is what Khan Academy's algebra sequence teaches, and it's what most standardized tests (SAT, ACT, GRE quantitative reasoning) assume.
In linear algebra, a "linear equation" over variables x₁, x₂, …, xₙ takes the form a₁x₁ + a₂x₂ + … + aₙxₙ = b, where each aᵢ is a constant coefficient and b is a constant. This is the same definition extended to any number of variables. Linear algebra textbooks like Gilbert Strang's Introduction to Linear Algebra use this form directly. Anything with a product, an exponent other than 1, or a variable under a function is not linear in this framework.
The two agree for two-variable cases — the algebra version is just the linear algebra version with two variables. The only meaningful discrepancy is the "linear map" issue from the previous section, and that's a labeling difference, not a math error.
When Doubling x Doubles y — and Five Cases Where It Fails
If the equation is linear, doubling the input variable should double the change in the output — that's the informal version of the scaling property. It's a sanity check you can run in your head without fully algebra-rewriting the equation, and it works on most linear equations students encounter. The check works fastest when the equation has no constant term; with a constant, you have to reason about changes rather than absolute values.
Take y = 6x. Doubling x from 3 to 6 doubles y from 18 to 36. Good — linear. Take y = 6x². Doubling x from 3 to 6 quadruples y from 54 to 216. Not linear. Take y = 6/x. Doubling x from 3 to 6 halves y from 2 to 1. Not linear. Take y = 6·log(x). Doubling x from 100 to 200 raises y by roughly 0.301 on a base-10 log scale, nowhere close to doubling. Not linear.
The scaling test fails in these five common scenarios, listed in the order they appear on a test:
Exponents other than 1 (x², x³, x^0.5). Variables in a denominator (1/x, 3/x, y/x). Variables multiplied together (x·y, x·y²). Functions of variables (sin x, log x, e^x, √x, |x|). Mixed terms like x² + y², which contain both an exponent and multiple variables.
Notice that scaling checks catch the nonlinear cases quickly but don't prove linearity — passing is necessary, not sufficient, and for high-stakes work, the Ax + By = C rewrite is the definitive test.
Common Mistakes That Slip Past the Inspection Step
Even careful students miss a few cases, and the errors tend to cluster around specific misreadings. Knowing the mistakes before running the check catches more nonlinear equations than running the check cold would. Most of these come from treating a coefficient as a constant when it's actually a variable, or vice versa.
Mistake one: confusing coefficient with variable. In 5x, the 5 is a coefficient and x is the variable. The number is free to be anything — the term is still linear in x. In 5xy, both x and y are variables and 5 is a coefficient. The failure is the product, not the 5. Treating the coefficient as the deciding factor leads students to call 3x nonlinear (it isn't) and 3/x linear (it also isn't).
Mistake two: assuming "simplified" means linear. y = (x + 1)² looks tidy after expansion, but it expands to y = x² + 2x + 1, which is quadratic. The original form hid the square inside a factored expression. Always distribute and simplify fully before judging.
Mistake three: confusing linear equations with linear functions. The equation y = 4x + 3 is a linear equation in two variables. If you label this as a "linear function" in the linear algebra sense, you're technically wrong because of the +3. In a high-school context, the label is fine; in a linear algebra course, it isn't. The definition shifted mid-sentence.
Mistake four: missing a negative exponent. y = 1/x² is y = x⁻², which fails both the exponent rule and the denominator rule. The negative sign on the exponent is a red flag, but students often see "1/x²" and treat it as a constant-seeming fraction because it appears in a fraction slot.
Mistake five: overlooking absolute values. |x| is nonlinear even though it's often written without any obvious exponent. The function is piecewise — it equals x when x ≥ 0 and −x when x < 0 — and piecewise behavior disqualifies linearity. This appears frequently on placement exams, and most students miss it the first time.
FAQ
Is y = 3x + 1 a linear equation even though it has a constant term?
Yes. Linear equations in two variables accept a constant term; Ax + By = C includes C, and the slope-intercept form y = mx + b places the constant at b. The constant term shifts the line but doesn't change its shape. Only terms with variables at powers other than 1, products of variables, or variables under a nonlinear operation fail the linearity test.
Is 0 = 5x² a linear equation, since it simplifies to x = 0?
No. The presence of x² in the equation disqualifies it, regardless of what the solution set turns out to be. A quadratic with a single repeated root still describes a parabola touching the axis at one point; the graph is not a straight line. The definition of linearity is about the form of the expression, not about the number of solutions.
What's the difference between a linear equation and a linear function?
A linear equation can include a constant term, like y = 3x + 2. A linear function, in the strict linear algebra sense, must be a proportional relationship with no constant term, like f(x) = 3x. The high-school label "linear function" usually refers to the y = mx + b version, which is an equation but not a strict linear map. The two terms overlap in most coursework but diverge in linear algebra specifically.
Does dividing a variable by a number make the equation nonlinear?
No. x/2 is fine because the variable is being divided by a constant, which is equivalent to (1/2)x. The variable still appears at the first power. Dividing by a variable, as in x/y or 3/x, is nonlinear because that's equivalent to x·y⁻¹ or 3·x⁻¹, and the exponent is −1.
Can an equation have infinitely many solutions and still be linear?
Yes. The single equation 2x + 3y = 6 has infinitely many solutions because every point on the line satisfies it. Linearity is a property of the equation itself, not the solution set. A system of linear equations can also have infinitely many solutions when the equations are dependent; that's still a linear system.
Are all equations with only one variable linear?
No. The single-variable equation x² = 4 is quadratic, not linear, because x appears squared. A one-variable linear equation has the form ax + b = 0 with a ≠ 0, which produces a single real solution. Anything with an exponent, a product, or a function of the variable fails.
What's the quickest check for a system of equations?
Test each equation in the system individually. A linear system means every equation is linear individually; a system with one nonlinear equation is nonlinear, even if the other equations are linear. Systems with one nonlinear equation can have multiple solution pairs, while linear systems have at most one solution (or none, or infinitely many).
Does the additivity test ever fail for a linear equation?
No — the strict additivity test f(a + b) = f(a) + f(b) fails for equations with a constant term, but that's because the "function" label is being applied to a linear equation rather than a linear map. Linear equations in the y = mx + b form all pass the scaling test on their slope portions. The distinction matters only when the terminology is being applied strictly in linear algebra coursework.