Bài 5:
\(P=\left(\dfrac{a\sqrt{a}-1}{a-\sqrt{a}}-\dfrac{a\sqrt{a}+1}{a+\sqrt{a}}\right):\dfrac{a+2}{a-2}\) (đk:\(a>0;a\ne2;a\ne1\))
\(=\left(\dfrac{\left(\sqrt{a}-1\right)\left(a+\sqrt{a}+1\right)}{\sqrt{a}\left(\sqrt{a}-1\right)}-\dfrac{\left(\sqrt{a}+1\right)\left(a-\sqrt{a}+1\right)}{\sqrt{a}\left(\sqrt{a}+1\right)}\right).\dfrac{a-2}{a+2}\)
\(=\left(\dfrac{a+\sqrt{a}+1}{\sqrt{a}}-\dfrac{a-\sqrt{a}+1}{\sqrt{a}}\right).\dfrac{a-2}{a+2}\)
\(=\left(\sqrt{a}+1+\dfrac{1}{\sqrt{a}}-\sqrt{a}+1-\dfrac{1}{\sqrt{a}}\right).\dfrac{a-2}{a+2}\)
\(=\dfrac{2\left(a-2\right)}{a+2}\)
b) \(P=\dfrac{2\left(a-2\right)}{a+2}=\dfrac{2\left(a+2\right)-8}{a+2}=2-\dfrac{8}{a+2}\)
Để \(P\in Z\) \(\Leftrightarrow\dfrac{8}{a+2}\in Z\)
Có \(a\in Z,a>0\) \(\Rightarrow a+2\in Z\) và \(a+2>2\)
=> \(a+2\inƯ\left(8\right)=\left\{4;8\right\}\) \(\Leftrightarrow a\in\left\{2;6\right\}\) mà a\(\ne2\) =>a=6
Vậy a=6