integral of -2cos(t)
Let's compute the integral: ∫(-2·cos(t))dt
For the math expression: 2·cos(t), since (sin(a))' = a'*cos(a), we try differentiating sin(t)
Let's differentiate: ddt(sin(t))
ⓘ The derivative of sin(x) is cos(x): ddt(sin(t)) = cos(t)
cos(t)
You observe that the computed derivative and the original math expression are the same, except for a coefficient. So the integral is:
ⓘ The derivative of -2·sin(t) is -2·cos(t), so -2·sin(t) is an antiderivative of -2·cos(t): ∫(-2·cos(t))dt = -2·sin(t)
-2·sin(t)
▶Indefinite integrals are defined up to an additive constant C, so this yields: -2·sin(t) + C