Expand the following:
(2 x + 5 y) (3 x^2 - 4 x y + 2 y^2)
(3 x^2 - 4 x y + 2 y^2) (2 x + 5 y) = 2 x (3 x^2 - 4 x y + 2 y^2) + 5 y (3 x^2 - 4 x y + 2 y^2):
2 x (3 x^2 - 4 x y + 2 y^2) + 5 y (3 x^2 - 4 x y + 2 y^2)
2 x (3 x^2 - 4 x y + 2 y^2) = 2 x×3 x^2 + 2 x (-4 x y) + 2 x×2 y^2:
2×3 x x^2 - 4×2 x x y + 2×2 x y^2 + 5 y (3 x^2 - 4 x y + 2 y^2)
2 x×3 x^2 = 2 x^(1 + 2)×3:
2×3 x^(1 + 2) - 4×2 x x y + 2×2 x y^2 + 5 y (3 x^2 - 4 x y + 2 y^2)
1 + 2 = 3:
2×3 x^3 - 4×2 x x y + 2×2 x y^2 + 5 y (3 x^2 - 4 x y + 2 y^2)
2×3 = 6:
6 x^3 - 4×2 x x y + 2×2 x y^2 + 5 y (3 x^2 - 4 x y + 2 y^2)
2 x (-4) x y = 2 x^2 (-4) y:
6 x^3 + -4×2 x^2 y + 2×2 x y^2 + 5 y (3 x^2 - 4 x y + 2 y^2)
2 (-4) = -8:
6 x^3 + -8 x^2 y + 2×2 x y^2 + 5 y (3 x^2 - 4 x y + 2 y^2)
2×2 = 4:
6 x^3 - 8 x^2 y + 4 x y^2 + 5 y (3 x^2 - 4 x y + 2 y^2)
5 y (3 x^2 - 4 x y + 2 y^2) = 5 y×3 x^2 + 5 y (-4 x y) + 5 y×2 y^2:
6 x^3 - 8 x^2 y + 4 x y^2 + 5×3 y x^2 - 4×5 y x y + 5×2 y y^2
5×3 = 15:
6 x^3 - 8 x^2 y + 4 x y^2 + 15 y x^2 - 4×5 y x y + 5×2 y y^2
5 y (-4) x y = 5 y^2 (-4) x:
6 x^3 - 8 x^2 y + 4 x y^2 + 15 y x^2 + -4×5 y^2 x + 5×2 y y^2
5 (-4) = -20:
6 x^3 - 8 x^2 y + 4 x y^2 + 15 y x^2 + -20 y^2 x + 5×2 y y^2
5 y×2 y^2 = 5 y^(1 + 2)×2:
6 x^3 - 8 x^2 y + 4 x y^2 + 15 y x^2 - 20 y^2 x + 5×2 y^(1 + 2)
1 + 2 = 3:
6 x^3 - 8 x^2 y + 4 x y^2 + 15 y x^2 - 20 y^2 x + 5×2 y^3
5×2 = 10:
6 x^3 - 8 x^2 y + 4 x y^2 + 15 y x^2 - 20 y^2 x + 10 y^3
Grouping like terms, 6 x^3 - 8 x^2 y + 4 x y^2 + 15 y x^2 - 20 y^2 x + 10 y^3 = 10 y^3 + (4 x y^2 - 20 x y^2) + (15 x^2 y - 8 x^2 y) + 6 x^3:
10 y^3 + (4 x y^2 - 20 x y^2) + (15 x^2 y - 8 x^2 y) + 6 x^3
4 (x y^2) - 20 (x y^2) = -16 (x y^2):
10 y^3 + -16 x y^2 + (15 x^2 y - 8 x^2 y) + 6 x^3
15 (x^2 y) - 8 (x^2 y) = 7 (x^2 y):
10y^3 - 16xy^2 + 7x^2y + 6x^3