Derivative of $$$\sin{\left(a - x \right)}$$$ with respect to $$$x$$$

The calculator will find the derivative of $$$\sin{\left(a - x \right)}$$$ with respect to $$$x$$$, with steps shown.

Related calculators: Logarithmic Differentiation Calculator, Implicit Differentiation Calculator with Steps

Leave empty for autodetection.
Leave empty, if you don't need the derivative at a specific point.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\frac{d}{dx} \left(\sin{\left(a - x \right)}\right)$$$.

Solution

The function $$$\sin{\left(a - x \right)}$$$ is the composition $$$f{\left(g{\left(x \right)} \right)}$$$ of two functions $$$f{\left(u \right)} = \sin{\left(u \right)}$$$ and $$$g{\left(x \right)} = a - x$$$.

Apply the chain rule $$$\frac{d}{dx} \left(f{\left(g{\left(x \right)} \right)}\right) = \frac{d}{du} \left(f{\left(u \right)}\right) \frac{d}{dx} \left(g{\left(x \right)}\right)$$$:

$${\color{red}\left(\frac{d}{dx} \left(\sin{\left(a - x \right)}\right)\right)} = {\color{red}\left(\frac{d}{du} \left(\sin{\left(u \right)}\right) \frac{d}{dx} \left(a - x\right)\right)}$$

The derivative of the sine is $$$\frac{d}{du} \left(\sin{\left(u \right)}\right) = \cos{\left(u \right)}$$$:

$${\color{red}\left(\frac{d}{du} \left(\sin{\left(u \right)}\right)\right)} \frac{d}{dx} \left(a - x\right) = {\color{red}\left(\cos{\left(u \right)}\right)} \frac{d}{dx} \left(a - x\right)$$

Return to the old variable:

$$\cos{\left({\color{red}\left(u\right)} \right)} \frac{d}{dx} \left(a - x\right) = \cos{\left({\color{red}\left(a - x\right)} \right)} \frac{d}{dx} \left(a - x\right)$$

The derivative of a sum/difference is the sum/difference of derivatives:

$$\cos{\left(a - x \right)} {\color{red}\left(\frac{d}{dx} \left(a - x\right)\right)} = \cos{\left(a - x \right)} {\color{red}\left(\frac{da}{dx} - \frac{d}{dx} \left(x\right)\right)}$$

Apply the power rule $$$\frac{d}{dx} \left(x^{n}\right) = n x^{n - 1}$$$ with $$$n = 1$$$, in other words, $$$\frac{d}{dx} \left(x\right) = 1$$$:

$$\left(- {\color{red}\left(\frac{d}{dx} \left(x\right)\right)} + \frac{da}{dx}\right) \cos{\left(a - x \right)} = \left(- {\color{red}\left(1\right)} + \frac{da}{dx}\right) \cos{\left(a - x \right)}$$

The derivative of a constant is $$$0$$$:

$$\left({\color{red}\left(\frac{da}{dx}\right)} - 1\right) \cos{\left(a - x \right)} = \left({\color{red}\left(0\right)} - 1\right) \cos{\left(a - x \right)}$$

Thus, $$$\frac{d}{dx} \left(\sin{\left(a - x \right)}\right) = - \cos{\left(a - x \right)}$$$.

Answer

$$$\frac{d}{dx} \left(\sin{\left(a - x \right)}\right) = - \cos{\left(a - x \right)}$$$A


Please try a new game Rotatly