# Find the derivative of the function.y=3x+2\cos(x)

## Question:

Find the derivative of the function.

{eq}y = 3x + 2\cos(x) {/eq}

## Basic Differentiation:

In this question, a very basic differentiation is asked to solve.

Using two simple formulas of differentiation this question is going to be solved.

Formula to be used :

(cx)' = c

(cos x)' = - sin x

## Answer and Explanation:

We have,

{eq}y = 3x + 2\cos(x) {/eq}

Now,

Differentiating both sides,

{eq}y' = (3x + 2\cos(x))' \\ y' = 3 - 2\sin(x) \\ {/eq}

{eq}\therefore \color{blue}{y' = 3 - 2\sin(x) } {/eq}