your way looks correct as well. The plots of your function and wolfram's integral lie on top of each other.
I have to say though that this is clearly a partial fractions problem and not a trig substitution problem even if you can find an substitution that works.
$x^2-6x+5=(x-5)(x-1)$ so a bit of work shows
and the integral pops right out.