The perfect square
Let's highlight the perfect square of the square three-member
$$\left(m^{2} + m\right) - 2$$
To do this, let's use the formula
$$a m^{2} + b m + c = 4 a m^{2} + n$$
where
$$m = \frac{b}{2 a}$$
$$n = \frac{4 a c - b^{2}}{4 a}$$
In this case
$$a = 1$$
$$b = 1$$
$$c = -2$$
Then
$$m = \frac{1}{2}$$
$$n = - \frac{9}{4}$$
So,
$$- \frac{5}{4}$$
General simplification
[src]
$$m^{2} + m - 2$$
$$\left(m - 1\right) \left(m + 2\right)$$
Assemble expression
[src]
$$m^{2} + m - 2$$
Rational denominator
[src]
$$m^{2} + m - 2$$
Combining rational expressions
[src]
$$m \left(m + 1\right) - 2$$
$$\left(m - 1\right) \left(m + 2\right)$$