https://www.bragitoff.com/2015/09/curve-fitting-least-squares-method-presentation-slides/slide13/
Slide13