factor 3a^2(a-b)-6a(a-b)+21(a-b)

Can you show me the steps? I'm just not getting it :(

You can take a 3 out of everything.

3[(a^2)(a-b)-2a(a-b)+7(a-b)]

You can also take out (a-b)

3(a-b)[(a^2)-2a+7]

I'm pretty sure this is your answer.

Thank You. This was a big help :)

No problem! Glad I could help

To factor the expression 3a^2(a-b)-6a(a-b)+21(a-b), you can use the distributive property and factor out common terms. Here are the steps:

Step 1: Observe that (a-b) is a common factor in all three terms of the expression.

Step 2: Factor out (a-b) from each term:
3a^2(a-b) - 6a(a-b) + 21(a-b)

Step 3: Distribute the common factor of (a-b) to each term inside the parentheses:
(a-b)[3a^2 - 6a + 21]

Step 4: Simplify the expression inside the parentheses:
3a^2 - 6a + 21

Step 5: Since no further factoring is possible in the expression inside the parentheses, the final factored form is:
3(a - b)(3a^2 - 6a + 21)

So, 3a^2(a-b)-6a(a-b)+21(a-b) can be factored as 3(a - b)(3a^2 - 6a + 21).