Numerical/Graphical Integration:

Midpoint Rule:

Pasted image 20231202180100.png

""
Abstract

The response shown in Figure 2 is obtained from the following state equation

By using a partition size of 0.5, calculate the values for state x by integrating the curve shown in Figure 2 at each time interval using the Midpoint Rule (from 0-2.5s)

""
Example


Therefore:

So we deduce that

Simpson's Rule:

Pasted image 20231202180121.png

""
Abstract

The response shown in Figure 2 is obtained from the following state equation

By using a partition size of 0.5, calculate the values for state x by integrating the curve shown in Figure 2 at each time interval using Simpson's Rule (from 0-2.5s)

""
Example


Therefore:

So we deduce that

Trapezoid Rule:

Pasted image 20231202180158.png

""
Abstract

The response shown in Figure 2 is obtained from the following state equation

By using a partition size of 0.5, calculate the values for state x by integrating the curve shown in Figure 2 at each time interval using the Trapezoid Rule (from 0-2.5s)

""
Example


Therefore:

So we deduce that:

Errors:

Absolute Error:

""
Abstract

Find the absolute error of the value of the integral of:

From 0 to 2 seconds
Comparing the value estimated by the Trapezoid Rule and Simpson's Rule, against a calculated value for the integral

""
Example


Relative Error:

""
Abstract

From the previous question calculate the relative error for both the Trapezoid and Simpson's Rule

""
Example

Newton's Interpolation

""
Abstract

From the following set of data calculate the interpolated

""
Example




So our final answer is

Newton Divided Difference:

f[] f[,] f[,,] f[,,,]
=
= =
= = =
F[x_1]
Standard Form:
Nested Form:
""
Abstract

For the following table derive the Newton's Divided Difference

""
Example
f[] f[,] f[,,] f[,,,]
1 3
=
0 3 = =
2 = = =