[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4511: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4512: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4513: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
midpoint rule

## midpoint rule

Tutorial articles are posted here.

Moderator: ChangBroot

### midpoint rule

using midpoint rule solve x^2+1 on the interval [0,2]

the formula for the midpoint is `M=((x_1+x_2)/2,(y_1+y_2)/2)`

have two point `x_1=0` and `x_2=2`. so how do we get the `y_1` and `y_2`?

simply sub in the values into the equation which is `y=x^2+1`

first to find `y_1` we use `x_1` which is 0
`y_1= 0^2+1=1`
`y_1=1`

first to find `y_2` we use `x_2` which is 2
`y_2=2^2+1=5`
`y_2=5`

Now we use use the `x_1, x_2, y_1, y_2` into our midpoint equation `M=((x_1+x_2)/2,(y_1+y_2)/2)`
`M=((0+2)/2,(1+5)/2)=1/2,6/2`

`:.` so we found the midpoint to be `(1/2, 6/2)

Integr88

Posts: 71
Joined: Tue 15 March, 2011 13:27