Answer:
5. 8
6. 18
Explanation:
5.
a(a^2 + a - 1) + 7 =
= a^3 + a^2 - a + 7
For a = -1,
= (-1)^3 + (-1)^2 - (-1) + 7
= -1 + 1 + 1 + 7
= 8
6.
2ab(a + b) - 3ab(a - b) =
= 2a^2b + 2ab^2 - 3a^2b + 3ab^2
= -a^2b + 5ab^2
For a = 1 and b = 2,
= -(1)^2(2) + 5(1)(2)^2
= -1(2) + 5(4)
= - 2 + 20
= 18