For the expression
find and .
Decide which symbols are frozen. A partial derivative differentiates with respect to one variable while treating every other symbol as a constant. Here the expression contains three symbols, , and , so which one is "the variable" changes from part to part — and is a constant in both parts of this question.
Differentiate with respect to . Treating and as constants, the term is a constant multiple of and is a pure constant:
The answer is , not and not : differentiating with respect to leaves the coefficient of , which is .
Differentiate with respect to . Now and are frozen, so the entire product is a constant:
Contrast with the derivative in . For completeness, — the same expression yields three different answers depending on which symbol is the variable. Comparing all three is the fastest way to internalise what "hold the others constant" actually does.
Interpret the result. In a straight-line model fitted to data, these two partials are precisely the components of the gradient used by least squares: changing the slope by a small amount moves the prediction by times that amount, while changing the intercept moves every prediction by the same amount, for . That is why data points far from the origin dominate the estimate of the slope.
Need to solve a different problem like this? Open the solver →