The perfect square
Let's highlight the perfect square of the square three-member
$$- 2 p^{2} + \left(- p 10 y - y^{2}\right)$$
Let us write down the identical expression
$$- 2 p^{2} + \left(- p 10 y - y^{2}\right) = \frac{23 y^{2}}{2} + \left(- 2 p^{2} - 10 p y - \frac{25 y^{2}}{2}\right)$$
or
$$- 2 p^{2} + \left(- p 10 y - y^{2}\right) = \frac{23 y^{2}}{2} - \left(\sqrt{2} p + \frac{5 \sqrt{2} y}{2}\right)^{2}$$
General simplification
[src]
$$- 2 p^{2} - 10 p y - y^{2}$$
/ / ____\\ / / ____\\
| y*\-5 + \/ 23 /| | y*\5 + \/ 23 /|
|p - ---------------|*|p + --------------|
\ 2 / \ 2 /
$$\left(p - \frac{y \left(-5 + \sqrt{23}\right)}{2}\right) \left(p + \frac{y \left(\sqrt{23} + 5\right)}{2}\right)$$
(p - y*(-5 + sqrt(23))/2)*(p + y*(5 + sqrt(23))/2)
$$- 2 p^{2} - 10 p y - y^{2}$$
-y^2 - 2.0*p^2 - 10.0*p*y
-y^2 - 2.0*p^2 - 10.0*p*y
$$- 2 p^{2} - 10 p y - y^{2}$$
Assemble expression
[src]
$$- 2 p^{2} - 10 p y - y^{2}$$
$$- 2 p^{2} - 10 p y - y^{2}$$
$$- 2 p^{2} - 10 p y - y^{2}$$
Combining rational expressions
[src]
$$- 2 p^{2} + y \left(- 10 p - y\right)$$
Rational denominator
[src]
$$- 2 p^{2} - 10 p y - y^{2}$$