Physics 212, 2018: Lectures 7

From Ilya Nemenman: Theoretical Biophysics @ Emory
Revision as of 12:28, 4 July 2018 by Ilya (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Emory Logo

Back to the main Teaching page.

Back to Physics 212, 2018: Computational Modeling.

Most models we will work on in this class will be written mathematically in terms of systems of coupled ordinary differential equations. How do we verify if our solution is not obviously wrong? One way of doing this is first to see (by solving the system numerically) whether the solutions settle down to a steady state, also known as a stable fixed point or a point attractor. If we can verify in an independent way that the attractor is correct, this will provide a good verification for our system. How do we do this?

Let's focus for now on a system of a single differential equation, like the constrained growth problem. If the system settled down, then in the equation the time derivative is zero, and the equation becomes . It's an algebraic equation! How do we find its roots? We use the Newton-Raphson method, which I will derive in class.

Your own work: use the scripts I provided and change them to solve a quadratic equation. Compare the solution to the output of a function that gives an exact solution, which you wrote last time. Verify that different roots can be obtained using different initial conditions. Then use the scripts to solve an equation for arbitrary

Please submit your work.