/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q5.3-26E Use the Runge–Kutta algorithm ... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Use the Runge–Kutta algorithm for systems with h= 0.1 to approximate the solution to the initial value problem.

x'=yz;x(0)=0,y'=-xz;y(0)=1,z'=-xy2;z(0)=1,

At t=1.

Short Answer

Expert verified

The required result is: X1=0.803,Y1=0.59598,Z1=0.82316

Step by step solution

01

Given conditions

Given initial value problem is:

x'=yzy'=-xzz'=-xy2

And the initial conditions are:

x0=0y0=1z0=1

02

Apply the Runge-Kutta method

To get the solution apply the Runge-Kutta method in mat lab for t=1.

Function n[t,x] =Runge_Kutta(f,t0,t_end,init_cond,h)
%we begin at time t0 and end when we reach t_end
%init_cond(i) contains the initial value of x_i
%f contains functions such that x_i'=f_i(t,x1,x2,...)

t(:,1)=t0; % t0 is the initial value of t
x(:,1)=init_cond; % initial conditions are set

i=1;
while t(:,i) <t_end

k1=f(t(i),x(:,i));
k2=f(t(i)+0.5*h,x(:,i)+0.5*h*k1);
k3=f(t(i)+0.5*h,x(:,i)+0.5*h*k2);
k4=f(t(i)+h,x(:,i)+h*k3);

x(:,i+1)=x(:,i)+(h/6)*(k1+2*k2+2*k3+k4);

t(:,i+1)=t(:,i)+ h;
i=i+1;

end

clear all

init_cond=[0;1;1];

f=@(t,X) [X(2)*X(3);-X(1)*X(3);-X(1)*X(2)/2];

[t,x] = Runge_Kutta(f,0,1,init_cond,0.1);

table(t(:,end),x(1,end),x(2,end),x(3,end),'VariableNames',{'t','x','y','z'})

Then the results are;

T

X

Y

z

1

0.803

0.59598

0.82316

Therefore,X1=0.803,Y1=0.59598,Z1=0.82316.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

In Problems 25 – 28, use the elimination method to find a general solution for the given system of three equations in the three unknown functions x(t), y(t), z(t).

x'=3x+y-z,y'=x+2y-z,z'=3x+3y-z

In Problems 3 – 18, use the elimination method to find a general solution for the given linear system, where differentiation is with respect to t.

dxdt+y=t2,-x+dydt=1

For the interconnected tanks problem of Section5.1, page241, suppose that instead of pure water being fed into the tankA, a brine solution with concentration0.2kg/L is used; all other data remain the same. Determine the mass of salt in each tank at time tif the initial masses are and y0=0.3kg.

Referring to the coupled mass-spring system discussed in Example , suppose an external forceE(t)=37cos3t is applied to the second object of mass 1kg. The displacement functions xtand ytnow satisfy the system

(16)(2x''(t)+6x(t)-2y(t)=0,(17)(y''(t)+2y(t)-2x(t)=37cos3t

(a) Show that xtsatisfies the equation (18)x(4)(t)+5x''(t)+4x(t)=37cos3t

(b) Find a general solution xt to the equation (18). [Hint: Use undetermined coefficients with xp=Acos3t+Bsin3t.]

(c) Substitutext back into (16) to obtain a formula for yt.

(d) If both masses are displaced2mto the right of their equilibrium positions and then released, find the displacement functions xt and yt.

Verify that the solution to the initial value problem

x'=5x-3y-2;    x0=2,y'=4x-3y-1;   y0=0

Satisfies |xt|+|yt|→+∞ast→+∞

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.