I know that using the product rule, I can calculate the derivative of the following function:
$$[f(x)\cos(\omega x)]' = f'(x)\cos(\omega x)-\omega f(x)\sin(\omega x) $$
However, how could I find the anti-derivative of the following function, if $k$ is a real number (possibly $-1\leq k \leq 1 $):
$$ kf'(x)\cos(\omega x)-\omega f(x)\sin(\omega x) $$ ??
Thanks in advance!