Question: Differential equation with least square method

Hello, I am working on a problem that I cannot solve for several days. Any help is welcomed :) I have a differential equation y''(x) = a * y'(x) + b * y(x) + c I have two vectors X = (x1, ..., xn) and Z = (z1, ..., zn) y(x1) = z1 y(xm)=zm I have to solve the problem by determining the 'a', 'b' and 'c' by using least square method. I am trying to use dsolve to get a solution of the differential equation and then the Optimization package to use the least square method, but I cannot get it right. Thank you very much for any help.
Please Wait...