integral of 5cos(x)-4sin(x)
1) Let's compute the integral: ∫(5·cos(x) -4·sin(x))dx
For the math expression: 5·cos(x), since (sin(a))' = a'*cos(a), we try differentiating sin(x)
2) Let's differentiate: ddx(sin(x))
ⓘ The derivative of sin(x) is cos(x): ddx(sin(x)) = cos(x)
cos(x)
The computed derivative matches the original math expression up to a constant factor. Therefore, the integral is:
ⅰ ∫(5·cos(x) -4·sin(x))dx = 5·sin(x) + ∫(-4·sin(x))dx
5·sin(x) + ∫(-4·sin(x))dx
For the math expression: 4·sin(x), since (cos(a))' = -a'*sin(a), we try differentiating cos(x)
3) Let's perform the differentiation: ddx(cos(x))
ⓘ The derivative of cos(x) is -sin(x): ddx(cos(x)) = -sin(x)
-sin(x)
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 -(-4·cos(x)) is -4·sin(x), so -(-4·cos(x)) is an antiderivative of -4·sin(x): ∫(-4·sin(x))dx = -(-4·cos(x))
5·sin(x) -(-4·cos(x))
ⓘ Extract the minus signs: an even number of minus signs cancels out, an odd number leaves one minus sign: -(-4·cos(x)) = 4·cos(x)
5·sin(x) + 4·cos(x)
▶Indefinite integrals are defined up to an additive constant C, so this yields: 4·cos(x) + 5·sin(x) + C