Euler’s Method
How to use Euler’s Method:
Given y′=F(x,y), (xo,yo), step size h
xn=xn−1+h
yn=h⋅F(xn−1,yn−1)+yn−1
Example:
Use Euler’s method with step size 0.1 to estimate y(0.3) where y(x) is the solution to the initial value problem
Gather)
h=0.1
x=0.3
xo=0
Analyze)
Use the formula:
x1=xo+h=0+0.1=0.1
y1=h⋅F(xn−1,yn−1)+yn−1=0.1⋅F(0,1)+1
F(x,y) is the equation given above (y′=x+y), so F(x+y)=x+y=0+1=1
y1=0.1⋅1+1=1.1
x2=x1+h=0.1+0.1=0.2
y2=h⋅F(0.1,1.1)+1.1=0.1⋅(0.1+1.1)+1.1=1.22
x_3 = x_2 + h = 0.2 + 0.1 = 0.3
y2=h⋅F(x2,y2)+y2=0.1⋅(0.2+1.22)+1.22=1.362
Now that have x at 0.3 in the step above, we can approximate y(0.3)
Slope Field
Example:
y′=x
Step 1) Make a table of x,y, and y′


Who cares, you learned about this in calc I
Example: Given the equation x2+y2=100, find dxdy. Calculate the slope at the point (6,8)
dxd(x2+y2=100)⇒2x+2ydxdy=0
⇒2ydxdy=−2x⇒dxdy=−2y2x=−yx
dxdy=−86=−(4⋅2)(3⋅2)=−43
The slope at (6,8) is −43
Example: Given the equation x3+4xy+y2=13, find dxdy at the point (1,2).