Algebra Examples

Simplify (a-b)^2
(a-b)2
Step 1
Rewrite (a-b)2 as (a-b)(a-b).
(a-b)(a-b)
Step 2
Expand (a-b)(a-b) using the FOIL Method.
Tap for more steps...
Step 2.1
Apply the distributive property.
a(a-b)-b(a-b)
Step 2.2
Apply the distributive property.
aa+a(-b)-b(a-b)
Step 2.3
Apply the distributive property.
aa+a(-b)-ba-b(-b)
aa+a(-b)-ba-b(-b)
Step 3
Simplify and combine like terms.
Tap for more steps...
Step 3.1
Simplify each term.
Tap for more steps...
Step 3.1.1
Multiply a by a.
a2+a(-b)-ba-b(-b)
Step 3.1.2
Rewrite using the commutative property of multiplication.
a2-ab-ba-b(-b)
Step 3.1.3
Rewrite using the commutative property of multiplication.
a2-ab-ba-1-1bb
Step 3.1.4
Multiply b by b by adding the exponents.
Tap for more steps...
Step 3.1.4.1
Move b.
a2-ab-ba-1-1(bb)
Step 3.1.4.2
Multiply b by b.
a2-ab-ba-1-1b2
a2-ab-ba-1-1b2
Step 3.1.5
Multiply -1 by -1.
a2-ab-ba+1b2
Step 3.1.6
Multiply b2 by 1.
a2-ab-ba+b2
a2-ab-ba+b2
Step 3.2
Subtract ba from -ab.
Tap for more steps...
Step 3.2.1
Move b.
a2-ab-1ab+b2
Step 3.2.2
Subtract ab from -ab.
a2-2ab+b2
a2-2ab+b2
a2-2ab+b2
 [x2  12  π  xdx ]