/ y\
|x - -|*(x - y)
\ 3/
$$\left(x - y\right) \left(x - \frac{y}{3}\right)$$
General simplification
[src]
$$3 x^{2} - 4 x y + y^{2}$$
The perfect square
Let's highlight the perfect square of the square three-member
$$3 x^{2} + \left(- x 4 y + y^{2}\right)$$
Let us write down the identical expression
$$3 x^{2} + \left(- x 4 y + y^{2}\right) = - \frac{y^{2}}{3} + \left(3 x^{2} - 4 x y + \frac{4 y^{2}}{3}\right)$$
or
$$3 x^{2} + \left(- x 4 y + y^{2}\right) = - \frac{y^{2}}{3} + \left(\sqrt{3} x - \frac{2 \sqrt{3} y}{3}\right)^{2}$$
in the view of the product
$$\left(- \frac{y}{\sqrt{3}} + \left(\sqrt{3} x + - \frac{2 \sqrt{3}}{3} y\right)\right) \left(\frac{y}{\sqrt{3}} + \left(\sqrt{3} x + - \frac{2 \sqrt{3}}{3} y\right)\right)$$
$$\left(- \frac{\sqrt{3}}{3} y + \left(\sqrt{3} x + - \frac{2 \sqrt{3}}{3} y\right)\right) \left(\frac{\sqrt{3}}{3} y + \left(\sqrt{3} x + - \frac{2 \sqrt{3}}{3} y\right)\right)$$
$$\left(\sqrt{3} x + y \left(- \frac{2 \sqrt{3}}{3} - \frac{\sqrt{3}}{3}\right)\right) \left(\sqrt{3} x + y \left(- \frac{2 \sqrt{3}}{3} + \frac{\sqrt{3}}{3}\right)\right)$$
$$\left(\sqrt{3} x - \sqrt{3} y\right) \left(\sqrt{3} x - \frac{\sqrt{3} y}{3}\right)$$
Rational denominator
[src]
$$3 x^{2} - 4 x y + y^{2}$$
$$3 x^{2} - 4 x y + y^{2}$$
$$3 x^{2} - 4 x y + y^{2}$$
Assemble expression
[src]
$$3 x^{2} - 4 x y + y^{2}$$
$$3 x^{2} - 4 x y + y^{2}$$
Combining rational expressions
[src]
$$3 x^{2} + y \left(- 4 x + y\right)$$
$$\left(x - y\right) \left(3 x - y\right)$$