Iterative Prediction: Difference between revisions

From Physics Book
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
 
(266 intermediate revisions by 10 users not shown)
Line 1: Line 1:
Claimed by tconnors3


==An Overview==


The Momentum Principle is one of the fundamental principles in the study of mechanics and dynamics. By applying it to real world problems, the motion of systems can be modeled at specific points in time. Additionally, analyzing the implications of the momentum principle, physicists can not only pinpoint behavior of systems, but can also predict the motion of systems at specified times in the future.
 
This page describes iterative prediction, a technique used to predict the motion of particles over a period of time often used in simulations.
 
==The Main Idea==
 
Iterative prediction is a mathematical technique for approximating the behavior of one or more particles over an interval of time. An iteration is a repeated procedure, so iterative prediction uses repeated procedures to predict the motion of a system. Specifically, 'iterate' means to repeat; in physics, it means to perform the same calculation repeatedly using information produced by the previous calculation. To perform iterative prediction, the initial position, initial momentum, and mass of each particle must be known, and the forces acting on each particle must be known. This information is used to update the position of each particle periodically.
 
To apply the momentum principle:
 
 
'''1.''' Chose your system
 
'''2.''' Draw a force diagram (no internal forces, everything depends on interactions with the environment)
 
'''3.''' Chose your time interval
 
'''4.''' Substitute known values and solve for unknowns
 
'''5.''' Check your units and reasonableness of your answer
 
To perform iterative prediction, the time interval of interest must be divided into small sub-intervals of duration <math>\Delta t</math> called time steps. For each time step, the following steps should be performed:
 
<ol>
<li>The [[Net Force]] acting on each particle should be calculated,</li>
<li>The [[Linear Momentum]] of each particle should be updated from the last time step using the newly calculated net force, and</li>
<li>The position of each particle should be updated from the last time step using its newly calculated [[Velocity]]. Repeat for the total number of time steps.</li>
</ol>
 
[[File:Iterative_Model.png|center]]
 
<center>This is a visual representation of iterative prediction being used to repeatedly update a particle's momentum. It was found on [https://p3server.pa.msu.edu/coursewiki/doku.php?id=183_notes:iterativepredict this page] of the Projects & Practices in Physics website, where it is provided under a [https://creativecommons.org/licenses/by-nc-sa/3.0/ CC Attribution-Noncommercial-Share Alike 3.0 Unported] license. It is shown here under the same license.</center>
 
 
 
The size of the time steps used during iterative prediction is referred to as the resolution of the model. Dividing a time interval into a few large time steps is called low resolution while dividing the same time interval into many small time steps is called high resolution. Performing iterative prediction with a higher resolution requires more computations but produces more accurate results. This is because steps 2 and 3 assume constant force and velocity respectively during the duration of each time step (see the "mathematical model" section). In reality, force and velocity change continually, so this is where inaccuracy is introduced. However, if the time steps are small enough that force and velocity do not significantly change during any time step, the iterative prediction is a sufficiently accurate model. In the limit where the time interval is divided into an infinite number of infinitely small time steps, iterative prediction becomes a perfectly accurate model. However, this would require an infinite number of computations, and is therefore impossible to do, although, in some simple situations, analytic approaches can be used to this end instead. Deciding what time step to use requires consideration of both the computational resources available and the resolution required to accurately approximate the situation. When performing iterative prediction by hand, it is impractical to perform more than a few time steps, which cannot be used to accurately model much. If computers are available, it becomes feasible to divide the time interval into thousands of time steps, which can accurately simulate most day-to-day situations. Some of the most sensitive simulations, however, require incredibly small time steps. For example, some physicists perform atom-by-atom simulations of molecular structures interacting. A slight change in the position of an atom can cause a huge change in the forces acting on it, so tiny time steps must be used in order to ensure that force and velocity do not significantly change during any one time step. These simulations are run on the world's most powerful supercomputers and often take weeks to complete. They can simulate time intervals of several nanoseconds (<math>10^{-9}</math> s) using time steps of only a few femtoseconds. (<math>10^{-15}</math> s) [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6286305/ (Click here for an example of a paper about such a simulation.)] Most of the VPython simulations on this wiki use time steps of about .01s.
 
