Factor by grouping

X^3+3X^2-5x-15

I get x^2(x+3)-5(x+3) is this correct????

ok so far, but keep going

= (x+3)(x^2 - 5)

Ok I thought it could go to (X^2-5)(x+3)

well, isn't that the same thing ?

( just like 3x4 = 4x3 )

Yes I guess I am not with it at the moment

To factor by grouping the expression X^3 + 3X^2 - 5X - 15, you can follow these steps:

1. Group the terms: Group the first two terms together and the last two terms together.
(X^3 + 3X^2) + (-5X - 15)

2. Factor out the greatest common factor from each group:
X^2(X + 3) - 5(X + 3)

3. Notice that both groups have a common factor of (X + 3). Factor out (X + 3):
(X + 3)(X^2 - 5)

Therefore, the factored form of the expression X^3 + 3X^2 - 5X - 15 is (X + 3)(X^2 - 5).

Your result, X^2(X + 3) - 5(X + 3), is partially correct. You correctly factored out the common factor of (X + 3), but didn't factor the remaining expression (X^2 - 5).