\(x^2+2x-8\)
\(=x^2+4x-2x-8\)
\(=x^2\left(x+4\right)-2\left(x+4\right)\)
\(=\left(x^2-2\right)\left(x+4\right)\)
\(x^2+5x+6\)
\(=x^2+2x+3x+6\)
\(=x\left(x+2\right)+3\left(x+2\right)\)
\(=\left(x+3\right)\left(x+2\right)\)
\(4x^2-12x+8\)
\(=4x^2-4x-8x+8\)
\(=4x\left(x-1\right)-8\left(x-1\right)\)
\(=\left(4x-8\right)\left(x-1\right)\)
\(x^2-xy-\dfrac{3}{4}y^2\)
\(=x^2-\dfrac{3}{2}xy+\dfrac{1}{2}xy-\dfrac{3}{4}y^2\)
\(=x\left(x-\dfrac{3}{2}y\right)+\dfrac{1}{2}y\left(x-\dfrac{3}{2}y\right)\)
\(=\left(x+\dfrac{1}{2}y\right)\left(x-\dfrac{3}{2}y\right)\)