Iterative prediction is only an approximation, but it is a very powerful tool because it can model complex systems that are impossible to model using known analytical approaches such as calculus and kinematics due to unsolvable differential equations and other obstacles.
 
===Relation between Newton's 2nd Law and Momentum Principle===
 
The rate of change of momentum of an object is directly proportional to the net force applied and is in the direction of the net force; the net force is equal to the rate of change of momentum.
 
[[File:Fma_.jpg]]
 
- F = net force in newtons (N)
 
- m = mass in kilograms (kg)
 
- a = acceleration in meters per second per second (ms-2)
 
[[File:rate-of-change-of-momentum-2.jpg]]
 
- F  = net force in newtons (N)
 
- <math>\Delta mv</math> = change in momentum in kilogram metres per second (kg ms-1)
 
- t = change in time in seconds (s)


===A Mathematical Model===
===A Mathematical Model===


By starting from the general equation for the Momentum Principle, a formula can derived to predict the momentum of a given system at a specified point in the future. This is often referred to as the '''momentum update form''' of the Momentum Principle:
Below are the mathematical formulas required for each of the three steps outlined above.
 
<ol>
 
<li>The net force acting on each particle should be calculated.</li>
 
This step varies widely from program to program, depending on what system is being modeled. Sometimes, the forces acting on each particle are constant, such as when modeling the motion of a ball with a specific weight thrown near the surface of the earth. Other times, the forces are functions of properties such as the particles' positions, such as when modeling the motion of celestial bodies whose gravitational attraction is greater when they are closer together. Sometimes, there is only one force acting on each particle, and other times, the net force must be found by adding together the individual force vectors.
 
<li>The momentum of each particle should be updated from the last time step using the newly calculated net force.</li>
 
This step uses the [[Impulse and Momentum|impulse-momentum theorem]]. The impulse-momentum theorem states that <math>\vec{p}_f = \vec{p}_i + \vec{J} = \vec{p}_i + \vec{F}_{net, avg} * \Delta t</math>. In iterative prediction, the initial momentum is always known; it is simply the momentum the particle had during the previous time step (or if there is no previous time step, the initial momentum of the particle). <math>\vec{F}_{net, avg}</math> represents the average net force that has been acting on the particle since the previous time step, resulting in a new momentum this time step. To calculate it, the net force found in step 1 should be used. Note that in reality, the net force acting on the particle is constantly changing, and the net force found in step 1 is the final net force, which is not truly the average net force over the course of the previous time step (except in a scenario with constant force). As described in the introductory section, this introduces inaccuracy that can be reduced by using shorter time steps; if short time steps are used, the net force does not have much time to change over the course of the time step, meaning the average net force is very similar to the final net force.
 
<li>The position of each particle should be updated from the last time step using its newly calculated velocity.</li>
 
This step uses the kinematic equation <math>\vec{r}_f = \vec{r}_i + \vec{v}_{avg} * \Delta t</math>. In iterative prediction, the initial position is always known; it is simply the position the particle had during the previous time step (or if there is no previous time step, the initial position of the particle). <math>\vec{v}_{avg}</math> represents the average velocity with which the particle has been moving since the previous time step, resulting in a new position this time step. To calculate it, the momentum found in step 2 should simply be divided by the mass of the particle: <math>\vec{v}_f = \frac{\vec{p}_f}{m}</math>. Note that in reality, the velocity of the particle is constantly changing, and the velocity found above is the final velocity, which is not truly the average velocity over the course of the previous time step (even in a scenario with constant force). As described in the introductory section, this introduces inaccuracy that can be reduced by using shorter time steps; if short time steps are used, the velocity does not have much time to change over the course of the time step, meaning the average velocity is very similar to the final velocity.
 
</ol>
 
===A Computational Model===
 
Iterative prediction is typically done on computers because many computations are necessary in order to perform it at a meaningful resolution. VPython is a useful program to perform iterative prediction because it can graphically display the positions of the particles each time step. Below is an example of a VPython program that uses iterative prediction to simulate a ball thrown near the surface of the earth. Be sure to read and understand the source code by clicking on "view this program" in the top left corner; there are comments for each line designed to introduce readers to their first iterative prediction program.
 
