Answer
(a) Yes
(b) No
Work Step by Step
(a) Yes, these expressions are equal because: $\displaystyle \frac{x(x+1)}{(x+1)^{2}}=\frac{x}{x+1}.$
(b) No. If we square both sides, we get: $(x+5)^{2}=x^2+25$
But this is not true, since:
$(x+5)^2=x^{2}+10x+25\neq x^{2}+25$