Indeed tungsten lol, there are like 10 integrals that you just have to know. Fortunately some are close to oppopsits. f’(cosx) = -sinx and the integral of sinx = -cosx +C . Its all alot easier if you know your trig identities and double angle formulas too.