I have a question in my text book that asks me to simplify the above expression.
I reached the solution:
However, the textbook gives the answer as:
I appreciate that the value of these two expressions is the same. However, I am unsure as to how and why the answer above was reached instead of my answer.



Multiply your solution by $\dfrac{\sqrt a + \sqrt b}{\sqrt a + \sqrt b}$ and simplify.