0

Let $f(x) = \sin(x)$ and $g(x) = \cos(x)$.

Then I want to find the derivative of sin(x) with respect to cos(x).

So I have:

$$\frac{d\sin(x)}{d\cos(x)}$$

$d/dx \sin(x) = \cos(x)$, so $d\sin(x) = \cos(x)dx$.

$d/dx \cos(x) = -\sin(x)$, so $d\cos(x) = -\sin(x)dx$.

Then,

$$\frac{d\sin(x)}{d\cos(x)} = \frac{\cos(x)dx}{-\sin(x)dx} = -\cot(x)$$

Is this legit or am I doing something wrong here?

O.S.
  • 602

2 Answers2

1

We have:$$\frac{d(\sqrt{1-\cos^2x})}{d(\cos x)}$$Substitute $u=\cos(x)$:

$$\frac{d}{du}(\sqrt{1-u^2})$$ Can you continue from here?

User
  • 8,033
0

since none of the answers or comments pointed it out, I would like to add, that you can differentiate both the functions with respect to the same variable (x in this case, and then divide the equations)

ex:

$f(x) = sinx$ and $g(x) = cosx$

$\frac{d(f(x))}{dx} = cosx$ .....(1)

$\frac{d(g(x))}{dx} = -sinx$ .......(2)

dividing equation 1 by 2: $\frac{(1)}{(2)}$

$$\frac{\frac{d(f(x))}{dx}}{\frac{d(g(x))}{dx}} = \frac{cosx}{-sinx}$$

$$\frac{d(f(x))}{d(g(x))} = -cotx$$

Same method can also be used for functions more complex than this one