Q5.3-22E

Question

Oscillations and Nonlinear Equations. For the initial value problem x''+(0.1)(1-x2)x'+x=0;x(0)=xo,x'(0)=0 using the vectorized Runge–Kutta algorithm with h = 0.02 to illustrate that as t increases from 0 to 20, the solution x exhibits damped oscillations when xo=1, whereas exhibits expanding oscillations when xo=2.1,.

Step-by-Step Solution

Verified
Answer

The result can get by the Runge-Kutta method.

1Transform the equation

Here, the equation x''+(0.1)(1-x2)x'+x=0.

 

The system can be written as:

 

x1=x(t)x2=x'=x'1

 

The transform equation is:

  x'1=x2x'2=-x1-0.1(1-x21)x2


The initial conditions are,

 x1(0)=x(0)=xo=1,2,1x2(0)=x'(0)=0

2Apply the Runge-Kutta method

Apply Matlab to find the results. And some results are;

T

For x0=1

For xo=2.1

0

1

2.1

0.02

0.9998

2.09957

0.04

0.9992

2.0983

0.06

0.9982

2.096

0.1

0.9950

2.0893

1

0.5441

1.0600

2

-0.36227

-0.9737


Applying the same procedure gets the result.

 

This is the required result.