You can see the issue here – if we measured the average gradient of these two lines, we would conclude that (if temperature is T and time is t), dT/dt is positive as measured by Cormorant but negative as measured by you. Neither of you is wrong – the point is that the temperature is a function of more than one variable (time and latitude, at the very least) and we can’t differentiate meaningfully with respect to one of these variables without considering what is happening with the other one. No doubt you can see Nefertiti’s point – the value of y in a wave is a function of both displacement (x) and time. So if we’re going to make progress with the mathematics of waves, we have to find a way to deal with this problem – how does differentiation work when you’ve got more than one variable?
We deal with this by introducing the idea of a partial derivative. Suppose we have a function z which depends on two or more variables: z = f(x, y).
We define the partial derivative, ∂z/∂x, to be equal to dz/dx for the case where y is held constant. This seems quite restrictive but is actually extremely useful and it makes the differentiation process easy because constants are generally straightforward to deal with. Because you’ll no doubt be chatting about this with your friends and family, it’s useful to know that the curly ∂ is called “del”. Here’s how it works:
First suppose we have a function of a single variable, such as z = 2sin x + 3
We can differentiate, knowing what to do with the constants 2 and 3, to get: dz/dx = 2cos x
Now compare a function of two variables, z = 2y2sin x + 3y
We can differentiate with respect to x under the condition that y is constant (and hence 2y2 and 3y are constants), to get:
∂z/∂x = 2y2cos x
We can also differentiate with respect to y, with x held constant (hence sin x is constant):
∂z/∂y = 4ysin x + 3
This is all we need to know about partial derivatives, for our purposes, so if you're eager to move on and see how they fit in to to our story, go ahead . If, however, you're intrigued and would like to think a bit more about their meaning and significance, have a look at this little appendix, first: