# The derivative of cosx. How to differentiate cosx.

The derivative of cos x is –sinx. Just remember cos goes to minus sin.

A more general and useful version of this is:

if y = cosf(x)

Then dy/dx = -f’(x)sinf(x)

Let’s take a look at some examples:

**Example 1**

Work out the derivative of y = cos4x.

f(x) = 4x so f ‘(x) = 4

Therefore:

dy/dx = -4sin4x

**Example 2**

Work out the derivative of y = cos(7x+3)

f(x) = 7x+3 so f ‘(x) = 7

Therefore:

dy/dx = -7sin(7x+3)

**Example 3**

Work out the derivative of y = cos(x-5)

f(x) = x-5 so f ‘(x) = 1

Therefore:

dy/dx = -sin(x-5)

**Example 4**

Work out the derivative of y = cosx²

f(x) = x² so f ‘(x) = 2x

Therefore:

dy/dx = -2xsin(x²)

**Example 5**

Work out the derivative of y = cos(x³+4x²)

f(x) = x³+4x²so f ‘(x) = 3x² + 8x

Therefore:

dy/dx = -(3x² + 8x )sin(x³ + 4x²)

**Extra Tips**

Don’t forget the negative sign in your answer.

**Harder Example**

Work out the gradient of the tangent at x = 10 on the graph of y = cos(3x).

In order to find the gradient of the tangent, all you need to do is plug in x = 10 into dy/dx.

However, first you need to find dy/dx.

f(x) = 3x so f ‘(x) =3

Therefore:

dy/dx = -3sin(3x)

Now plug in x =10

dy/dx = -3sin(3 X 10)

dy/dx = -3sin(30)

dy/dx = -1.5

So the gradient of the tangent is -1.5

## More by this Author

- 0
The surface area of a triangular prism can be found in the same way as any other type of prism. All you need to do is calculate the total area of all of the faces. A triangular prism has 5 faces, 3 being rectangular and...

- 0
The density, mass and volume triangle is as follows: So if you wanted to work out the density, you would cover up density in the magic triangle to give: Density = Mass/Volume (since mass is above volume) So if...

- 26
A compound shape is a shape that is made up from other simple shapes. In this article we will be working out the area of a L shape (made up from 2 rectangles). To find the area of a compound shape, follow these simple...

## Comments 2 comments

Hey guys, Example two is incorrect.

f(x)= cos(7*x+3)

f'(x) = -7sin(7*x+3)

NOT

the answer given, simple mistake just dropped a 3 :)