Example
Substitute the variable value, then reduce by order of operations.
highlighted = computed this step
Step 1 — Set up
Set up the expression.
2x2−3x+1x=4
Step 2 — Substitute
Substitute x = 4: 2(4)^2 - 3(4) + 1.
2(4)2−3(4)+1
Step 3 — Square first
Square first: 4^2 = 16.
42=16
Step 4 — Multiply terms
Multiply terms: 2 x 16 = 32 and 3 x 4 = 12.
2×16=323×4=12
Step 5 — Result
Finish the arithmetic: 32 - 12 + 1 = 21.
32−12+1=21
evaluate-expression
Replace every occurrence of the variable with the given value, then use order-of-operations to compute the result.