Embedded runge-kutta methods

Assignment Help Mathematics
Reference no: EM13920604

I - An Embedded Runge-Kutta Methods

Task 1: Write out the formulas for k1, . . . , k4, yn+1 and y^n+1.

Task 2: Explain how this specific method can be implemented so that only 3 function evaluations per step are required.

Task 3: Write out R(z) in the same way and state the values of the coefficients α1, α2 and α3.

Task 4: Use Maple to make a plot of the polynomials R(z) and R^(z) for z ∈ [-3, 1]. Use one graph to show both polynomials together.

Task 5: Use Maple to find the value z* such that |R(z)| < 1 for all values z ∈ (z*, 0). In the same way, use Maple to find the value z^* such that |R^(z)| < 1 for all values z ∈ (z^*, 0). Hint: You can use the fsolve command.

Task 6: Suppose we use the RK2 method with a constant step size h for the system of ODEs

X' = Ax = XΛX-1x, where X is an arbitrary 2 × 2 matrix and

2466_img1.png

Use the results from the previous task to find the upper bound on h required to obtain a stable method. Also find the upper bound for the RK3 method. Which of the two methods gives the most severe restriction on h?

II - Constant Step Size Implementation

Task 1: Implement a procedure that takes as arguments the parameters a, b, c ∈ R and z : R → R, the initial condition t0, x0, y0 ∈ R, the final time te ∈ R and the number of steps N ∈ N and calculates an approximation to the solution of the Fitz Hugh-Nagumo model (1.1)-(1.2). The output of your procedure should be five arrays t[0..N], x[0..N], y[0..N], x^[0..N], y^[0..N] containing the grid points tn and the numerical approximations xn, yn, x^n and y^n. It may be a good idea to base your implementation on several smaller procedures.

Task 2: Use the procedure from the previous task to calculate an approximate solution to the Fitz Hugh-Nagumo problem (1.1)-(1.2) for the parameter values a = 0.7, b = 0.8, c = 1, 3, 9 and z(t) = -0.4. Use t0 = 0, x0 = 1.2 and y0 = -0.625 as the values for the initial condition, te = 32 and N = 400. For each value for c create three graphs:

  • xn and yn versus tn,
  • the error estimate Ln =

    37_img2.png, versus tn

  • a phase plot: yn versus xn.

The error estimate is measured using the norm ||[xy]||2 = √(x2 + y2). Use a logarithmic scale for the error estimate Ln (see plots[logplot]).

It may be a good idea to write several procedures to solve this task. For example, you could write a procedure that takes as arguments N the arrays t[0..N], x[0..N], y[0..n], x^[0..N] and y^[0..N] and produces the necessary graphs. This procedure can then be reused in the next section.

Briefly describe the results and how the parameter c influences the solution and the error estimate.

III - Variable Step Size Implementation

Task 1: Implement a procedure that takes as arguments the parameters a, b, c ∈ R and z : R → R, the initial condition t0, x0, y0 ∈ R, the final time te ∈ R, the initial step size h0, the error tolerance  and the maximum number of time steps Nmax and calculates an approximation to the solution of the Fitz Hugh-Nagumo model (1.1)-(1.2) using the variable step size technique just described. The output of your procedure should be the number of time steps N and five arrays t[0..N], x[0..N], y[0..N], x^[0..N], y^[0..N] containing the grid points tn and the numerical approximations xn, yn, x^n and y^n. Note that as far as input values are concerned the only difference with the constant step size procedure is that instead of the input parameter N we have the parameters h0, ε and Nmax. The number of time steps N is an extra output value for the variable step procedure.

Because we do not know beforehand how many steps the procedure will take, we cannot use Maple Array data structures directly. Instead we will use table data structures and convert them to Array data structures at the end.

Task 2: Repeat Task 2 in part II, but use the variable step procedure rather than the constant step procedure. Use the same parameter values as in Task 2, but use h0 = 10-3, ε = 10-5 and Nmax = 400 (rather than specifying N as was done for the constant step case). In addition to the graphs of xn, yn versus tn, the error estimate Ln versus tn and the phase plot with xn versus yn, also generate a graph of the step size hn versus tn. Use a logarithmic scale for the hn axis. You can either implement new procedures for this task (possibly using procedures from the previous section) or you can adapt the procedures from the previous section so that they can use both the constant and variable step methods. Briefly describe your observations.

