← Back to learning objective

General antiderivative of sin(x) + 3cos(x)

Find the general antiderivative F(x)F(x) of f(x)=sin⁡(x)+3cos⁡(x).f(x) = \sin(x) + 3\cos(x).

Hint

Antidifferentiate term by term, using the basic rules for ∫sin⁡x dx\int \sin x\,dx and ∫cos⁡x dx\int \cos x\,dx. Don't forget the arbitrary constant at the end.

Step-by-step solution

Apply linearity to split the integral: ∫(sin⁡x+3cos⁡x) dx=∫sin⁡x dx+3∫cos⁡x dx\int (\sin x + 3\cos x)\,dx = \int \sin x\,dx + 3\int \cos x\,dx. Recall that ∫sin⁡x dx=−cos⁡x\int \sin x\,dx = -\cos x and ∫cos⁡x dx=sin⁡x\int \cos x\,dx = \sin x, since differentiating these recovers sin⁡x\sin x and cos⁡x\cos x respectively.

Substituting these results gives −cos⁡x+3sin⁡x-\cos x + 3\sin x. Since any constant added to an antiderivative still has derivative equal to f(x)f(x), we must include an arbitrary constant CC, giving the general antiderivative F(x)=−cos⁡x+3sin⁡x+C.F(x) = -\cos x + 3\sin x + C.

Justifying the arbitrary constant

Hint
Step-by-step solution

Because the derivative of any constant is zero, adding a constant to negative cosine plus three sine does not change its derivative. So the derivative still equals sine plus three cosine, meaning every such function is a valid antiderivative. This is why the general antiderivative must include an arbitrary constant, often called C.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap