Runge-Kutta Method (2nd and 4th Order)

Introduction

Runge-Kutta Method differential equations को solve करने का एक बहुत powerful और widely used numerical method है। यह method Euler और Modified Euler methods की limitations को दूर करता है और बिना higher derivatives निकाले अधिक accurate result देता है।

यह method step-by-step solution देता है, लेकिन हर step में multiple slopes (different points पर) calculate करके उनका weighted average लेता है। इसी कारण इसकी accuracy बहुत अच्छी होती है।

Runge-Kutta Method के कई orders होते हैं, जिनमें से 2nd order (RK-2) और 4th order (RK-4) सबसे ज्यादा उपयोग किए जाते हैं।

Runge-Kutta 2nd Order Method (RK-2)

Basic Idea

इस method में दो slopes (k₁ और k₂) निकाले जाते हैं और उनका average लेकर next value निकाली जाती है।

Formula

k1=hf(xn,yn)k_1 = h f(x_n, y_n)

k2=hf(xn+h,yn+k1)k_2 = h f(x_n + h, y_n + k_1)

yn+1=yn+12(k1+k2)y_{n+1} = y_n + \frac{1}{2}(k_1 + k_2)

Numerical Example (RK-2)

Solve:dydx=x+y,y(0)=1\frac{dy}{dx} = x + y,\quad y(0) = 1

Find y(0.1)y(0.1), h=0.1h = 0.1

Step 1: Initial values

x0=0,y0=1x_0 = 0,\quad y_0 = 1

Step 2: Calculate k₁

k1=0.1(0+1)=0.1k_1 = 0.1 (0 + 1) = 0.1

Step 3: Calculate k₂

k2=0.1(0.1+1.1)=0.1×1.2=0.12k_2 = 0.1 (0.1 + 1.1) = 0.1 \times 1.2 = 0.12

Step 4: Find next value

y1=1+12(0.1+0.12)y_1 = 1 + \frac{1}{2}(0.1 + 0.12)

=1+0.11=1.11= 1 + 0.11 = 1.11

Final Answer (RK-2)

y(0.1)1.11y(0.1) \approx 1.11

Runge-Kutta 4th Order Method (RK-4)

Basic Idea

यह method चार slopes (k₁, k₂, k₃, k₄) निकालता है और उनका weighted average लेकर बहुत accurate result देता है।

Formula

k1=hf(xn,yn)k_1 = h f(x_n, y_n)

k2=hf(xn+h2,yn+k12)k_2 = h f(x_n + \frac{h}{2}, y_n + \frac{k_1}{2})

k3=hf(xn+h2,yn+k22)k_3 = h f(x_n + \frac{h}{2}, y_n + \frac{k_2}{2})

k4=hf(xn+h,yn+k3)k_4 = h f(x_n + h, y_n + k_3)

yn+1=yn+16(k1+2k2+2k3+k4)y_{n+1} = y_n + \frac{1}{6}(k_1 + 2k_2 + 2k_3 + k_4)


Numerical Example (RK-4)

Same problem:dydx=x+y,y(0)=1,h=0.1\frac{dy}{dx} = x + y,\quad y(0) = 1,\quad h = 0.1

Step 1: Calculate k₁

k1=0.1(0+1)=0.1k_1 = 0.1(0 + 1) = 0.1

Step 2: Calculate k₂

k2=0.1(0.05+1.05)=0.11k_2 = 0.1(0.05 + 1.05) = 0.11

Step 3: Calculate k₃

k3=0.1(0.05+1.055)0.1105k_3 = 0.1(0.05 + 1.055) \approx 0.1105

Step 4: Calculate k₄

k4=0.1(0.1+1.1105)0.12105k_4 = 0.1(0.1 + 1.1105) \approx 0.12105

Step 5: Final calculation

y1=1+16(0.1+2(0.11)+2(0.1105)+0.12105)y_1 = 1 + \frac{1}{6}(0.1 + 2(0.11) + 2(0.1105) + 0.12105)

=1+16(0.66205)= 1 + \frac{1}{6}(0.66205)

1+0.11034=1.11034\approx 1 + 0.11034 = 1.11034

Final Answer (RK-4)

y(0.1)1.11034y(0.1) \approx 1.11034

Comparison (Important)

MethodAccuracy
EulerLow
Modified EulerMedium
RK-2Better
RK-4Highest

Important Points

  • RK methods में higher derivatives की जरूरत नहीं होती
  • RK-4 सबसे ज्यादा accurate और widely used है
  • programming और scientific computation में standard method है

Conclusion

Runge-Kutta Methods powerful numerical techniques हैं जो:

  • high accuracy प्रदान करते हैं
  • complex differential equations को solve करते हैं
  • practical और exam दोनों में बहुत important हैं

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top