1

$f(x) = \sin\left(\frac{1}{x}\right)$

Compute $f'(-\frac{1}{x})$.

While this problem isn't particularly hard, I noticed desmos gave a different answer from me.

What I did was (to be safe), $f'(x)=-\frac{1}{x^2}\cos\left(\frac{1}{x}\right)$.

Therefore, $f'(-\frac{1}{x})=-\frac{1}{x^4}\cos\left(-x\right)=-\frac{1}{x^4}\cos\left(x\right)$.

Did I make a mistake in here? And if so where?

Checking back to the differentials, df/dv = df/dx * dx/dv. dx/dv = x^2, and df/dx = -1/x^2 cos(1/x). did i make a mistake somewhere in there, is that why desmos shows -cosx as the answer?

what is the correct answer?

2 Answers2

2

Write $f'(y) = \frac{-1}{y^{2}}\cos (\frac{1}{y})$. Now if $y := -1/x$ then $$ f'(y) = f'(-1/x) = -x^{2}\cos (-x) = -x^{2}\cos (x). $$

Yes
  • 20,719
2

Your derivative is wrong. $f'(x)=-\frac{1}{x^2}\cos\left(\frac{1}{x}\right)$ is correct.

Hence $f'(-\frac{1}{x})=-\frac{1}{(-\frac{1}{x})^2}\cos\left(\frac{1}{-\frac{1}{x}}\right)=-x^2 \cos(-x)=-x^2 \cos(x)$

Fred
  • 77,394