Computer algebra systems sometimes need a helping hand from human beings. Ask your CAS to evaluate
If it doesn't return an answer, ask it to try
instead. (Side question: If your CAS could not do the first integral, why do you think it was more successful with the second form of the integrand?)
Note: Use an upper-case "C" for the constant of integration.