I need to solve the differential equation
but the result given seems to be incorrect and returns an error "Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution information". How to solve? The correct solution should be
How to solve it correctly?