Differential of $x \sin x$

160 Views Asked by At

Finding the differential of $x \sin(x)$ \begin{align} d(x \sin x) &= (dx) sinx + x (d(\sin x)) &&\text{using the product rule}\\ &= \sin x\,dx + x \cos x\,dx \end{align}

My question is why is the differential of $\sin x$ equal to $(\cos x) (dx)$ and not just $\cos x$ (which is the derivative of $\sin x$.)

A similar question is, why is the differential of $x^2$ equal to $2x(dx)$? Why is there an additional $dx$ in both cases?

4

There are 4 best solutions below

0
On BEST ANSWER

You have a function $f(x)$ and are looking for the differential $df(x)$. In the case $f(x)=x\sin(x)$:

$$\begin{align} f'(x) &= \frac{df(x)}{dx}\\ df(x) &= f'(x)dx\\ df(x) &= \left( \frac{df(x)}{dx} \right) dx \\ d\left( x \sin (x) \right) &=\left( x \cos(x) + \sin(x) \right)dx \end{align} $$

Similarly, for $f(x)=x^2$: $$\begin{align} f'(x) &= \frac{df(x)}{dx}\\ df(x) &= f'(x)dx\\ df(x) &= \left( \frac{df(x)}{dx} \right) dx \\ d(x^2) &= (2x)dx \end{align} $$

0
On

in short: $f'(x) = \frac{d f(x)}{dx}$. In your case $f(x) = x \sin x$.

0
On

Here we have to do with infinitesimals.

What is the derivative? We all know the formula: $$\frac{\Delta f(x)}{\Delta x}=f'(x).$$ This means that derivative is a value that tells us the ratio between the change of the function and the change of its variable. If you have a knowledge in numerical analysis, roughly speaking this is similar to relative error.

But what if we want to know the value of change for the function f(x)? Then, from the last formula we may write: $$\Delta f(x)=f'(x) \Delta x.$$ So this tells us that the change of $f(x)$ is equal to the product of $f'(x)$ and the change of the variable corresponding to the change of the function. In 'numerical analysis language' this is a kind of absolute error of the function $f(x)$.

In the end, we write $d$ instead of $\Delta$ when we deal with the limit.

3
On

It's precisely because you're asking for the differential, rather than asking for the derivative with respect to $x$. In general,

$$ \mathrm{d}(f(x)) = f'(x) \mathrm{d} x$$

One interpretation of taking "the derivative with respect to $x$" is to first compute the differential, and then substitute $\mathrm{d} x = 1$. I imagine your confusion is because you are so used to that final substitution that you don't even realize it's a thing. But here, we're specifically asking for the differential, so you don't make that substitution.

(this interpretation is more like taking a partial derivative than taking a total derivative, if you know what those phrases mean)

This is something that is useful, because we may not yet have decided that $\mathrm{d} x = 1$ is what we want. Maybe we will want to substitute $x = g(t)$ and eventually substitute $\mathrm{d} t = 1$.

Or maybe you simply want to explicitly record how the function varies.

Notation with differential is especially useful when you have more than one variable (even if you only have one independent variable).