If you happen to know the standard integral, then use it and save time.
It is no different to just quoting log sec x for the integral of tanx.
If they want you to use partial fractions, then they will state "integrate using partial fractions", if they don't then just write it down.