If by LSQ you mean "least squares", then your examples are not what
you want: they are *linear* (as functions of the "unknowns" a, b and
c). These are nonlinear in x, but that does not matter. A truly
nonlinear least squares problem might, for example, be of the form y =
a + b*exp(c*x) or y = a + b*sin(x+c) or y = a*x^b. Here, there is a
nonlinear relation between the unknown parameters a, b, c and the
observable y. See, eg., http://en.wikipedia.org/wiki/Least_squares or
http://www.statsoft.com/TEXTBOOK/stnonlin.html . One of the standard
method used in nonlinear least-squares problems is the Levenberg-
Marquardt algorithm. Do a Google search for more details.
R.G. Vickson