All formulas

Mathematics

Binomial square formulas - formula in LaTeX

The square of a sum and of a difference in one line: read the upper signs together and the lower signs together. The plus-minus sign is \pm. If the same formula needs the flipped one, use \mp.

(a±b)2=a2±2ab+b2(a\pm b)^2 = a^2 \pm 2ab + b^2

LaTeX code

$$
(a\pm b)^2 = a^2 \pm 2ab + b^2
$$

Got this formula in your notes or on a whiteboard? Snap a photo and CamteX turns it into LaTeX. Try it free

What the symbols mean

a,ba, b
any numbers or expressions

A math formula - one of the most frequently typed in assignments, lecture notes and calculus or algebra homework.

Worked example

The square of a difference lets you work out 99² in your head. The multiplication dot is \cdot; a plain asterisk * stays an asterisk in LaTeX.

992=(100−1)2=10000−2⋅100+1=980199^2 = (100 - 1)^2 = 10000 - 2\cdot 100 + 1 = 9801

Other ways to write it

LaTeX commands in this formula

\pm
plus-minus sign
x^{2}
superscript (power); wrap several characters in braces

How to use this formula in LaTeX?

  1. Copy the code with the button above - $$…$$ is centered display math.
  2. Paste it into the CamteX editor, Overleaf or any LaTeX document.
  3. Inside a sentence, use single $…$ instead of double.
  4. The formula works without extra packages.

Related formulas - Mathematics

Drawing formulas is faster than typing them.

Draw a formula, table or chart - CamteX AI turns it into ready LaTeX and inserts it into your document.

Try it free