References-

[Fit61] R. FitzHugh. Impulses and physiological states in theoretical models of nerve membrane. Biophysical Journal, 1:445-466, 1961.

[NAY62] J. S. Nagumo, S. Arimoto, and S. Yoshizawa. An active pulse transmission line simulating nerve axon. Proceedings of the Institute of Radio Engineers, 50:2061-2071, 1962.

Reference no: EM13920604

Questions Cloud

Value of each performance obligation : For contracts that include more than one separate performance obligation.The contract price is allocated to each performance obligation in proportion to the obligations' stand-alone selling prices.Revenue is recorded over time at the fair value of ea..
How is product design applied in decision-making at mcdonald : How is product design applied in decision-making at McDonald's? Describe a Product Life Cycles at McDonald's?
Determine the amount of interest and dividends paid. : Assuming Kerr earns a before interest expense recognition profit of $400 during 2013, determine the amount of interest and dividends paid.
Operating activities section of statement of cash ?ows : Prepare the operating activities section of the statement of cash ?ows for 2015. Use the indirect method.
Embedded runge-kutta methods : Embedded Runge-Kutta Methods- Write out the formulas for k1, . . . , k4, yn+1 and y^n+1. Explain how this specific method can be implemented so that only 3 function evaluations per step are required
Lang enterprises was started when it acquired : After all events have been recorded, Lang's obligations to creditorsrepresents what percent of total assets?
With five production facilities : Juniper Packaging Solutions, Inc., provides custom packaging products to companies all over the United States. With five production facilities, the company produces cardboard boxes, plastic and steel drums, aluminum bottles, and absorbent pouches and..
Business intelligence and data warehouses : Businesses today are extremely reliant on large amounts of data for making intelligent business decisions. Likewise, the data warehouses are often structured in a manner that optimizes processing large amounts of data.
Define the inputs to risk identification : Develop a statement of work (SOW) for your project. Use sufficient detail to allow prospective sellers to determine if they can provide the item or service you require.

Reviews

Write a Review

Mathematics Questions & Answers

  What are the length and the width of the pool

The width of a rectangular swimming pool is 10 feet less than the length of the swimming pool. The surface area of the pool is 600 square feet. What are the length and the width of the pool. You must know the formula for area of a rectangle in ord..

  What is the probability that company will run out of units

Now, suppose that the company currently has 180 units in stock, and it will not be receiving any further shipments from its supplier for at least 3 weeks. What is the probability that the company will run out of units

  How many weeks will the pond have the same depth

the depth of a pond is 180 cm and is being reduced by 1 cm per week. the depth of a second pond is 160 cm and is being reduced by 1/2 cm per week. if the depths of both ponds continue to be reduced at these constant rates, in about how many weeks ..

  Develop a joint probability table and show

Develop a joint probability table and show the marginal probabilities. What is the probability of a household whose income exceeds $40,000 and who rejects the offer?

  What should the number of beats be

A 40 year old woman with a resting hear rate of 170 beats per minute should keep her heart rate between 136 and 158 beats per minute while exercising. She checks her pulse for 10 seconds while exercising. What should the number of beats be?

  How much of that total is interest

You wish to deposit $500 per month into an account for 36 months. Assume your interest rate is equal to the prime interest rate.

  Quadratic function has a minimum value or maximum value

1. Determine whether the given quadratic function has a minimum value or maximum value. Then find the coordinates of the minimum or maximum point. f(x) = x^2 + 2x - 9

  Question about midpoint rule

Use the Midpoint Rule, with n=4, to approximate the area of the region bounded by f (x)=x^3 -8x^2+16x and the x-axis between x=0 and x=4. Round answer to two decimal places.

  Find the area of an equilateral triangle

Find the area of an equilateral triangle (regular 3-gon) with the given measurement.

  What are the dimensions

the length of a new rectangular playing field is 7 yards longer than quadruple the width. If the perimeter of the rectangular playing field is 514 yards, what are the dimensions?

  A company finds that on average 20%

Resigning Probabilities, A company finds that on average 20% of all new employees resign during their first year of employment

  Slope and equation of horizontal line

Find the slope and the equation of the horizontal line that passes through (-325, 185) Find the slope and the equation of the vertical line that passes through (-325, 185) Find the difference quotient of f(x) = 1/x^2

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd