\(ab+b\sqrt{a}+\sqrt{a}+1=b\sqrt{a}\left(\sqrt{a}+1\right)+\left(\sqrt{a}+1\right)\)
\(=\left(\sqrt{a}+1\right)\left(b\sqrt{a}+1\right)\)
\(=b\sqrt{a}\left(\sqrt{a}+1\right)+\left(\sqrt{a}+1\right)\)
\(=\left(\sqrt{a}+1\right)\left(b\sqrt{a}+1\right)\)