Enter a problem...
Algebra Examples
a(p-q)+q-pa(p−q)+q−p
Step 1
Apply the distributive property.
ap+a(-q)+q-p
Step 2
Rewrite using the commutative property of multiplication.
ap-aq+q-p
Step 3
Step 3.1
Reorder terms.
ap-aq-p+q
Step 3.2
Factor out the greatest common factor from each group.
Step 3.2.1
Group the first two terms and the last two terms.
(ap-aq)-p+q
Step 3.2.2
Factor out the greatest common factor (GCF) from each group.
a(p-q)-(p-q)
a(p-q)-(p-q)
Step 3.3
Factor the polynomial by factoring out the greatest common factor, p-q.
(p-q)(a-1)
(p-q)(a-1)