factoring by grouping
x^2 + 4y + 2x + 2xy
pls explain with work too!!!

[tex] {x}^{2} + 4y + 2x + 2xy[/tex]
We can factorise this expression by grouping. First let us arrange it in this way
[tex] = {x}^{2} + 2xy + 2x + 4y[/tex]
Let us bracket them like this:
[tex] = ( {x}^{2} + 2xy) + (2x+ 4y)[/tex]
In the first bracket portion, take x as common and in the second expression, take 2 as common.
[tex] = x(x + 2y) + 2(x + 2y) \\ = (x + 2)(x + 2y)[/tex]
Answer:
[tex](x + 2)(x + 2y)[/tex]
Hope you could understand.
If you have any query, feel free to ask.
[tex] \tt \: {x}^{2} + 4y + 2x + 2xy[/tex]
Factor out x from the expression
[tex] \tt \: x \times (x + 2) + 4y + 2xy[/tex]
Factor out 2y from the expression
[tex] \tt \: x \times (x + 2) + 2y \times (2 + x)[/tex]
Factor out x+2 from the expression
[tex] \boxed{ \sf \: (x + 2) \times (x + 2y)}[/tex]
➪ Therefore, The factors are: (x+2) & (x+2y)