[https://www.glowscript.org/#/user/YorickAndeweg/folder/PhysicsBookFolder/program/IterativePrediction1 high-resolution ball trajectory simulation]
 
To demonstrate differing resolutions, here is a lower resolution version of the same simulation, which uses larger time steps:
 
[https://www.glowscript.org/#/user/YorickAndeweg/folder/PhysicsBookFolder/program/IterativePrediction2 low-resolution ball trajectory simulation]
 
Note that the first program is more realistic; the more frequent position updates result in a smoother curve that more closely approximates the true trajectory of a ball. On the other hand, the second program has fewer calculations to do. Both programs are artificially slowed using the "rate" command in order to simulate a realistic travel time, but if both programs were allowed to run as quickly as possible, the second program would finish first. For larger, more complicated simulations, time can be a significant factor.
 
Here is another more complicated simulation that uses iterative prediction to simulate the motion of a mass swinging on a spring. This is an example of iterative prediction with a varying force; during each time step, the forces acting on the mass must be calculated depending on its position using [[Hooke's Law]].
 
[https://www.glowscript.org/#/user/YorickAndeweg/folder/PhysicsBookFolder/program/SpringMass spring mass simulation]
 
Note: both projectile motion and spring-mass systems can be analytically modeled; that is, in both of the above systems, analytical techniques such as calculus and kinematics can be used to find the position of the particles as a function of time. However, for some other, more complicated systems, analytical approaches may not exist, while iterative prediction often still works. For example, it would be easy to modify the projectile motion simulation to include the effects of [[Air Resistance]], which is difficult to take into account analytically.
 
==Examples==
 
In addition to the example below, know how to create V-Python simulations using iterative prediction with both constant and varying forces.
 
===1. (Middling)===
 
A 2kg particle is released from rest at time t=0. A constant force of 6N is applied to it. How far has the particle traveled after 4 seconds?
 
Solve this question
 
A.) analytically (using kinematic equations)


<math>{{(1)}\frac{d\vec{p}}{dt}}_{system} = \vec{F}_{net}</math>
B.) using iterative prediction with 12 equal time steps


<math>{{(2)}\vec{p}_{f} - \vec{p}_{i} = \vec{F}_{net}{&Delta;t}}</math>
C.) using iterative prediction with 4 equal time steps


<math>{{(3)}\vec{p}_{f} = \vec{p}_{i} + \vec{F}_{net}{&Delta;t}}</math>
D.) using iterative prediction with a single time step


Equation <math>{(3)}</math> gives the momentum update form of the momentum principle. As it shows, the momentum of a system can be predicted if the time period of the interaction and the external net force on the system are known. Momentum can be iteratively predicted like such for uniform or non-uniform time periods. Additionally, with update of momentum, velocity and position can be updated similarly to better reflect the motion over time of the system:
Pay attention to how the resolution of the iterative prediction affects the accuracy of the answer. The analytical answer is completely accurate.


'''Velocity Update Formula''':


<math>{\vec{v}_{f} = \vec{v}_{i} + \frac{{F}_{net}}{m}}{&Delta;t}</math>
A.) To solve this analytically, the following kinematic equation should be used:


'''Position Update Formula''':
<math>\Delta x = \frac{1}{2} a t^2 + v_0 t</math>


<math>{\vec{r}_{f} = \vec{r}_{i} + \vec{v}_{avg}{&Delta;t}}</math>
Using [[Newton's Second Law: the Momentum Principle]], we know that <math>a = \frac{f}{m} = 3</math>m/s^2. We are also given that <math>v_0 = 0</math>, and we are interested in the time t=4. Substituting these values into the kinematic equation yields


===A Visual Model===
<math>\Delta x = \frac{1}{2} (3) (4)^2 = 24</math>m.


As the momentum update formula suggests, the final momentum of a system after a given change in time should be the vector sum of the initial momentum and the net force on the system multiplied by the scalar time change.
B.) To solve this using iterative prediction, a computational tool should be used. Since animation isn't necessary for this problem, I used Microsoft Excel; each row populates itself based on the information in the previous row using formula functions. Google Spreadsheets can also be used, as can V-Python or any other programming language.


[[Image:MOTION.png|center|650x300px|]]
[[File:12steps.PNG]]


As the diagram suggests, each individual step can be analyzed through application of the momentum update form of the Momentum Principle. Once the final momentum is calculated, by utilizing the position and velocity update formulae, the final velocity and position of the system can be determined at the end of the time interval of interest.
Using 12-time steps of 1/3 seconds each results in a simulated displacement of 26m, which is fairly close to the actual amount of 24m.


==Example Calculations==
C.)


