How is this expression expanded?

58 Views Asked by At

I was going through the following article where i was struggling to understand how an equation is expanded. I have highlighted the equation in blue coloured rectangle. I tried expanding using (a-b)^2 formula but i was not getting same as the article has mentioned. Please help

http://hmkcode.github.io/ai/backpropagation-step-by-step/

enter image description here