Derivative of
The derivative of is .
f(x) =
Type any function of x; the derivative is computed symbolically in your browser.
How to work it out
- 1
We differentiate with respect to x. The rule that applies is the quotient rule.
- 2
Quotient rule: . Let and .
- 3
Differentiate each piece:
- 4
Put them in the rule:
- 5
Simplify:
- 6
Differentiating once more gives the second derivative, which tells you about curvature:
LaTeX source of the formulas on this page
\[ \frac{d}{dx}\left[\frac{\cos\left(x\right)}{\sin\left(x\right)}\right] = \frac{-\left(\sin\left(x\right) \sin\left(x\right)\right) - \cos\left(x\right) \cos\left(x\right)}{\sin\left(x\right)^{2}} \]
\[ f(x) = \frac{\cos\left(x\right)}{\sin\left(x\right)} \]
\[ u = \cos\left(x\right),\quad v = \sin\left(x\right) \]
\[ u' = -\sin\left(x\right),\quad v' = \cos\left(x\right) \]
\[ f'(x) = \frac{\left(-\sin\left(x\right)\right)\left(\sin\left(x\right)\right) - \left(\cos\left(x\right)\right)\left(\cos\left(x\right)\right)}{\left(\sin\left(x\right)\right)^{2}} \]
\[ f'(x) = \frac{-\left(\sin\left(x\right) \sin\left(x\right)\right) - \cos\left(x\right) \cos\left(x\right)}{\sin\left(x\right)^{2}} \]
\[ f''(x) = \frac{\left(-\left(\cos\left(x\right) \sin\left(x\right) + \sin\left(x\right) \cos\left(x\right)\right) - \left(-\left(\sin\left(x\right) \cos\left(x\right)\right) + \cos\left(x\right) -\sin\left(x\right)\right)\right) \sin\left(x\right)^{2} - \left(-\left(\sin\left(x\right) \sin\left(x\right)\right) - \cos\left(x\right) \cos\left(x\right)\right) 2 \sin\left(x\right) \cos\left(x\right)}{\left(\sin\left(x\right)^{2}\right)^{2}} \]Values of f and f' for cos(x) / sin(x)
| x | f(x) | f'(x) |
|---|---|---|
| -2 | 0.45765755 | -1.2094504 |
| -1 | -0.64209262 | -1.4122829 |
| 0.5 | 1.8304877 | -4.3506853 |
| 1 | 0.64209262 | -1.4122829 |
| 2 | -0.45765755 | -1.2094504 |
| 3 | -7.0152526 | -50.213768 |
Questions
What is the derivative of cos(x) / sin(x)?
The derivative of is .
What is the second derivative of cos(x) / sin(x)?
((-(cos(x) * sin(x) + sin(x) * cos(x)) - (-(sin(x) * cos(x)) + cos(x) * -sin(x))) * sin(x)^2 - (-(sin(x) * sin(x)) - cos(x) * cos(x)) * 2sin(x) * cos(x)) / (sin(x)^2)^2.
Which rule do you use for cos(x) / sin(x)?
The quotient rule.
What is the slope of cos(x) / sin(x) at x = 1?
-1.4122829.