# Derivatives 101: what does “with respect to” mean?

I'm studying derivatives 101 and I can't get my head around the phrasing "with respect to" something.

Eg in chain rule we calculate the derivative of outer function with respect to inner + derivative of inner with respect to x. But what does it actually mean (in human language) to say a derivative is "with respect to" anything at all?

Thanks a ton.

• This means for which variable you should differentiate the function – Dr. Sonnhard Graubner Jun 30 '18 at 15:52
• You Can write$$\frac{df(x)}{dx}$$ – Dr. Sonnhard Graubner Jun 30 '18 at 15:52
• Sometimes humans define functions with respect to specific symbols, though mathematically speaking, symbols don't have a pregiven meaning. In this sense, saying to differentiate with respect to some symbols is to mean what function you are considering. This expression is not very useful if you have only one symbol (say $x$ or $t$) but can be useful if you have several. For instance, the chain rule gives a function $u$ of $x$ and $f$ of $u,$ then the derivative of $f$ with respect to $x$ (which means "the derivative of the composition") is what you said. – Will M. Jun 30 '18 at 16:27

If a function depends on only one variable, then its derivative is of course 'with respect to' that one variable, because the function only depends on one parameter, so there is no need to distinguish which parameter we are talking about.

But if it depends on two variables it is slightly more clear. For $f(x,y)$, the derivative with respect to $x$, is $\frac{df}{dx}$ and the derivative with respect to $y$ is $\frac{df}{dy}$. So if we let $$f(x,y) = x + y^2 \\ \frac{\partial f}{\partial x} = 1 \\ \frac{\partial f}{\partial y} = 2 y$$ we can see these quantities are not the same. The derivative with respect to $x$ is: "at what rate does $f$ change as $x$ changes", in this case it is a constant, $1$. At what rate does $f$ change as $y$ changes, i.e. "the derivative with respect to $y$", which goes like $2y$.

I hope that is what you are looking for.

Note: Hurkyl's comments below are very important, in this instance we have to use a slightly different notation $\partial$ for the derivative where there is more than one parameter, because there may be co-dependence between parameters. I had originally intended to keep the explanation simple as you had indicated it was 'derivatives 101'.

• You aren't talking about "the derivative with respect to $x$". You are talking about "the partial derivative with respect to $x$ when $y$ is held constant", notated by $\frac{\partial}{\partial x}$ in situations where it's understood that $y$ should be held constant. – Hurkyl Jun 30 '18 at 16:22
• ... in this situation, $\frac{df(x,y)}{dx}$ is nonsensical, unless $y$ depends on $x$ as well, in which case your equation is wrong (unless $y$ is constant with respect to $x$), since the right formula would be $$\frac{df(x,y)}{dx} = 1 + 2y \frac{dy}{dx}$$ – Hurkyl Jun 30 '18 at 16:23
• This is exactly what I needed. Much clearer now. Thanks a lot!! – Ilja Moisejev Jul 2 '18 at 10:26

I a variable-centric approach to algebra, one generally works with a collection of interdependent variables.

For example, consider modeling a problem where you have a point that loops counter-clockwise around the unit circle at a constant rate. One might introduce three separate variables:

• $t$, the current time
• $x$, the first coordinate of the point's position
• $y$, the second coordinate of the point's position

and these are interrelated by various equations:

$$x = \cos(t) \qquad y = \sin(t) \qquad x^2 + y^2 = 1$$

There is a gadget called a "differential", which we write as $\mathrm{d}x$, which captures the idea of "the rate at which $x$ varies", in an absolute way.

Now, a differential is not a number; it's a new kind of mathematical gadget. Introductory calculus classes generally don't teach it; instead they want a way to do calculus that avoids working with them.

It turns out that differentials satisfy analogs of the basic derivative laws; the differentials of the above equations are

$$\mathrm{d}x = -\sin(t) \, \mathrm{d}t \qquad \mathrm{d}y = \cos(t) \, \mathrm{d}t \qquad 2x \, \mathrm{d}x + 2y \, \mathrm{d}y = 0$$

The main thing to observe here is that, in this situation, the differentials are all proportional to one another; we can meaningfully ask for their ratios, and get an informative result that doesn't involve differentials at all in their expression. We can solve these equations to get

$$\frac{\mathrm{d}x}{\mathrm{d}t} = -\sin(t) \qquad \frac{\mathrm{d}y}{\mathrm{d}t} = \cos(t) \qquad \frac{\mathrm{d}y}{\mathrm{d}x} = -\frac{x}{y}$$

Since we're comparing the proportion between the rate at which two variables change, these derivatives are, respectively, the "derivative of $x$ with respect to $t$", "derivative of $y$ with respect to $t$", and "derivative of $y$ with respect to $x$".

In these terms, the chain rule is simply the algebraic property of chaining proportions. And you can check, for example,

$$\frac{\mathrm{d}y}{\mathrm{d}t} = \frac{\mathrm{d}y}{\mathrm{d}x} \frac{\mathrm{d}x}{\mathrm{d}t} = \left(-\frac{x}{y}\right) \cdot (-\sin(t)) = \frac{\cos(t)}{\sin(t)} \cdot \sin(t) = \cos(t)$$

Now, to connect it all back to the familiar definition of derivative in terms of functions it turns out that you have the following theorem:

Theorem: If $x$ and $y$ are related by the equation $y = f(x)$ where $f$ is differentiable, then $$\frac{\mathrm{d}y}{\mathrm{d}x} = f'(x)$$

You need to specify with respect to what in case there are several possibilities. This may arise with functions of several variables. It also arises in the context of the chain rule.

Consider $f(g(x))$ and differentiate:

$$\frac{df}{dx}=\frac{df}{dg}\frac{dg}{dx}.$$

This reads "the derivative of $f$ wrt $x$ is the product of the derivative of $f$ wrt $g$ and the derivative of $g$ (wrt to $x$ is implied).

Suppose that $y$ is a function of $x$. This is usually written as $y = f(x)$ and sometimes as $y=y(x)$ when the name of the function is not important.

If you change the value of $x$ to $x + \Delta x$, then the value of $y$ will change to $y + \Delta y.$

The ratio $\dfrac{\Delta y}{\Delta x}$ is called the average rate of change of $y$ with respect to $x$. Most of the time, the ratio $\dfrac{\Delta y}{\Delta x}$ will get infinitely closer to some number, say $L$ as $\Delta x$ gets infinitely close to $0$. We write this as $$\lim_{\Delta x \to 0}\dfrac{\Delta y}{\Delta x}= L$$ and we call $L$ the instantaneous rate of change of $y$ with respect to $x$ or, more simply, the derivative of $y$ with respect to $x$.