One weight-decay update
For one weight w=4, current loss gradient 6, learning rate 0.1 and L2 penalty strength 0.2, calculate the ordinary penalized gradient step. Compare it with the unpenalized step.
Worked answer
The penalized gradient is 6+0.2(4)=6.8, so w_new=4-0.1(6.8)=3.32. Equivalently, 0.98(4)-0.1(6)=3.32. Without the penalty the step gives 3.4.