Cheers dude! Man guess i'm gunna have to learn sum trig for my QM exam tomorrow. =\
that's one of the only tricks that you need to use for QM though, that and integrating the cos/sin etc themselves. Depending on the level of the stuff a knowledge of orthogonality and even/odd functions can come in handy too.