Optimizing Implicit Functions: Best Fit for Coupled ODE Solutions

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
P3X-018
Messages
144
Reaction score
0
Is it possible to make a least squares fit with a function given implicitly, because the equation isn't solveable analyticly? Because I had the coupled ODE,

[tex]\ddot{x} = \omega^2x + 2\omega\dot{y} - C\,\frac{\dot{x}}{\dot{r}}[/tex]

[tex]\ddot{y} = \omega^2y - 2\omega\dot{x} - C\,\frac{\dot{y}}{\dot{r}}[/tex]

where [itex]\dot{r} = \sqrt{\dot{x}^2+\dot{y}^2}[/itex], and [itex]\omega[/itex] and C are constants in time.
I can numerically solve this system and make a plot in x-y, but I also have some measurement data, so is there a way to make best fit of the "solution" to the data points? That is vary the 2 constants to make a best fit?
There are also the 4 initial conditions when solving this system of ODE, how will they be involved in this?
 
Last edited:
Physics news on Phys.org
Of course you can measure the distance between your measurement data and the solution you calculated. I would use regression methods, depending on the degree of the solution. The origin of the data (the ODE solution) shouldn't bother you. If you want to calculate the constants by a best fit you will get an optimization problem, which probably needs again a numerical solution.