There are a variety of different problems that can be solved by utilizing the momentum update form of the Momentum Principle. They can vary in difficulty and require any number of iterations. It is often prudent to calculate these iterations in a program loop to save time and avoid miscalculations.
[[File:4steps.PNG]]


===Example #1===
using 4-time steps of 1 second each results in a simulated displacement of 30m, which is fairly different from the actual amount of 24m.


'''A boy standing on level ground throws a 3 kg ball into the air at an initial velocity of <math>{<8,6,0> m/s}</math>. If the only force acting on the ball is gravity, what is the final momentum of the ball after 0.8 seconds?'''
D.)


This problem can be solved simply by solving for final momentum in the momentum update equation:
[[File:1step.PNG]]


<div style="text-align: center;"><math>{\vec{p}_{f} = {m}\vec{v} + \vec{F}_{grav}{&Delta;t}}</math></div>
using a 1-time step of 4 seconds results in a simulated displacement of 48m, which is twice the actual amount!


===Middling===
This demonstrates that higher-resolution simulations with smaller time steps are able to predict the motion of particles more accurately than lower-resolution simulations with larger time steps. It also demonstrates that as the length of each time step approaches 0, the predicted motion of the particles approaches their actual motion. It is important to choose a resolution that keeps error within an acceptable margin.
===Difficult===


==Connectedness==
==Connectedness==
#How is this topic connected to something that you are interested in?
 
#How is it connected to your major?
===Application: video game industry===
#Is there an interesting industrial application?
 
One popular application of iterative prediction is in physics-based video games. These are often little more than physics simulations with player input. Iterative prediction is used in most major video games to predict the motion of in-game objects. It can be used even if the laws of physics within the video game are different from those of the real world.


==History==
==History==


Put this idea in historical context. Give the reader the Who, What, When, Where, and Why.
The impulse-momentum theorem, which is used in iterative prediction to update the momenta of particles, is derived from Newton's Second Law, which Isaac Newton (1643-1727) publish in his 1687 book Principia Mathematica. From this point onward, all of the math necessary for iterative prediction was known, but it was not useful to perform iterative prediction until significant computational advances in the twentieth century allowed for high resolutions.


== See also ==
== See also ==


Are there related topics or categories in this wiki resource for the curious reader to explore?  How does this topic fit into that context?
*[[Linear Momentum]]
 
*[[Impulse and Momentum]]
===Further reading===
*[[Analytical Prediction]]
 
*[[Iterative Prediction of Spring-Mass System]]
Books, Articles or other print media on this topic
*[[Determinism]]


===External links===
===External links===


