a) \(x\sqrt{x}+\sqrt{x}-x-1\)
\(=\left(x\sqrt{x}-x\right)+\left(\sqrt{x}-1\right)\)
\(=x\left(\sqrt{x}-1\right)+\left(\sqrt{x}-1\right)\)
\(=\left(\sqrt{x}-1\right)\left(x+1\right)\)
b) \(\sqrt{ab}+2\sqrt{a}+3\sqrt{b}+6\)
\(=\sqrt{a}\left(\sqrt{b}+2\right)+3\left(\sqrt{b}+2\right)\)
\(=\left(\sqrt{b}+2\right)\left(\sqrt{a}+3\right)\)