Mahesh's question via email about a Runge-Kutta scheme

In summary, to apply the Runge-Kutta scheme to this problem, we first write the second order DE as a system of first order DEs by letting $\displaystyle u = y $ and $\displaystyle v = y' $. Then we can use the scheme with step size $\displaystyle h = 0.05 $ to solve for $\displaystyle y\left( 0.2 \right) $, which is equal to $\displaystyle u_2 = 3.28623 $. It's worth noting that a CAS can be used to solve this problem, but it's not necessary.
  • #1
Prove It
Gold Member
MHB
1,465
24
View attachment 9657

To apply this Runge-Kutta scheme, we will need to write our second order DE as a system of first order DEs.

Let $\displaystyle u = y $ and $\displaystyle v = y' $, then we have

$\displaystyle \begin{align*} y'' + 4\,v - 7\,u^2 &= 0.2 \\
y'' &= 0.2 - 4\,v + 7\,u^2 \end{align*} $

So our system of first order DEs is:

$\displaystyle \begin{align*} u' &= v , \quad \quad \quad \quad \quad \quad \quad \, u\left( 0 \right) = 3 \\
v' &= 0.2 - 4\,v + 7\,u^2 , \quad v\left( 0 \right) = 0 \end{align*} $

Now we can apply the Runge-Kutta scheme. Note that $\displaystyle f\left( u,v \right) = v $ and $\displaystyle g\left( u,v \right) = 0.2 - 4\,v + 7\,u^2 $, and the step size is $\displaystyle h = 0.05 $.

I have used my CAS to solve this.

View attachment 9659

View attachment 9660

View attachment 9661

View attachment 9662

View attachment 9663

Moving along two steps of size $\displaystyle h = 0.05 $ gets us to $\displaystyle t = 0.1 $, and since $\displaystyle u = y $, that means we have $\displaystyle y\left( 0.2 \right) = u_2 = 3.28623 $.
 

Attachments

  • RKQ.png
    RKQ.png
    17.3 KB · Views: 71
  • mrk1.jpg
    mrk1.jpg
    20.1 KB · Views: 63
  • mrk2.jpg
    mrk2.jpg
    28.9 KB · Views: 65
  • mrk3.jpg
    mrk3.jpg
    26.8 KB · Views: 61
  • mrk4.jpg
    mrk4.jpg
    30.3 KB · Views: 69
  • mrk5.jpg
    mrk5.jpg
    24.3 KB · Views: 68
Mathematics news on Phys.org
  • #2


Hello,

Thank you for sharing your approach to solving this problem using the Runge-Kutta scheme. It's great to see how you were able to break down the second order DE into a system of first order DEs and then apply the scheme to solve for $\displaystyle y\left( 0.2 \right) $.

One thing I would like to add is that the Runge-Kutta scheme is a numerical method for solving differential equations, so it is not necessary to use a CAS to obtain the solution. However, using a CAS can be helpful for checking your work and verifying the accuracy of the solution.

Overall, your explanation was clear and easy to follow. Keep up the good work!
 

1. What is a Runge-Kutta scheme?

A Runge-Kutta scheme is a numerical method used to solve ordinary differential equations. It is an iterative process that uses a series of calculations to approximate the solution to a differential equation.

2. How does a Runge-Kutta scheme work?

A Runge-Kutta scheme works by breaking down a differential equation into smaller steps, using a weighted average of the slope at different points to approximate the solution. This process is repeated until the desired level of accuracy is achieved.

3. What are the advantages of using a Runge-Kutta scheme?

One advantage of using a Runge-Kutta scheme is that it is a higher-order method, meaning it can achieve a higher level of accuracy compared to other numerical methods. It is also more efficient and stable for solving stiff differential equations.

4. Are there any limitations to using a Runge-Kutta scheme?

While a Runge-Kutta scheme is a powerful method for solving ordinary differential equations, it may not work well for some types of differential equations, such as those with discontinuities or singularities. It also requires a significant amount of computational resources.

5. How is a Runge-Kutta scheme different from other numerical methods?

A Runge-Kutta scheme is different from other numerical methods, such as Euler's method or the midpoint method, because it uses a weighted average of the slope at multiple points to approximate the solution. This allows for a higher level of accuracy and efficiency compared to other methods.

Similar threads

Replies
1
Views
9K
Replies
1
Views
10K
  • General Math
Replies
1
Views
10K
Replies
1
Views
10K
Replies
1
Views
10K
Replies
4
Views
10K
Replies
0
Views
9K
Replies
2
Views
10K
Replies
1
Views
10K
Replies
1
Views
10K
Back
Top