**B. Nonlinear Least Squares**

In my first lecture I showed you the basic methods for linear least squares. However, there are many times when we want to fit equations which are nonlinear in the fitting parameters. A particular case in point, which has become very popular in the past few years, is the fitting of model profiles to digitized star images. So let me dive straight into the first example.