Note that by the chain rule if the function y is such that y(x)=f(g(x)), where f and g are functions, then the derivative of y wrt x is given by
dy/dx = (df/dg)*(dg/dx).
Diegetic sound is a noise which has a source on-screen. They are noises which have not been edited in, for example dialogue between characters or footsteps.