I have a Calculus book with the following equation which is then simplified down but I think that there might be an error.

I have pointed out where I think the error is and what I think the correction should be.

Can anyone please confirm this for me. If I am wrong could you please tell me why.

Many thanks in advance.