\[x^{2} + 3xy - 4y^{2} =\]
\[= x^{2} + 4xy - xy - 4y^{2} =\]
\[= x(x - y) + 4y(x - y) =\]
\[= (x - y)(x + 4y)\]