for trigonometric functions and rhythmic functions questions, how do you know when to use either f(t)=A sin (w(t-a)) or f(t) = A cos ( w(t-a)) ?

they are the same curves, just shifted. It usually depends on whether the initial value is a maximum or a center-value.