question archive we have been learning the mechanics of differentiation and integration, along with some real-world applications
Subject:MathPrice: Bought3
we have been learning the mechanics of differentiation and integration, along with some real-world applications.
But by far the most important application of calculus is differential equations. Differential equations are simply equations involving derivatives; and they are solved using various integration techniques.
Differential equations are important because they allow us to accurately model dynamic systems. That is, a differential equation describes how quickly a certain variable is changing with respect to time; and if we also happen to know that variable's initial value, the differential equation allows us to predict its value at any subsequent time.
There are many different forms of differential equations; and mathematicians, physicists, and engineers have spent much of the last three centuries trying to solve them. In some elementary cases, we can derive an exact solution that is valid for any time t in the future; and you'll encounter several of these in your Math XL Homework assignments.
But most differential equations are too complex to solve, including the Navier-Stokes equation that models fluid flow, used for everything from aerodynamical design to weather forecasting. Rather than a full and exact solution, we can only use numerical methods to estimate the solution.
Among the most important numerical methods are the Runge-Kutta methods. In this exercise, we will use one of these methods to estimate the solution to a differential equation.
Specifically, let's say that the differential equation can be written in the form
y ′ = f ( t , y )
That is, the derivative of y
is a function of both time t
and the actual function y
itself. We also assume that we know the initial condition y ( t 0 ) = y 0
.
Our objective is to approximate the value of y
at time t = t c
.
We select a step-size of time, which we'll represent by h
. Starting at time t = 0
, our strategy will be to move forward one step-size at a time, solving for the approximate value of the function y ( t )
at that time step, then using that most recent approximation as the basis for taking our next time step. We will continue that process until we reach time t c
, at which point we'll stop.
To state the algorithm in its most general form, we define time step n+1 as
t n + 1 = t n + h
Knowing the approximate solution y n
at time step t n
, we find the approximate solution y n + 1
at time t n + 1
using the formulas
y n + 1 = y n + h 6 ( k 1 + 2 k 2 + 2 k 3 + k 4 )
where
k 1 = f ( t n , y n )
k 2 = f ( t n + h 2 , y n + k 1 2 )
k 3 = f ( t n + h 2 , y n + k 2 2 )
k 4 = f ( t n + h , y n + k 3 )
We continue this iterative loop until we reach our desired endpoint in time t c
.
Stated in pseudocode:
n = 0
t 0 = 0
y ( t 0 ) = y 0
WHILE t n < t c
t n + 1 = t n + h
k 1 = f ( t n , y n )
k 2 = f ( t n + h 2 , y n + k 1 2 )
k 3 = f ( t n + h 2 , y n + k 2 2 )
k 4 = f ( t n + h , y n + k 3 )
y n + 1 = y n + h 6 ( k 1 + 2 k 2 + 2 k 3 + k 4 )
n = n + 1
END WHILE
With this background, here's your assignment:
Note: To avoid round-off error, retain at least six decimal places in all of your calculations.
Upload your results using the blue "Submit Assignment" button at the top of the page. Be sure to show all of your work in making these calculations.