Solutions
MATH-C06-C-001
The output change is 13 - 1 = 12.
The input change is 6 - 2 = 4.
So the average slope is:
MATH-C06-C-002
MATH-C06-C-003
Use the local approximation:
So:
MATH-C06-C-004
For:
with respect to x, treat y as constant. The term xy changes at rate y,
and y^2 contributes 0.
So:
MATH-C06-C-005
The gradient is:
So:
MATH-C06-C-006
Gradient descent moves in the negative gradient direction.
So:
MATH-C06-C-007
MATH-C06-C-008
A Jacobian has one row per output and one column per input.
With 4 outputs and 3 inputs, the shape is:
MATH-C06-C-009
MATH-C06-C-010
When a value affects the loss through two later paths, the gradient contributions add:
MATH-C06-C-011
The estimate:
uses the derivative measured at the current point. It is a local linear approximation, so it is safest for small moves near that point.
MATH-C06-C-012
Plain gradient descent uses the negative gradient.
If:
then the descent direction before learning-rate scaling is:
MATH-C06-C-013
A 2x3 Jacobian has two output rows and three input columns.
In the local approximation:
the input change has length 3, and the approximate output change has length
2.
MATH-C06-C-014
Backprop multiplies the upstream gradient by the local derivative:
So the gradient passed to the earlier value along that path is -12.