So
. Call this equation 1.
Now we need to find . We use the exact same method.
So
.
Substitute this back into equation 1.
.
Note, C can take on any arbitrary constant, but its actual value will change throughout the integration... I've just used the same symbol each time because I'm lazy...