integrate cos(3x)
Let's compute the integral: ∫(cos(3x))dx
We attempt to reverse an integration: starting from cos(3x) and (sin(a))' = cos(a), we differentiate using sin
Let's differentiate: (sin(3x))'
Apply the differentiation rule: (sin(f))' = (f)'·cos(f) with f = 3x
(3x)'·cos(3x)
3·cos(3x)
You observe that the computed derivative and the original math expression are the same, except for a coefficient. So the integral is:
13·sin(3x)
sin(3x)3
Indefinite integrals are defined up to an additive constant C, so this yields: sin(3x)3 + C
Result:   sin(3x)3 + C, with C being any constant