I will provide a method wihch is easier than yours
for your question, you may have doubt on how to solve the integral, just check it with the integraltion table and we have
the sign of solution has to be determined once the constant term is known
therefore both solutions are feasible
这个过程已经很清楚了,楼主还想怎么详解呢?