Internet resources on this topic
*[http://p3server.pa.msu.edu/coursewiki/doku.php?id=183_notes:modeling_with_vpython Iterative Prediction with VPython]


==References==
==References==


This section contains the the references you used while writing this page
*Georgia Institute of Technology. Physics Department. PHYS 2211. Fall 2016. '''Wednesday, Week 2 Lecture Slides. Fenton, Flavio H'''
 
*Georgia Institute of Technology. Physics Department. PHYS 2211. Fall 2016. '''Monday, Week 3 Lecture Slides. Fenton, Flavio H'''
[[Category:Which Category did you place this in?]]
*Georgia Institute of Technology. Physics Department. PHYS 2211. Fall 2016. Lab 07 Fancart Energy & Spring-Mass Instructions, Greco, Edwin
*http://p3server.pa.msu.edu/coursewiki/doku.php?id=183_notes:iterativepredict
*http://physicsnet.co.uk/a-level-physics-as-a2/mechanics/newtons-laws-of-motion/
*Bañó-Polo, M., Baeza-Delgado, C., Tamborero, S., Hazel, A., Grau, B., Nilsson, I., … Mingarro, I. (2018). Transmembrane but not soluble helices fold inside the ribosome tunnel. Nature communications, 9(1), 5246. doi:10.1038/s41467-018-07554-7

Latest revision as of 17:27, 3 December 2022


This page describes iterative prediction, a technique used to predict the motion of particles over a period of time often used in simulations.

The Main Idea

Iterative prediction is a mathematical technique for approximating the behavior of one or more particles over an interval of time. An iteration is a repeated procedure, so iterative prediction uses repeated procedures to predict the motion of a system. Specifically, 'iterate' means to repeat; in physics, it means to perform the same calculation repeatedly using information produced by the previous calculation. To perform iterative prediction, the initial position, initial momentum, and mass of each particle must be known, and the forces acting on each particle must be known. This information is used to update the position of each particle periodically.

To apply the momentum principle:


1. Chose your system

2. Draw a force diagram (no internal forces, everything depends on interactions with the environment)

3. Chose your time interval

4. Substitute known values and solve for unknowns

5. Check your units and reasonableness of your answer


To perform iterative prediction, the time interval of interest must be divided into small sub-intervals of duration [math]\displaystyle{ \Delta t }[/math] called time steps. For each time step, the following steps should be performed:

  1. The Net Force acting on each particle should be calculated,
  2. The Linear Momentum of each particle should be updated from the last time step using the newly calculated net force, and
  3. The position of each particle should be updated from the last time step using its newly calculated Velocity. Repeat for the total number of time steps.
This is a visual representation of iterative prediction being used to repeatedly update a particle's momentum. It was found on this page of the Projects & Practices in Physics website, where it is provided under a CC Attribution-Noncommercial-Share Alike 3.0 Unported license. It is shown here under the same license.


The size of the time steps used during iterative prediction is referred to as the resolution of the model. Dividing a time interval into a few large time steps is called low resolution while dividing the same time interval into many small time steps is called high resolution. Performing iterative prediction with a higher resolution requires more computations but produces more accurate results. This is because steps 2 and 3 assume constant force and velocity respectively during the duration of each time step (see the "mathematical model" section). In reality, force and velocity change continually, so this is where inaccuracy is introduced. However, if the time steps are small enough that force and velocity do not significantly change during any time step, the iterative prediction is a sufficiently accurate model. In the limit where the time interval is divided into an infinite number of infinitely small time steps, iterative prediction becomes a perfectly accurate model. However, this would require an infinite number of computations, and is therefore impossible to do, although, in some simple situations, analytic approaches can be used to this end instead. Deciding what time step to use requires consideration of both the computational resources available and the resolution required to accurately approximate the situation. When performing iterative prediction by hand, it is impractical to perform more than a few time steps, which cannot be used to accurately model much. If computers are available, it becomes feasible to divide the time interval into thousands of time steps, which can accurately simulate most day-to-day situations. Some of the most sensitive simulations, however, require incredibly small time steps. For example, some physicists perform atom-by-atom simulations of molecular structures interacting. A slight change in the position of an atom can cause a huge change in the forces acting on it, so tiny time steps must be used in order to ensure that force and velocity do not significantly change during any one time step. These simulations are run on the world's most powerful supercomputers and often take weeks to complete. They can simulate time intervals of several nanoseconds ([math]\displaystyle{ 10^{-9} }[/math] s) using time steps of only a few femtoseconds. ([math]\displaystyle{ 10^{-15} }[/math] s) (Click here for an example of a paper about such a simulation.) Most of the VPython simulations on this wiki use time steps of about .01s.

Iterative prediction is only an approximation, but it is a very powerful tool because it can model complex systems that are impossible to model using known analytical approaches such as calculus and kinematics due to unsolvable differential equations and other obstacles.

Relation between Newton's 2nd Law and Momentum Principle

The rate of change of momentum of an object is directly proportional to the net force applied and is in the direction of the net force; the net force is equal to the rate of change of momentum.

- F = net force in newtons (N)

- m = mass in kilograms (kg)

- a = acceleration in meters per second per second (ms-2)

- F = net force in newtons (N)

- [math]\displaystyle{ \Delta mv }[/math] = change in momentum in kilogram metres per second (kg ms-1)

- t = change in time in seconds (s)

A Mathematical Model

Below are the mathematical formulas required for each of the three steps outlined above.

  1. The net force acting on each particle should be calculated.
  2. This step varies widely from program to program, depending on what system is being modeled. Sometimes, the forces acting on each particle are constant, such as when modeling the motion of a ball with a specific weight thrown near the surface of the earth. Other times, the forces are functions of properties such as the particles' positions, such as when modeling the motion of celestial bodies whose gravitational attraction is greater when they are closer together. Sometimes, there is only one force acting on each particle, and other times, the net force must be found by adding together the individual force vectors.
  3. The momentum of each particle should be updated from the last time step using the newly calculated net force.
  4. This step uses the impulse-momentum theorem. The impulse-momentum theorem states that [math]\displaystyle{ \vec{p}_f = \vec{p}_i + \vec{J} = \vec{p}_i + \vec{F}_{net, avg} * \Delta t }[/math]. In iterative prediction, the initial momentum is always known; it is simply the momentum the particle had during the previous time step (or if there is no previous time step, the initial momentum of the particle). [math]\displaystyle{ \vec{F}_{net, avg} }[/math] represents the average net force that has been acting on the particle since the previous time step, resulting in a new momentum this time step. To calculate it, the net force found in step 1 should be used. Note that in reality, the net force acting on the particle is constantly changing, and the net force found in step 1 is the final net force, which is not truly the average net force over the course of the previous time step (except in a scenario with constant force). As described in the introductory section, this introduces inaccuracy that can be reduced by using shorter time steps; if short time steps are used, the net force does not have much time to change over the course of the time step, meaning the average net force is very similar to the final net force.
  5. The position of each particle should be updated from the last time step using its newly calculated velocity.
  6. This step uses the kinematic equation [math]\displaystyle{ \vec{r}_f = \vec{r}_i + \vec{v}_{avg} * \Delta t }[/math]. In iterative prediction, the initial position is always known; it is simply the position the particle had during the previous time step (or if there is no previous time step, the initial position of the particle). [math]\displaystyle{ \vec{v}_{avg} }[/math] represents the average velocity with which the particle has been moving since the previous time step, resulting in a new position this time step. To calculate it, the momentum found in step 2 should simply be divided by the mass of the particle: [math]\displaystyle{ \vec{v}_f = \frac{\vec{p}_f}{m} }[/math]. Note that in reality, the velocity of the particle is constantly changing, and the velocity found above is the final velocity, which is not truly the average velocity over the course of the previous time step (even in a scenario with constant force). As described in the introductory section, this introduces inaccuracy that can be reduced by using shorter time steps; if short time steps are used, the velocity does not have much time to change over the course of the time step, meaning the average velocity is very similar to the final velocity.

A Computational Model

Iterative prediction is typically done on computers because many computations are necessary in order to perform it at a meaningful resolution. VPython is a useful program to perform iterative prediction because it can graphically display the positions of the particles each time step. Below is an example of a VPython program that uses iterative prediction to simulate a ball thrown near the surface of the earth. Be sure to read and understand the source code by clicking on "view this program" in the top left corner; there are comments for each line designed to introduce readers to their first iterative prediction program.

high-resolution ball trajectory simulation

To demonstrate differing resolutions, here is a lower resolution version of the same simulation, which uses larger time steps:

low-resolution ball trajectory simulation

Note that the first program is more realistic; the more frequent position updates result in a smoother curve that more closely approximates the true trajectory of a ball. On the other hand, the second program has fewer calculations to do. Both programs are artificially slowed using the "rate" command in order to simulate a realistic travel time, but if both programs were allowed to run as quickly as possible, the second program would finish first. For larger, more complicated simulations, time can be a significant factor.

Here is another more complicated simulation that uses iterative prediction to simulate the motion of a mass swinging on a spring. This is an example of iterative prediction with a varying force; during each time step, the forces acting on the mass must be calculated depending on its position using Hooke's Law.

spring mass simulation

Note: both projectile motion and spring-mass systems can be analytically modeled; that is, in both of the above systems, analytical techniques such as calculus and kinematics can be used to find the position of the particles as a function of time. However, for some other, more complicated systems, analytical approaches may not exist, while iterative prediction often still works. For example, it would be easy to modify the projectile motion simulation to include the effects of Air Resistance, which is difficult to take into account analytically.

Examples

In addition to the example below, know how to create V-Python simulations using iterative prediction with both constant and varying forces.

1. (Middling)

A 2kg particle is released from rest at time t=0. A constant force of 6N is applied to it. How far has the particle traveled after 4 seconds?

Solve this question

A.) analytically (using kinematic equations)

