\(P=\dfrac{\left(\sqrt{a+1}+1\right)\left(\sqrt{a+1}+2\right)}{\left(\sqrt{a+1}-2\right)\left(\sqrt{a+1}+2\right)}+\dfrac{2\sqrt{a+1}\left(\sqrt{a+1}-2\right)}{\left(\sqrt{a+1}-2\right)\left(\sqrt{a+1}+2\right)}-\dfrac{2+5\sqrt{a+1}}{a-3}\)
\(P=\dfrac{a+3+3\sqrt{a+1}}{a-3}+\dfrac{2a+2-4\sqrt{a+1}}{a-3}-\dfrac{2+5\sqrt{a+1}}{a-3}\)
\(P=\dfrac{a+3+3\sqrt{a+1}+2a+2-4\sqrt{a+1}-2-5\sqrt{a+1}}{a-3}\)
\(P=\dfrac{3a+3-6\sqrt{a+1}}{a-3}\)
Có thể dừng ở đây hoặc nếu thích thì làm tiếp như sau (chưa chắc gọn hơn):
\(P=\dfrac{3\left(a+1\right)-6\sqrt{a+1}}{\left(\sqrt{a+1}-2\right)\left(\sqrt{a+1}+2\right)}=\dfrac{3\sqrt{a+1}\left(\sqrt{a+1}-2\right)}{\left(\sqrt{a+1}-2\right)\left(\sqrt{a+1}+2\right)}\)
\(P=\dfrac{3\sqrt{a+1}}{\sqrt{a+1}-2}\)