\(a,y'=\left(\dfrac{\sqrt{x}}{x+1}\right)'\\ =\dfrac{\left(\sqrt{x}\right)'\left(x+1\right)-\sqrt{x}\left(x+1\right)}{\left(x+1\right)^2}\\ =\dfrac{\dfrac{x+1}{2\sqrt{x}}-\sqrt{x}}{\left(x+1\right)^2}\\ =\dfrac{x+1-2x}{2\sqrt{x}\left(x+1\right)^2}\\ =\dfrac{-x+1}{2\sqrt{x}\left(x+1\right)^2}\)
\(b,y'=\left(\sqrt{x}+1\right)'\left(x^2+2\right)+\left(\sqrt{x}+1\right)\left(x^2+2\right)'\\ =\dfrac{x^2+2}{2\sqrt{x}}+\left(\sqrt{x}+1\right)\cdot2x\)