How it works
To evaluate an expression, replace each variable with its value and then follow the order of operations.
Put a substituted value in parentheses, especially a negative one. If x = −3, then x2 = (−3)2 = 9, not −9.
A number written next to a variable means multiply: 4x means 4 × x.
Example: 2x2 − 5x + 1 when x = 3 → 2(3)2 − 5(3) + 1 = 18 − 15 + 1 = 4.
Worked example
Evaluate 3x2 − 9x − 2 when x = 2.
- Substitute x = 2: 3(2)2 − 9(2) − 2.
- Square first: (2)2 = 4.
- Multiply: 3 × 4 = 12 and −9 × 2 = −18.
- Add: 12 + (−18) + (−2) = −8.
Answer: −8
Common mistakes
- Squaring a negative to a negative. When x = −3, put it in parentheses: 2(−3)² = 2 × 9 = 18, not −18.
- Losing a sign when substituting. For x² − 4x when x = −2: 4 − 4(−2) = 4 + 8 = 12, not 4 − 8 = −4.
- Writing digits side by side. 3x means 3 times x. When x = 5, 3x = 3 × 5 = 15, not 35.
- Multiplying before squaring. In 2x², only x is squared. When x = 3, 2x² = 2 × 9 = 18, not (2 × 3)² = 36.