Numerical Methods Flashcards

1
Q

Euler method use

A

Approximates the solution to a differential equation by finding a point on the y = f(x) solution curve and following the gradient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Euler method formula for point (xr, yr) and Δx h

A

y ≈ y + h(dy/dx)
r+1 r r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Midpoint method use

A

Finds a better approximation to a differential equation than Euler’s method by finding the gradient at the midpoint of the points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Midpoint method formula for (x ,y ) and Δx h
r-1 r-1

A

y ≈ y + 2h(dy/dx)
r+1 r-1 r

Can use Euler’s method for a second point to find (dy/dx)
r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Second order DE derivation

A

Write (d^2y/dx^2) as ((dy/dx) - (dy/dx) )/h
r+1 r
Replace with formulae for each dy/dx similarly and simplify

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Second order DE formula for point (x ,y ) and Δx h
r-1 r-1

A

y ≈ 2y - y + h^2(d^2y/dx^2)
r+1 r r-1 r
Can use Euler’s method for a second point and then the midpoint formula
Could also use first and second derivatives to make simultaneous equations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Simpson’s rule formula for 2n strips of width h (n quadratics)

A

a
∫ f(x) dx ≈ h/3 ( y + 4 (y + y + … + y ) + 2(y + y + …
0 1 3 2n-1 2 4
+ y ) + y
2n-2 2n
b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly