Professor Murray

Professor Murray

Runge-Kutta & The Improved Euler Method

Slide Duration:

Table of Contents

Section 1: First-Order Equations
Linear Equations

1h 7m 21s

Intro
0:00
Lesson Objectives
0:19
How to Solve Linear Equations
2:54
Calculate the Integrating Factor
2:58
Changes the Left Side so We Can Integrate Both Sides
3:27
Solving Linear Equations
5:32
Further Notes
6:10
If P(x) is Negative
6:26
Leave Off the Constant
9:38
The C Is Important When Integrating Both Sides of the Equation
9:55
Example 1
10:29
Example 2
22:56
Example 3
36:12
Example 4
39:24
Example 5
44:10
Example 6
56:42
Separable Equations

35m 11s

Intro
0:00
Lesson Objectives
0:19
Some Equations Are Both Linear and Separable So You Can Use Either Technique to Solve Them
1:33
Important to Add C When You Do the Integration
2:27
Example 1
4:28
Example 2
10:45
Example 3
14:43
Example 4
19:21
Example 5
27:23
Slope & Direction Fields

1h 11m 36s

Intro
0:00
Lesson Objectives
0:20
If You Can Manipulate a Differential Equation Into a Certain Form, You Can Draw a Slope Field Also Known as a Direction Field
0:23
How You Do This
0:45
Solution Trajectories
2:49
Never Cross Each Other
3:44
General Solution to the Differential Equation
4:03
Use an Initial Condition to Find Which Solution Trajectory You Want
4:59
Example 1
6:52
Example 2
14:20
Example 3
26:36
Example 4
34:21
Example 5
46:09
Example 6
59:51
Applications, Modeling, & Word Problems of First-Order Equations

1h 5m 19s

Intro
0:00
Lesson Overview
0:38
Mixing
1:00
Population
2:49
Finance
3:22
Set Variables
4:39
Write Differential Equation
6:29
Solve It
10:54
Answer Questions
11:47
Example 1
13:29
Example 2
24:53
Example 3
32:13
Example 4
42:46
Example 5
55:05
Autonomous Equations & Phase Plane Analysis

1h 1m 20s

Intro
0:00
Lesson Overview
0:18
Autonomous Differential Equations Have the Form y' = f(x)
0:21
Phase Plane Analysis
0:48
y' < 0
2:56
y' > 0
3:04
If we Perturb the Equilibrium Solutions
5:51
Equilibrium Solutions
7:44
Solutions Will Return to Stable Equilibria
8:06
Solutions Will Tend Away From Unstable Equilibria
9:32
Semistable Equilibria
10:59
Example 1
11:43
Example 2
15:50
Example 3
28:27
Example 4
31:35
Example 5
43:03
Example 6
49:01
Section 2: Second-Order Equations
Distinct Roots of Second Order Equations

28m 44s

Intro
0:00
Lesson Overview
0:36
Linear Means
0:50
Second-Order
1:15
Homogeneous
1:30
Constant Coefficient
1:55
Solve the Characteristic Equation
2:33
Roots r1 and r2
3:43
To Find c1 and c2, Use Initial Conditions
4:50
Example 1
5:46
Example 2
8:20
Example 3
16:20
Example 4
18:26
Example 5
23:52
Complex Roots of Second Order Equations

31m 49s

Intro
0:00
Lesson Overview
0:15
Sometimes The Characteristic Equation Has Complex Roots
1:12
Example 1
3:21
Example 2
7:42
Example 3
15:25
Example 4
18:59
Example 5
27:52
Repeated Roots & Reduction of Order

43m 2s

Intro
0:00
Lesson Overview
0:23
If the Characteristic Equation Has a Double Root
1:46
Reduction of Order
3:10
Example 1
7:23
Example 2
9:20
Example 3
14:12
Example 4
31:49
Example 5
33:21
Undetermined Coefficients of Inhomogeneous Equations

50m 1s

Intro
0:00
Lesson Overview
0:11
Inhomogeneous Equation Means the Right Hand Side is Not 0 Anymore
0:21
First Solve the Homogeneous Equation
1:04
Find a Particular Solution to the Inhomogeneous Equation Using Undetermined Coefficients
2:03
g(t) vs. Guess for ypar
2:42
If Any Term of Your Guess for ypar Looks Like Any Term of yhom
5:07
Example 1
7:54
Example 2
15:25
Example 3
23:45
Example 4
33:35
Example 5
42:57
Inhomogeneous Equations: Variation of Parameters

49m 22s

Intro
0:00
Lesson Overview
0:31
Inhomogeneous vs. Homogeneous
0:47
First Solve the Homogeneous Equation
1:17
Notice There is No Coefficient in Front of y''
1:27
Find a Particular Solution to the Inhomogeneous Equation Using Variation of Parameters
2:32
How to Solve
4:33
Hint on Solving the System
5:23
Example 1
7:27
Example 2
17:46
Example 3
23:14
Example 4
31:49
Example 5
36:00
Section 3: Series Solutions
Review of Power Series

57m 38s

Intro
0:00
Lesson Overview
0:36
Taylor Series Expansion
0:37
Maclaurin Series
2:36
Common Maclaurin Series to Remember From Calculus
3:35
Radius of Convergence
7:58
Ratio Test
12:05
Example 1
15:18
Example 2
20:02
Example 3
27:32
Example 4
39:33
Example 5
45:42
Series Solutions Near an Ordinary Point

1h 20m 28s

Intro
0:00
Lesson Overview
0:49
Guess a Power Series Solution and Calculate Its Derivatives, Example 1
1:03
Guess a Power Series Solution and Calculate Its Derivatives, Example 2
3:14
Combine the Series
5:00
Match Exponents on x By Shifting Indices
5:11
Match Starting Indices By Pulling Out Initial Terms
5:51
Find a Recurrence Relation on the Coefficients
7:09
Example 1
7:46
Example 2
19:10
Example 3
29:57
Example 4
41:46
Example 5
57:23
Example 6
1:09:12
Euler Equations

24m 42s

Intro
0:00
Lesson Overview
0:11
Euler Equation
0:15
Real, Distinct Roots
2:22
Real, Repeated Roots
2:37
Complex Roots
2:49
Example 1
3:51
Example 2
6:20
Example 3
8:27
Example 4
13:04
Example 5
15:31
Example 6
18:31
Series Solutions

1h 26m 17s

Intro
0:00
Lesson Overview
0:13
Singular Point
1:17
Definition: Pole of Order n
1:58
Pole Of Order n
2:04
Regular Singular Point
3:25
Solving Around Regular Singular Points
7:08
Indical Equation
7:30
If the Difference Between the Roots is An Integer
8:06
If the Difference Between the Roots is Not An Integer
8:29
Example 1
8:47
Example 2
14:57
Example 3
25:40
Example 4
47:23
Example 5
1:09:01
Section 4: Laplace Transform
Laplace Transforms

41m 52s

Intro
0:00
Lesson Overview
0:09
Laplace Transform of a Function f(t)
0:18
Laplace Transform is Linear
1:04
Example 1
1:43
Example 2
18:30
Example 3
22:06
Example 4
28:27
Example 5
33:54
Inverse Laplace Transforms

47m 5s

Intro
0:00
Lesson Overview
0:09
Laplace Transform L{f}
0:13
Run Partial Fractions
0:24
Common Laplace Transforms
1:20
Example 1
3:24
Example 2
9:55
Example 3
14:49
Example 4
22:03
Example 5
33:51
Laplace Transform Initial Value Problems

45m 15s

Intro
0:00
Lesson Overview
0:12
Start With Initial Value Problem
0:14
Take the Laplace Transform of Both Sides of the Differential Equation
0:37
Plug in the Identities
1:20
Take the Inverse Laplace Transform to Find y
2:40
Example 1
4:15
Example 2
11:30
Example 3
17:59
Example 4
24:51
Example 5
36:05
Section 5: Review of Linear Algebra
Review of Linear Algebra

57m 30s

Intro
0:00
Lesson Overview
0:41
Matrix
0:54
Determinants
4:45
3x3 Determinants
5:08
Eigenvalues and Eigenvectors
7:01
Eigenvector
7:48
Eigenvalue
7:54
Lesson Overview
8:17
Characteristic Polynomial
8:47
Find Corresponding Eigenvector
9:03
Example 1
10:19
Example 2
16:49
Example 3
20:52
Example 4
25:34
Example 5
35:05
Section 6: Systems of Equations
Distinct Real Eigenvalues

59m 26s

Intro
0:00
Lesson Overview
1:11
How to Solve Systems
2:48
Find the Eigenvalues and Their Corresponding Eigenvectors
2:50
General Solution
4:30
Use Initial Conditions to Find c1 and c2
4:57
Graphing the Solutions
5:20
Solution Trajectories Tend Towards 0 or ∞ Depending on Whether r1 or r2 are Positive or Negative
6:35
Solution Trajectories Tend Towards the Axis Spanned by the Eigenvector Corresponding to the Larger Eigenvalue
7:27
Example 1
9:05
Example 2
21:06
Example 3
26:38
Example 4
36:40
Example 5
43:26
Example 6
51:33
Complex Eigenvalues

1h 3m 54s

Intro
0:00
Lesson Overview
0:47
Recall That to Solve the System of Linear Differential Equations, We find the Eigenvalues and Eigenvectors
0:52
If the Eigenvalues are Complex, Then They Will Occur in Conjugate Pairs
1:13
Expanding Complex Solutions
2:55
Euler's Formula
2:56
Multiply This Into the Eigenvector, and Separate Into Real and Imaginary Parts
1:18
Graphing Solutions From Complex Eigenvalues
5:34
Example 1
9:03
Example 2
20:48
Example 3
28:34
Example 4
41:28
Example 5
51:21
Repeated Eigenvalues

45m 17s

Intro
0:00
Lesson Overview
0:44
If the Characteristic Equation Has a Repeated Root, Then We First Find the Corresponding Eigenvector
1:14
Find the Generalized Eigenvector
1:25
Solutions from Repeated Eigenvalues
2:22
Form the Two Principal Solutions and the Two General Solution
2:23
Use Initial Conditions to Solve for c1 and c2
3:41
Graphing the Solutions
3:53
Example 1
8:10
Example 2
16:24
Example 3
23:25
Example 4
31:04
Example 5
38:17
Section 7: Inhomogeneous Systems
Undetermined Coefficients for Inhomogeneous Systems

43m 37s

Intro
0:00
Lesson Overview
0:35
First Solve the Corresponding Homogeneous System x'=Ax
0:37
Solving the Inhomogeneous System
2:32
Look for a Single Particular Solution xpar to the Inhomogeneous System
2:36
Plug the Guess Into the System and Solve for the Coefficients
3:27
Add the Homogeneous Solution and the Particular Solution to Get the General Solution
3:52
Example 1
4:49
Example 2
9:30
Example 3
15:54
Example 4
20:39
Example 5
29:43
Example 6
37:41
Variation of Parameters for Inhomogeneous Systems

1h 8m 12s

Intro
0:00
Lesson Overview
0:37
Find Two Solutions to the Homogeneous System
2:04
Look for a Single Particular Solution xpar to the inhomogeneous system as follows
2:59
Solutions by Variation of Parameters
3:35
General Solution and Matrix Inversion
6:35
General Solution
6:41
Hint for Finding Ψ-1
6:58
Example 1
8:13
Example 2
16:23
Example 3
32:23
Example 4
37:34
Example 5
49:00
Section 8: Numerical Techniques
Euler's Method

45m 30s

Intro
0:00
Lesson Overview
0:32
Euler's Method is a Way to Find Numerical Approximations for Initial Value Problems That We Cannot Solve Analytically
0:34
Based on Drawing Lines Along Slopes in a Direction Field
1:18
Formulas for Euler's Method
1:57
Example 1
4:47
Example 2
14:45
Example 3
24:03
Example 4
33:01
Example 5
37:55
Runge-Kutta & The Improved Euler Method

41m 4s

Intro
0:00
Lesson Overview
0:43
Runge-Kutta is Know as the Improved Euler Method
0:46
More Sophisticated Than Euler's Method
1:09
It is the Fundamental Algorithm Used in Most Professional Software to Solve Differential Equations
1:16
Order 2 Runge-Kutta Algorithm
1:45
Runge-Kutta Order 2 Algorithm
2:09
Example 1
4:57
Example 2
10:57
Example 3
19:45
Example 4
24:35
Example 5
31:39
Section 9: Partial Differential Equations
Review of Partial Derivatives

38m 22s

Intro
0:00
Lesson Overview
1:04
Partial Derivative of u with respect to x
1:37
Geometrically, ux Represents the Slope As You Walk in the x-direction on the Surface
2:47
Computing Partial Derivatives
3:46
Algebraically, to Find ux You Treat The Other Variable t as a Constant and Take the Derivative with Respect to x
3:49
Second Partial Derivatives
4:16
Clairaut's Theorem Says that the Two 'Mixed Partials' Are Always Equal
5:21
Example 1
5:34
Example 2
7:40
Example 3
11:17
Example 4
14:23
Example 5
31:55
The Heat Equation

44m 40s

Intro
0:00
Lesson Overview
0:28
Partial Differential Equation
0:33
Most Common Ones
1:17
Boundary Value Problem
1:41
Common Partial Differential Equations
3:41
Heat Equation
4:04
Wave Equation
5:44
Laplace's Equation
7:50
Example 1
8:35
Example 2
14:21
Example 3
21:04
Example 4
25:54
Example 5
35:12
Separation of Variables

57m 44s

Intro
0:00
Lesson Overview
0:26
Separation of Variables is a Technique for Solving Some Partial Differential Equations
0:29
Separation of Variables
2:35
Try to Separate the Variables
2:38
If You Can, Then Both Sides Must Be Constant
2:52
Reorganize These Intro Two Ordinary Differential Equations
3:05
Example 1
4:41
Example 2
11:06
Example 3
18:30
Example 4
25:49
Example 5
32:53
Fourier Series

1h 24m 33s

Intro
0:00
Lesson Overview
0:38
Fourier Series
0:42
Find the Fourier Coefficients by the Formulas
2:05
Notes on Fourier Series
3:34
Formula Simplifies
3:35
Function Must be Periodic
4:23
Even and Odd Functions
5:37
Definition
5:45
Examples
6:03
Even and Odd Functions and Fourier Series
9:47
If f is Even
9:52
If f is Odd
11:29
Extending Functions
12:46
If We Want a Cosine Series
14:13
If We Wants a Sine Series
15:20
Example 1
17:39
Example 2
43:23
Example 3
51:14
Example 4
1:01:52
Example 5
1:11:53
Solution of the Heat Equation

47m 41s

Intro
0:00
Lesson Overview
0:22
Solving the Heat Equation
1:03
Procedure for the Heat Equation
3:29
Extend So That its Fourier Series Will Have Only Sines
3:57
Find the Fourier Series for f(x)
4:19
Example 1
5:21
Example 2
8:08
Example 3
17:42
Example 4
25:13
Example 5
28:53
Example 6
42:22
Loading...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Differential Equations
Bookmark & Share Embed

Share this knowledge with your friends!

Copy & Paste this embed code into your website’s HTML

Please ensure that your website editor is in text mode when you paste the code.
(In Wordpress, the mode button is on the top right corner.)
  ×
  • - Allow users to view the embedded video in full-size.
Since this lesson is not free, only the preview will appear on your website.
  • Discussion

  • Answer Engine

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Transcription

  • Related Books

Lecture Comments (7)

4 answers

Last reply by: Dr. William Murray
Fri Dec 5, 2014 10:25 AM

Post by Josh Winfield on December 2, 2014

It looks to me that the Euler's method is approximating the slope at fn(tn,yn) by (yn+1-yn)/h and rearranging for yn+1 and the R-K method is approximating the slope at fn and fn+1 by (yn+1-yn)/h solving for yn+1 then taking the average (2yn+h(k1+k2))/2. I havnt spent long on thinking about this but I cant quite see how it is better. I can kind of see how Euler is looking back so it can look forward and R-K is looking back and looking forward so it can see the middle but not quite crystal clear atm.

1 answer

Last reply by: Dr. William Murray
Fri Sep 6, 2013 10:46 AM

Post by Nitin Patwardhan on August 31, 2013

Why is y' equal to f(t,y)?

Runge-Kutta & The Improved Euler Method

Runge Kutta and the Improved Euler Method (PDF)

Runge-Kutta & The Improved Euler Method

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Lesson Overview 0:43
    • Runge-Kutta is Know as the Improved Euler Method
    • More Sophisticated Than Euler's Method
    • It is the Fundamental Algorithm Used in Most Professional Software to Solve Differential Equations
    • Order 2 Runge-Kutta Algorithm
  • Runge-Kutta Order 2 Algorithm 2:09
  • Example 1 4:57
  • Example 2 10:57
  • Example 3 19:45
  • Example 4 24:35
  • Example 5 31:39

Transcription: Runge-Kutta & The Improved Euler Method

Hi and welcome back to the differential equations lectures here on educator.com .0000

My name is well Murray, and we are studying numerical techniques right now, we are about to learn about the Runge-Kutta method.0004

Now, this is also known as the improved Euler method so, you might also, see it called the improved Euler method this is to be distinguished from the sort of basic Euler method and we had another whole lecture on the basic Euler method.0012

That is the previous lecture here on educator.com so, if you are looking for the basic Euler method and that is the previous lecture if you are looking for the improved Euler method, that is this lecture right here keep watching so, find out what that is all about.0027

The Runge-Kutta method, also known as the improved Euler method is a way to find numerical approximations for initial value problems that we cannot solve analytically.0043

So, the idea here is that we have some differential equation and some initial condition and we cannot solve it analytically so, we use these techniques of numerical approximation instead.0056

The Runge-Kutta method is more sophisticated than Euler’s method that is what it sometimes called the improved Euler method, it is actually the method that is built into the programming packages.0069

If you use commercial software to solve differential equations so, it is things like Mathematics or Matlab, then the when you solve differential equations numerically on those software packages still be running some version of the Runge-Kutta method in the background.0080

So, we are going to learn the order to run Dakota method , that wins it is already pretty complicated what the F professional software packages uses something called the order for even more sophisticated methods and that is a little too collocated for us to go into by hand.0100

But we will learn the order to run Dakota method annual see him get a flavor of how it works.0120

So, let us check that out and get down systems actual algorithms so, you start with it an initial value problem you will have Y′ of T = some function of T and Y .0126

They also, have an initial value Y T = Y not and shall choose a step size and usually when you are studying differential equations the step size will be given to you it would not be your own choice to choose the step size.0140

So, that will usually be given of course in real life you get to choose your own step size depending on how accurate of an answer you want and how much work you want to do.0155

So, you start at T0Y0 and you make iterative steps to me fill in this the T N+ 1 it is just the same as it was for the Euler method it is just TN +8 so, just stepping over in horizontal steps of size H0164

Y MT TN +1 so, this is Y and + 1 Y N + 1 is the same as Y TN +1 now, this is much more complicated than it was for Euler’s method so, let me show the steps for this carefully.0184

It is Y N+ now, H instead of just H x F of TN YN that was the Euler’s method formula its H x K-1 + K2 over 2 see what they did this is an average because it is and what is it an average out.0205

Let me explain what these that this K-1 and K2 are so, K-1 is just F of T and Y so, that is what we had that is the same as it was for Euler’s method the K2 is different K2 is F of now, for TU plug-in TN + H and for Y you plug-in Y and + H x K1.0223

So, that is quite a bit more complicated so, what will do each time is will calculate this will calculate this K1 and will calculate this K2 and plug them back into this formula here and will find Y N+1.0247

So, and will step along will find T1 and Y 1 in T2 and Y 2 and keep going along by these little steps until you arrive at the value of T that you want to as that you want to use for your approximation of Y of T.0265

So, we will see how that works out it is a little complicated but it is it is it is not sort of theoretically difficult is just a matter sort of following these formulas through.0283

So, let us try that out in a first example really is run Dakota was step size H = .01 to estimate Y .01 in the initial value problem Y′ = 1+ T - Y and Y0 = 1 so, let me remind you of the Runge-Kutta formulas.0295

They run Dakota formula said TN + 1 = TN + H and Y N+1 = Y N+ H x K-1 + K2 /2 and K-1 was F T and YN and K2 that is the complicated 1 that is F of TN + H and Y N+ H K1 .0318

So, let us go ahead and try to figure those out here we have this the F is this function right here it is always Y′ = F of TY so, F of TY must be 1 + T - T - Y and we get our T01Y0 from the initial condition .0369

T0 is 0 and Y0 = 1 and so, now, let us start calculating T1 is T0 + H T0+0.1 which is 0.1 and out to find Y 1 we are to need to find these this K1 and K2 so, what is worked that out K1 is F of T0Y0 so, that is F of 0, 1 which is 1+0-1 which is 0 very convenient.0393

K2 is F TN + H so, that is F0.1 and YN + H x K1 so, YN was Y061 + H is 0.1 and K1 is all that is just 0 .0433

So, this is F of 0.1 and 1+0 so, just 1 and so, that is 1 + T - Y so, 1 +0.1 T -1 which is .1 so, that is our K-1 and K2 and now, we can find our Y1 is Y0 + H x K-1 + K2 /2 which is worth Y0Y0 was 1 + H0.1 .0458

Now, my K-1 was 0 my K2 was 0.1 /2 so, that is 0.1 / 2 is .05×.1 is .005 and so, I got 1 + that and so, he got 1.005.0510

So, my T1Y1 are 0.1 that comes from there and 1.005 and since I have already arrived at the value of T that I was looking for the stop and say that is my estimate for Y1 .005.0537

So, let me go back and recap here first I just copied the formulas from the beginning of the lecture that is what we found out at the beginning of the lecture for our new formulas, for TN + 1YN + 1 in terms of K-1 and K2 .0562

Now, the F comes from the differential equation that is F of T Y there my T0Y0, from the initial condition and my T1 is always just T0 + H so, that is 0.1 and then to find Y 1 I need my values of case so, unplugging everything into the appropriate F.0579

So, that is my K-1 that is my K2 playing everything into this formula for K2 that F is 0.11 and number this was my F so, it is 1 + T - Y1 +0.1-1 simplifies down to .1 so, now, I use my formula for Y 1 so, I get Y0 + H x the average of K-1 and K2 drop in what I figured out for my K2 and my K-1 was just 0 .0603

So, that is without 0 and out .1 come from work out there is a check I get Y 1 is 1.005 and since I already arrived at the value of T that I was asked for I got a Y value as an approximation.0636

So, example 2 works in any keep going with the previous example so, you definitely want to have watched example 1 before you try out this example is working to use our answer from example 1.0655

Reuse run Dakota was step size H = .01 0.1 to estimate Y .2 in the initial value problem is the same initial value problem we had for example 1 so, let me record first of all the formulas for Runge-Kutta our TN + 1 = TN + H our YN +1 = Y N+ H x this average K1 + K2 over 2 where the K-1is are given by K1 is just F of TN YN and K2 is more complicated F of TN + H T x T sub N + H and YN + H x case of 1 .0668

So, we are going to use our example from our answer from example 1 so, let me remind you what the answer from example 1 was if you have just watched it probably worth going back and looking at example 1.0725

Example 1 we figured out that T1 was 0.1 and our Y1 we figure this out before was 1.005 so, much as calculating those are coming from example 1 and so, let us go ahead and take it from there.0743

So, T 2 is T1 + H T1 0.1 H is 0.1 so, T2 0.2 and Y 2 our Y2 is before figure out Y to me go ahead and figure out what the case should be so, I will find K1 is F of TN Y Nthat is F of T1Y1 which is F of 0.1 and 1.005 .0758

Getting those numbers from example 1 and so, now, my F is this function right here 1 + T - Y so, 1 +0.1-1.005 and if I simplify that down it turns into 0.095 .095 so, now, I need to find my K2 its F of TN + H so, .1+ H is is .2 0.2 .0793

And now, Y N where was my Y N, that is 1.005 that is Y 1 + H0.1 x K-1 is 0.95 so, let us simplify that down in 2.095.0829

Sorry I put my decimal point the wrong place it is 0.95 .095 and so, if I multiply by .1 I get 2 0s .0095 and if we add that to 1.005 forget F of 0.2 and then 1.005 and .0095 so, 1.0145.0849

Now, my F function that is F right there so, it is 1 + the T value .2 - the Y value 1.0145 and so, that simplifies down .2-.0145 is .0 .1855 .0881

Sounds K2 and now, going to use my formula here to find Y2 Y2 is Y N Y 1 + H x K-1 + K2 /2 now, where is my Y1 there is 1.005 1.005+ my H is 0.1 K-1 was .095 and K2 is 0.1855 /2 .0910

And now, those are a bunch of decimals that I can just go ahead and throw into my calculator .095+ .1855÷2 x .1+1.005 and I see that when this all settles down I get 1.019025 .0950

And I can stop there the reason I can stop is because I have gotten to achieve value of 0.2 which is the goal T value that we are asked for the problem so, stop there and summarize T2Y2Y is T value is 0.2 and the Y value was 1.019025 .0985

So, that Y value right there is my estimate for Y of 0.2 and that is what we are asked for in this problem so, we remind you how all the steps worked out there.1011

I start out with the generic Runge-Kutta order to formulas also, known as approved Euler’s portals such as copies formulas overfill beginning of the lecture and those K1 and K2is are also, part of those formulas from the beginning of today's lecture .1029

This is the same initial value problem that we had for example 1 we did the first step of it in example 1 we found T1 and Y 1 so, example 2 here this can keep going with those values and so, I get my T2 is T1 + H which is 0.2 .1046

I am going to find K1 and K2 using my F function which I get from the differential equation so, there that is 1 + T - Y so, I plug-in T1 and Y 1 get .095 for K-1 for K2 I have apply my F function here .1068

I am reading off this formula right here and then plug in all the values TN + H there is my Y1 there is my H there is my K1 those simplify down 2.2 and 1.0145 and now, again using the F function appear so, I get 1 + T - Y simplifies down 2.1855 .1092

And then I played back into my main Runge-Kutta formula here sets run getting this line , and I just drop in all the numbers my Y1 my H and K1 and K2 worked out all those decimals on my calculator got 1.019025 and so, my T2 was 0.2 and that is my Y to write there and that is what I am stopping in the reason I am stopping there is because I have a Y .2 in the requirement for the problem.1118

So, since I party got into T = .2 then I take that Y value and I offer it as my approximation and as my final answer to that problem so, keep this problem in mind and also, keep this answer in mind because in the next example over to do is resolve this differential equation analytically and never go to compare our answer from the analytic solution with the estimate that we just made using the Runge-Kutta method.1153

So, let us see how those 2 answers compare so, example 3 we are to solve the initial value problem Y′ = 1 +2 - Y and Y0 = 1.1181

Resolve this initial value problem analytically in order to calculate how Y of .2 and really see how close the answer is to the estimate that we use in the previous example.1193

So, I cannot can have to do very much work in this problem because I have done this 1 before this is the same initial value problem that we did for example 2in the previous lecture on Euler’s methods.1208

So, if you do not remember that what you might want to do is go back and check out 2 to from the previous lecture on Euler’s methods so, from the Euler’s method lecture and we found the answer analytically there.1222

Remind you what was we found the answer was Y = C+E -T so, that is coming from the previous lecture not working that out on the spot here but if you have no idea where that is coming from just check out the previous lecture is example 2 on the Euler’s method lecture.1248

And so, now, we are going to compute Y of 0.25 0.2 = that if T0 .2+ E -0.2 and try that to signify that of course that is been recently used by calculator for 2130 So, 0.2+ E -.2 and I see I get 1.01873 that is approximation there so, that is my guess for Y0 .2 and that is really the answer given by an analytic solutions. 2203 They should think of that is essentially being an exact solution now, we also, solve this equation using the Runge-Kutta method and that was in example 2 of this lecture.1267

So, example 2 of this lecture so, that should be just above this 1 of this lecture we used the Runge-Kutta method to estimate Y of 0.2 and I am just a copy of the answer that we had back there got so, 1.019025 .1336

Sure that I am copying the right number there now, got 1.019025 using the Runge-Kutta estimation technique and we now, know, that the true solution is 1.0187.1370

So, let me just subtract those to show you how close we got there .0187 not cannot bother keeping track of decimal places after that because I see that is not 190 - hundred and 87 is 3 so, .0003 is our error there.1388

0.0003 is our error so, what you should really see here the new lesson you should take away from this is that the Runge-Kutta estimation technique is extremely accurate the true solution is 1.0187 our Runge-Kutta solution we figured out the previous example is 1.0190.1416

Very close the difference between those two answers is 0.0003 that is 1000 thousand 10,003 10,000 off from each other so, those answers are really very close so, even though it is a lot of work to calculate that Runge-Kutta solution the payoff is we get an answer that is very close to being the true solution is extremely accurate.1443

So, let us do a little more practice with calculating some Runge-Kutta answers in example 4 we are going to use Runge-Kutta was step size H = .0 .1 to estimate Y of 0.1 in the initial value problem Y′ = T-² + Y ² and Y001.1467

So, let me remind you of the Runge-Kutta formulas we have TN + 1 = TN + H and Y N+ 1 = Y N+ H + H x K1 + K2 over to this copying these back from the first slide of this as was the second slide of this lecture .1490

So, if you have not looked at the first couple size of this lecture that is where I am getting these formulas from where the K1 was F TN Y N and the K2 is as of TN + H and Y N+ H x K-1 .1525

So, let us apply those in this case Our F of TY that is just what you get from the differential equation so, that is T-² + Y ² and we start off at the initial condition that we are given so, that is Y 0s equal 1 so, Y01 start with T0, T0 = 0 and Y0 = 1 .1551

So, let me go ahead and plug all those numbers into the Runge-Kutta formulas so, TN +1 T1 is just T0 + H and that 0+0.1 so, that is 0.1 and now, I want to find Y 1 but in order to do that I need to know, my K1 and my K2 .1582

So, I got a fine K1 is F of TN Y N so, that is aft of T0Y001 and so, that is 0 ² +1 ² that is my F function 0 ² +1 ² is 1 my K2 is F of TN + H so, that is 0.10+.1 and Y N is 1 + H is .01 x K-1 is 1 so, that is 0.1 ² + now, 1 +.1 is 1.1 ² .1606

So, that is myself little more space here 0.01+1.21 so, that is 1.2 to select my K2 and out my Y1 is Y0 + H x K1 + K2 /2 now, my Y0 there it is this 1 by H is still 0.1 my K1 is 1 my K2 is 1.22 over 2 .1664

And if I just worked that out this 1 point this is 2.22 over 270.1×1.11 and so, that is .111 & get 1.111 .1710

And I can stop here because I got a T 1 of 0.1 I got a Y1 1.111 which is the T value is the T value those asked for the prompt for the problem so, stop there and summarize T1Y1 = 0.1 and 1.111 and so, that 1.111 that is my estimate for Y of 0.1.1729

So, that is what I would offer is my answer to the problem so, may I remind you where everything came from there for so, I just copy down these equations for the Runge-Kutta method to copy those down from the initial slide of the lecture 2nd slide lecture .1762

Then I identify what my F of T Y was that is just dysfunction that that we had for Y′ and then I identified T0 Y0 that came from the initial condition here and I started running through the equations.1778

T1 is T0 + H we are that is my H here so, that 0.1 my K1is F01 so, that is 0 ² +1 ² my K2 is F of this more complicated expression of getting that from up here by the way and I filled in all the numbers there so, that is T1 that is Y 0 that is H and that is K1 .1796

Filled in all those numbers get and plug it into my F function T² + Y ² simplify that down to 1.22 and finally use this YN +1 formula so, Y 0+ H x K1 + K2 over 2 there is Y 0 there is H there is K1 there is K2 and then I justify the decimals down to get 1.111.1825

So, my T1 and Y1 there is T1 came from their there is my Y1 and in a stop there and the reason I am been a stop is because I was asked to estimate Y of 0.1 and so, I am going to give my Y 1 as my estimate for Y of 0.11853

The end of this example we are going to use these this same initial value problem and the same computations as the first step of the next example 5 so, hang onto these numbers and can be the same initial value problem will take it 1 more step in example 5 .1876

So, in example 5 reuse Runge-Kutta was step size H = 0.1 to estimate Y in 0.2 in the initial value problem Y′ = T² + Y ² and Y 0s equal 1.1895

Now, once you remember this is the same initial value problem that we studied in example 4 so, we are going to use our answer from example 4 to solve this if you have not just watched example 4 just go back and check that out and you will see where we are getting our starting point for this for this example 5 .1914

So, let me remind you of our Runge-Kutta equations TN + 1 = TN + H YN +1 = Y N+ H x K1 + K2 /2and my K-1 = F of TN YN.1934

My K2 = TN + H and Y N+ H x K1 so, we are going to run this algorithm for this initial value problem but we party did the first step back in example 4.1966

So, go ahead and copy down the answers we had from example 4 might calculate those from scratch if you want to see where they came from just go back and watch example for you will see everything there.1988

So, what we had there is T1 we already figured it out back in example 4 T1 was 0.1 and our Y1 figure out last time was 1.111 .2000

So, really use those to take this out 1 more step so, our T2 is T1 + H so, that is 0.2 find my K1 K2 so, K1 is F of TN Y is that 0.1 and 1.111 now, my F function is given by the differential equation right here T² + Y ² that is F rate there .2015

And so, this is point .1 ² +1.111 ² and I do not think I want to do that plug that into my calculator so, .1 ² +1.111 ² is 1.244321 .2046

All say that as a number in my calculator K2 is F of TN + H so, 0.2 and now, my YN that is Y once a 1.111+ H is 0.1 x K-1 which is 1.244321 .2068

So, this is F of 0.2 and do some calculations right there so, looks like 1.235 here so, about 1.235 here and if I plug that into F I got .2 ² +1.235 ² .2097

And again I am going to calculate that out on my calculator and I see I get 1.566 for my K2 number ready to drop all those numbers and my formula for YN +1 find myself a Y2 is Y 1 + H x K1 + K2 over 2 and so, my Y 1 that is 1.111111.2129

H is still 0.1 and my K1 is 1.244 my K2 is 1.566 got all those numbers saved in my calculator now, and now, I am just going to simplify the decimals of them definitely do that on my calculator .2171

So, + 1.244321÷2 x .1+1.111 so, what I am getting on my calculator is 1.25153, in there some more decimal places after that but let me summarize here.2197

T2Y2 according to what we just figured out where is T2 right there, Y2 is right there so, T2 is 0.2 and Y2 is 1.25153.2231

And that is my answer as my estimate for Y of 0.2 and that is what we are being asked for the problem check this back out so, that is that means I am time of the problem below me go ahead and go back and make sure that all the steps are totally clear there.2249

We started out with the generic Runge-Kutta formulas copy those down from the second slide a lecture TN + 1YN +1 and K1 K2 complicated but not too bad and remember that this is the same differential equation we had for example 4.2272

We already did the first step of Runge-Kutta in example 4 so, that is what I am doing right here is just taking my answers from example 4 back watch example 4 and see where they came from and they we are to run with those answers and run 1 more step to get to get 2.2 .2289

So, T2 is just T1 +8 that is 0.2 and then I found K1 K2 using these formulas here K1 K2 and I plug in all the values that is T1 that is Y 1 that is T1 + H and that is Y 1 that was my H and this was K1.2311

And then to calculate F of those values running T² + Y ² so, that is Y doing .1 ² +1.111 ² and here I am doing.2 ² +1.235 ² .2340

So, calculate out those decimals and I get K1 K2 the drop those in the formula for Y 2 drop those in right there multiplied by Hs 0.1 and I still have my Y1 so, there is Y 1 there is H run using this formula right here to figure out Y 2 .2354

Drop in all those decimals and I justify those decimals of my calculator I did not think there is any reason to do that on the screen.2378

So, we get 1.25153 that is my T2 is 0.2 my Y2 is 1.25153 and so, since I have gotten to the value of T that I was asked to find in the in a prompt that are rather that I was asked to find my estimate at I am just to take the Y value at that point and offer that as my estimate of Y is 0.2.2387

So, my final estimate there is 1.25153 since the end of this lecture on Runge-Kutta order 2 techniques also, known as the improved Euler’s method if you seen it called that maybe in a class or in a different textbook.2418

That also, wraps up our chapter on numerical techniques when you cannot solve the differential equation analytically you try to use 1 of these numerical techniques Euler’s method or Runge-Kutta methods.2435

So, that wraps up this chapter and that puts another chapter of differential equations into the books so, I really appreciate your watching.2447

You have been watching the differential equations lecture here on educator.com. My name is Will Murray, thanks for joining us, bye bye.2457

Educator®

Please sign in to participate in this lecture discussion.

Resetting Your Password?
OR

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Membership Overview

  • Available 24/7. Unlimited Access to Our Entire Library.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lecture slides for taking notes.
  • Track your course viewing progress.
  • Accessible anytime, anywhere with our Android and iOS apps.