Evaluate Expression Calculator

Substitute values for the letters and work out the exact value.

Use letters, brackets, + − × ÷ and whole powers.

Give each letter a value, separated by commas.

Try

Result

You entereda2+2ab+b2a^{2} + 2ab + b^{2}

1\displaystyle 1
Show the work
  1. Substitution

    Replace each letter with its value (a=12a = \frac{1}{2}, b=12b = \frac{1}{2}), putting a negative value in brackets so its sign is not lost.

    a2+2ab+b2=(12)2+2×12×12+(12)2a^{2} + 2ab + b^{2} = \left(\frac{1}{2}\right)^{2} + 2 \times \frac{1}{2} \times \frac{1}{2} + \left(\frac{1}{2}\right)^{2}
  2. Order of operations

    Work out the powers first, then the multiplications, and finally add and subtract from left to right.

    14+12+14=1\frac{1}{4} + \frac{1}{2} + \frac{1}{4} = 1
  3. Result

    So the value of the expression is 11 when a=12a = \frac{1}{2}, b=12b = \frac{1}{2}.

Worked examples