Expand the memory of a linear cell
symbolic▲▲△For with fixed , derive a closed form for and for . Verify the derivative at , , , , and .
Hint
Expand two steps, identify the coefficient of each input, and differentiate the resulting polynomial.
Solution
Each earlier input is multiplied by once for every remaining step:
The formula follows by induction: multiplying the expression for by raises each exponent, and adding supplies the final term.
For integer ,
The last input’s derivative is omitted rather than written as zero times a negative power. This polynomial formula is valid at too, using the ordinary constant monomial .
For the specified values, and its derivative is . With readout and target one, multiplying by gives the loss derivative nine from I.9.B02.
The closed form relies on a linear transition with constant parameters. Tanh prevents this distributive expansion.