B.) using iterative prediction with 12 equal time steps

C.) using iterative prediction with 4 equal time steps

D.) using iterative prediction with a single time step

Pay attention to how the resolution of the iterative prediction affects the accuracy of the answer. The analytical answer is completely accurate.


A.) To solve this analytically, the following kinematic equation should be used:

[math]\displaystyle{ \Delta x = \frac{1}{2} a t^2 + v_0 t }[/math]

Using Newton's Second Law: the Momentum Principle, we know that [math]\displaystyle{ a = \frac{f}{m} = 3 }[/math]m/s^2. We are also given that [math]\displaystyle{ v_0 = 0 }[/math], and we are interested in the time t=4. Substituting these values into the kinematic equation yields

[math]\displaystyle{ \Delta x = \frac{1}{2} (3) (4)^2 = 24 }[/math]m.

B.) To solve this using iterative prediction, a computational tool should be used. Since animation isn't necessary for this problem, I used Microsoft Excel; each row populates itself based on the information in the previous row using formula functions. Google Spreadsheets can also be used, as can V-Python or any other programming language.

Using 12-time steps of 1/3 seconds each results in a simulated displacement of 26m, which is fairly close to the actual amount of 24m.

C.)

using 4-time steps of 1 second each results in a simulated displacement of 30m, which is fairly different from the actual amount of 24m.

