An expression is a recipe for a number: it says what to do, and given values for the letters it produces a value. It does not claim anything. 2x + 5 is an expression; 2x + 5 = 11 is an equation, which does make a claim and is Linear Equations and Inequalities's subject. The distinction matters immediately, because you can solve an equation and you cannot solve an expression.
Definition · Variable, constant, expressionA variable is a letter standing for a number whose value is not fixed. A constant is a number written as itself. An algebraic expression is any combination of variables and constants built with the operations of arithmetic.
The word variable is slightly misleading: within one calculation the letter stands for one number and does not change while you work. It varies across problems, not across lines.
Definition · TermThe terms of an expression are the pieces it separates into at its top-level + and − signs. Top-level means not inside any bracket.
The sign immediately in front of a piece belongs to that piece. An expression is therefore always a sum of its terms, some of which are negative.
3x² − 5x + 7 = 3x² + (−5x) + 7
term 1 3x²
term 2 −5x the minus sign belongs to it
term 3 7
Writing the subtraction as an addition once, as above, is worth the line. “Properties of the Real Numbers” will license reordering these terms by commutativity of addition. For now the reading skill is narrower: if a term eventually moves, its attached sign must move with it.
Definition · Coefficient and variable partA term that is a number times a product of variables splits into a coefficient — the numerical factor, sign included — and a variable part, the letters with their exponents.
In −5x the coefficient is −5 and the variable part is x. In (2/3)x² the coefficient is 2/3. A term with no letters at all, such as 7, is a constant term.
Two coefficients are written invisibly and are misread constantly. x means 1x, so its coefficient is 1. −x means (−1)x, so its coefficient is −1. Neither is zero and neither is absent; the 1 is simply not printed, because writing it would add nothing.
Terms and factors are different things
Terms are what an expression is added out of. Factors are what a term is multiplied out of. 4xy is a single term with factors 4, x and y. Confusing the two is what makes people cancel across a plus sign, and it causes real damage in Rational and Radical Expressions.
A bracket makes this visible. 5(x + 2) is one term, because there is no top-level + or − anywhere in it: it is a product of the two factors 5 and (x + 2). Multiply it out and you get 5x + 10, which is two terms. Both expressions have the same value for every x; “The Distributive Law” proves that with distribution. They do not have the same number of terms. So "how many terms" is a question about a particular way of writing, and the honest answer names the form: one as written, two expanded.
Definition · DegreeThe degree of a term is the sum of the exponents on its variables. The degree of an expression is the largest degree of any of its terms, once like terms have been combined.
4xy has degree 1 + 1 = 2. A constant term such as 7 has degree 0, since 7 = 7x⁰.
The qualification about combining is a preview of “Combining Like Terms”. In 5x − 5x + 4 the highest degree written on the page is 1, but the two x terms sum to 0 and the expression is 4, of degree 0. Degree describes the expression, not the ink.
Example · Two expressions, read part by part4xy − y² + 2 has three terms. Their coefficients are 4, −1 and 2; their degrees are 2, 2 and 0; the expression has degree 2. −x + (2/3)x² − 5 has three terms with coefficients −1, 2/3 and −5, and degree 2. The second is not written in descending order of degree, which is legal and sometimes inconvenient.