How do you integrate fractions?

I know how to integrate #1/x# and other reciprocals, (definitely and indefinitely) but I'm little confused when you have the variable as the numerator eg. #x/3# or #x/7#