D.)

using a 1-time step of 4 seconds results in a simulated displacement of 48m, which is twice the actual amount!

This demonstrates that higher-resolution simulations with smaller time steps are able to predict the motion of particles more accurately than lower-resolution simulations with larger time steps. It also demonstrates that as the length of each time step approaches 0, the predicted motion of the particles approaches their actual motion. It is important to choose a resolution that keeps error within an acceptable margin.

Connectedness

Application: video game industry

One popular application of iterative prediction is in physics-based video games. These are often little more than physics simulations with player input. Iterative prediction is used in most major video games to predict the motion of in-game objects. It can be used even if the laws of physics within the video game are different from those of the real world.

History

The impulse-momentum theorem, which is used in iterative prediction to update the momenta of particles, is derived from Newton's Second Law, which Isaac Newton (1643-1727) publish in his 1687 book Principia Mathematica. From this point onward, all of the math necessary for iterative prediction was known, but it was not useful to perform iterative prediction until significant computational advances in the twentieth century allowed for high resolutions.

See also

External links

References

  • Georgia Institute of Technology. Physics Department. PHYS 2211. Fall 2016. Wednesday, Week 2 Lecture Slides. Fenton, Flavio H
  • Georgia Institute of Technology. Physics Department. PHYS 2211. Fall 2016. Monday, Week 3 Lecture Slides. Fenton, Flavio H
  • Georgia Institute of Technology. Physics Department. PHYS 2211. Fall 2016. Lab 07 Fancart Energy & Spring-Mass Instructions, Greco, Edwin
  • http://p3server.pa.msu.edu/coursewiki/doku.php?id=183_notes:iterativepredict
  • http://physicsnet.co.uk/a-level-physics-as-a2/mechanics/newtons-laws-of-motion/
  • Bañó-Polo, M., Baeza-Delgado, C., Tamborero, S., Hazel, A., Grau, B., Nilsson, I., … Mingarro, I. (2018). Transmembrane but not soluble helices fold inside the ribosome tunnel. Nature communications, 9(1), 5246. doi:10.1038/s41467-018-07554-7