# How do you find the derivative of #y=cos(x-1)# ?

##### 1 Answer

*One uses the chain rule, which states that for a function #y(x) = g(h(x)),# the derivative #dy/dx = h'(x)g'(h(x)) dx#*

For this question, we must utilize the **Chain rule**. In this particular example,

Regarding **since we are already accounting for the derivative of #h(x)#, simply find the derivative for #g(x)#.** We know that the derivative of the cosine function is the negative sine function, from our knowledge of trigonometric function derivatives. Thus,

**NOTE: If we had not accounted for the derivative of h(x), we might instead use substitution, defining a variable #u# such that #u=h(x)#, and worked from there. However, we have accounted for #h'(x)# so this is currently unnecessary.**

Now that we have our answers, we use the formula for the chain rule.

Psykolord: I'm not comfortable seeing Leibniz and Lagrange on the same side of the equal sign. It's okay for integrals, but I'm not sure it's okay for derivatives. It's certainly doesn't look correct on your second last line: