I added individual steps for clarity. Note that g must be positive if the solution is to be real.
Let me know if you have any questions.
5.7m questions
7.4m answers