Algebraic Expressions: Operations and Examples

Learn how variables, coefficients and operations form algebraic expressions. Evaluate a variable, combine like terms and compare expressions with equations.

Try this method with your own numbers.Use the quadratic expression calculator

Expressions and equations

An expression represents a value; an equation states that two expressions are equal. A variable stands for a number that may change or needs to be found.

2x + 5 is an expression. 2x + 5 = 11 is an equation.

Evaluate an expression

Substitute a value for each variable, then follow the order of operations. Use brackets when substituting a negative value.

If x = −3, then x² + 2x = (−3)² + 2(−3) = 3.

Simplify like terms

Combine matching variable parts and keep unlike terms separate.

4x + 3y − x + 2y = 3x + 5y.

Substitute a negative value carefully

For P(x) = 2x² − 3x + 1 at x = −2, put parentheses around each substituted value. The square of −2 is positive, and multiplying −3 by −2 also gives a positive number.

P(−2) = 2(−2)² − 3(−2) + 1 = 8 + 6 + 1 = 15

A second method: use a nested expression

The same polynomial can be written as (2x − 3)x + 1. Substituting −2 gives (−4 − 3)(−2) + 1, again 15. This form offers a separate arithmetic route without changing the polynomial.

2x² − 3x + 1 = (2x − 3)x + 1; (−7)(−2) + 1 = 15

Substitute a value into a quadratic expression

Change a, b, c or x in ax² + bx + c. Compare direct substitution with the nested form. Inputs are whole numbers between −10,000 and 10,000.

Change the example values

Value at x = -3

3

P(x) = x² + 2x. Changing x changes the value, not the expression.

Step by step

  1. Substitute with parentheses around the value1(-3)² + (2)(-3) + (0)
  2. Calculate powers before multiplying and adding9 + (-6) + (0) = 3
  3. Check with the nested form (ax + b)x + c((1)(-3) + (2))(-3) + (0) = 3

Common mistakes to avoid

Dropping parentheses around a negative value
(−2)² is 4, whereas −2² means −(2²), or −4. Parentheses preserve the value being substituted.
Adding unlike powers
3x² + 2x cannot be combined into 5x³. Only terms with the same variable part and exponent combine by addition.

Check your understanding

Try these questions, then compare your reasoning with the worked answers.

01Evaluate x² + 2x at x = −3.

Show answer & reasoning

3 — Use (−3)² + 2(−3) = 9 − 6 = 3.

02Simplify 4x + 3y − x + 2y.

Show answer & reasoning

3x + 5y — Combine x terms separately from y terms: (4 − 1)x + (3 + 2)y.

Sources & further reading

These textbook sections explain the rules used in this guide. The worked examples and practice questions here are published by CalcSolver.

Written and maintained by CalcSolver. See our math checking and correction policy for how examples, rounding and input limits are handled.

Found a mistake? Report a correction on GitHub ↗. The draft includes this page’s address. A GitHub account is required, and submitted reports are public.