Let,
y=∫x−5x−7dx
y=∫x−5−2+2x−7dx
y=∫x−7+2x−7dx
y=∫(x−7x−7+2x−7)dx
y=∫x−7x−7dx+∫2x−7dx
=∫1dx+2∫1x−7dx
=x+2logx+C