I got an answer for this problem, but I'm just wondering I did it right.
I made my and took the derivative.
I moved the to the other side because I only have a in the original equation.
So now I have
So I integrate and re-substitute and I wind up with:
Did I do my math correctly?