Definition · EvaluateTo evaluate an expression at given values is to replace every occurrence of each variable by its value and then carry out the arithmetic, using the order of operations from “Order of Operations”.
The result is a single number, or else a statement that the expression has no value there.
The discipline: write the value inside brackets. Not as a precaution to be dropped once you are confident — as the method. The brackets say that the whole value, sign included, is what the surrounding operation applies to, and without them the sign can escape.
x² at x = −3
with brackets (−3)² = (−3)·(−3) = 9 correct
without them −3² = −(3·3) = −9 a different value
The second line is not a slip of the pen; it is a correct evaluation of a different string. In −3² the exponent binds more tightly than the minus sign, so it means −(3²). “Order of Operations” settled that, and substitution is where the ruling has consequences.
The minus sign that is part of the expression
Compare two expressions that differ only by brackets. At x = −3:
−x² means −(x²) → −((−3)²) = −(9) = −9
(−x)² means (−x)·(−x) → (−(−3))² = (3)² = 9
Both evaluations are right. They are answers to different questions, and neither is a misreading of the other. In −x² the minus is applied after the squaring, so a negative x gives a negative result; in (−x)² the negation happens first and the square is positive. Knowing which expression you were handed is the whole of it.
Operations that are not written down
3x means 3 · x, so at x = 4 it is 3(4) = 12 and never 34. This is the clearest reason to bracket the substituted value: without brackets the multiplication sign that was invisible when there was a letter there becomes invisible when there is a digit there, and digits written next to each other mean something else entirely. A coefficient is also not part of the base: 2x² is 2·(x²), because the exponent attaches only to the x immediately under it.
2x² at x = 3 → 2·(3²) = 2·9 = 18
(2x)² at x = 3 → (2·3)² = 6² = 36
Several letters, and values that do not exist
With more than one letter, substitute all of them before doing any arithmetic, then evaluate the resulting numerical expression in the usual order:
x² − y² at x = −3, y = 2 → (−3)² − (2)² = 9 − 4 = 5
5 − 2x at x = −4 → 5 − 2(−4) = 5 + 8 = 13
1/(x − 2) at x = 2 → 1/(2 − 2) = 1/0, undefined
The third line is not a failure of the method. Division by zero has no value, so the expression has no value at x = 2, and the correct answer to "evaluate it there" is that you cannot. Every other real number works. Lines, Functions and Graphs calls the set of inputs that work the domain and makes finding it a routine step.
Example · A fraction substituted2x² − 3x + 1 at x = −1/2. In brackets: 2(−1/2)² − 3(−1/2) + 1. The square is 1/4, so the first term is 2 · 1/4 = 1/2. The second is −3 · (−1/2) = 3/2. Then 1/2 + 3/2 = 2, and 2 + 1 = 3. The value is 3 — exact, with no decimal anywhere in the working.