0% found this document useful (0 votes)
219 views3 pages

Solve Numerical Differential Equation Using Euler Method Calculator

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views3 pages

Solve Numerical Differential Equation Using Euler Method Calculator

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

2/5/2021 Solve numerical differential equation using Euler method calculator

We use cookies to improve your experience on our site and to show you relevant advertising. By browsing this website, you agree to our use of cookies. Learn more Accept

Hire us Support us Select Language


I want to sell my website www.AtoZmath.com with complete code
Powered by Translate

Try our new - Enter problem or search problem


Home What's new College Algebra Games Feedback About us
Algebra Matrix & Vector Numerical Methods Statistical Methods Operation Research Word Problems Calculus Geometry Pre-Algebra

Home > Numerical methods calculators > Numerical differential equation using Euler method calculator

Method and examples


Solve numerical differential equation using Euler method
y' = x+y

x0 = 0 and y0 = 1

xn = 0.4

Step value (h) = 0.1

Find 4. Runge-Kutta 4 method


Find Random New

Decimal Place = 6
Solution Help Input functions

Solution will be displayed step by step (In 3 parts)


Solution
Find y(0.4) for y′ = x + y, y(0) = 1, with step length 0.1 using Runge-Kutta 4 method

Solution:
Given y′ = x + y, y(0) = 1, h = 0.1, y(0.4) = ?

Forth order R-K method

( )
k 1 = hf x 0, y 0 = (0.1)f(0, 1) = (0.1) ⋅ (1) = 0.1

(
k 2 = hf x 0 +
h
,y +
2 0 2
k1
) = (0.1)f(0.05, 1.05) = (0.1) ⋅ (1.1) = 0.11

(
k 3 = hf x 0 +
h
,y +
2 0 2
k2
) = (0.1)f(0.05, 1.055) = (0.1) ⋅ (1.105) = 0.1105

( )
k 4 = hf x 0 + h, y 0 + k 3 = (0.1)f(0.1, 1.1105) = (0.1) ⋅ (1.2105) = 0.12105

1
y1 = y0 + (
k + 2k 2 + 2k 3 + k 4
6 1 )
1
y1 = 1 + [0.1 + 2(0.11) + 2(0.1105) + (0.12105)]
6

y 1 = 1.110342

∴ y(0.1) = 1.110342

( ) ( )
Again taking x 1, y 1 in place of x 0, y 0 and repeat the process

( )
k 1 = hf x 1, y 1 = (0.1)f(0.1, 1.110342) = (0.1) ⋅ (1.210342) = 0.121034

(
k 2 = hf x 1 +
h
,y +
2 1 2
k1
) = (0.1)f(0.15, 1.170859) = (0.1) ⋅ (1.320859) = 0.132086

(
k 3 = hf x 1 +
h
,y +
2 1 2
k2
) = (0.1)f(0.15, 1.176385) = (0.1) ⋅ (1.326385) = 0.132638

( )
k 4 = hf x 1 + h, y 1 + k 3 = (0.1)f(0.2, 1.24298) = (0.1) ⋅ (1.44298) = 0.144298

Privacy - Terms

https://atozmath.com/CONM/RungeKutta.aspx?q=euler&q1=x%2by%600%601%600.4%600.1%60rk4&dp=6&do=1#PrevPart 1/3
2/5/2021 Solve numerical differential equation using Euler method calculator
1
y2 = y1 + (
k + 2k 2 + 2k 3 + k 4
6 1 )
1
y 2 = 1.110342 + [0.121034 + 2(0.132086) + 2(0.132638) + (0.144298)]
6

y 2 = 1.242805

∴ y(0.2) = 1.242805

( ) ( )
Again taking x 2, y 2 in place of x 0, y 0 and repeat the process

( )
k 1 = hf x 2, y 2 = (0.1)f(0.2, 1.242805) = (0.1) ⋅ (1.442805) = 0.144281

(
k 2 = hf x 2 +
h
2
, y2 +
k1
2 ) = (0.1)f(0.25, 1.314945) = (0.1) ⋅ (1.564945) = 0.156495

(
k 3 = hf x 2 +
h
2
, y2 +
k2
2 ) = (0.1)f(0.25, 1.321052) = (0.1) ⋅ (1.571052) = 0.157105

( )
k 4 = hf x 2 + h, y 2 + k 3 = (0.1)f(0.3, 1.39991) = (0.1) ⋅ (1.69991) = 0.169991

1
y3 = y2 +
6 (k1 + 2k2 + 2k3 + k4 )
1
y 3 = 1.242805 + [0.144281 + 2(0.156495) + 2(0.157105) + (0.169991)]
6

y 3 = 1.399717

∴ y(0.3) = 1.399717

( ) ( )
Again taking x 3, y 3 in place of x 0, y 0 and repeat the process

( )
k 1 = hf x 3, y 3 = (0.1)f(0.3, 1.399717) = (0.1) ⋅ (1.699717) = 0.169972

(
k 2 = hf x 3 +
h
2
, y3 +
k1
2 ) = (0.1)f(0.35, 1.484703) = (0.1) ⋅ (1.834703) = 0.18347

(
k 3 = hf x 3 +
h
2
, y3 +
k2
2 ) = (0.1)f(0.35, 1.491452) = (0.1) ⋅ (1.841452) = 0.184145

( )
k 4 = hf x 3 + h, y 3 + k 3 = (0.1)f(0.4, 1.583862) = (0.1) ⋅ (1.983862) = 0.198386

1
y4 = y3 + (
k + 2k 2 + 2k 3 + k 4
6 1 )
1
y 4 = 1.399717 + [0.169972 + 2(0.18347) + 2(0.184145) + (0.198386)]
6

y 4 = 1.583648

∴ y(0.4) = 1.583648

∴ y(0.4) = 1.583648

Solution provided by AtoZmath.com

Any wrong solution, solution improvement, feedback then Submit Here

Want to know about AtoZmath.com and me

Privacy - Terms

https://atozmath.com/CONM/RungeKutta.aspx?q=euler&q1=x%2by%600%601%600.4%600.1%60rk4&dp=6&do=1#PrevPart 2/3
2/5/2021 Solve numerical differential equation using Euler method calculator

Home What's new College Algebra Games Feedback About us

Copyright © 2020. All rights reserved. Terms, Privacy

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Privacy - Terms

https://atozmath.com/CONM/RungeKutta.aspx?q=euler&q1=x%2by%600%601%600.4%600.1%60rk4&dp=6&do=1#PrevPart 3/3

You might also like