Assignment 20

course Mth 272

5/1/10 at 12:00pm

020.

*********************************************

Question: `qQuery problem 6.4.14 (7th edition 6.5.12) (was 6.5.10) trapezoidal and Simpson's rules, n=4, integral 0 to 2 of x `sqrt(x^2+1)

YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Your solution:

Trapezoidal Rule

2 – 0 / 4 = 2/4 = 1/2

xo = 0, x1 = 0.5, x2 = 1.0, x3 = 1.5, x4 = 2

ʃx sqrt (x^2 + 1) = 2 / 8 [ 0sqrt(0^2+1) + 2(0.5sqrt(0.5^2+1) + 2(1sqrt(1^2+1) +

2(1.5sqrt(1.5^2+1) +2sqrt(2^2+1)]

= 2 / 8 [ 0 + 2(0.559) + 2(1.4142) + 2(2.7042) + 4.4721]

= 2 / 8 [ 0 + 1.1180 + 2.828 + 5.4084 + 4.4721]

= 2 / 8 [ 13.8269]

= 3.4567

Simpson rule:

ʃxsqrt(x^2+1) = 2 / 12 [ 0sqrt(0^2+1) + 4(0.5sqrt(0.5^2+1) + 2(1.0sqrt(1^2+1) +

4(1.5sqrt(1.5^2+1) + 2sqrt(2^2+1)]

= 2 / 12 [ 0 + 4(0.5590) + 2(1.4142) + 4(2.7042) + 4.4721]

= 1 / 6 [ 0 + 2.2361 + 2.8284 + 10.8168 + 4.4721]

= 1 / 6 [20.35337]

= 3.39223

confidence rating #$&*2

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.............................................

Given Solution:

`a You would use x0=0, x1=1/2, x2=1 x3=3/2 x4=2.

The corresponding values of x^2 sqrt(x^2+1) are 0, 0.5590169943, 1.414213562, 2.704163456, 4.472135954.

Using these values:

Trap gives you 3.4567.

Simpson's rule gives you 3.3922.

The exact result, to five significant figures, is int(x sqrt(x^2+1),x,0,2) = 3.3934. This is based on the antiderivative 1/3 * (x^2+1)^(3/2)

According to these results Simpson's approximation is within .0012 while trap is within about .064. So the Simpson's approximation is .064 / .0012 = 50 times better, approx..

Theory says that it should be about n^2 = 4^2 = 16 times better. **

To integrate x sqrt( x^2 + 1 ) let u = x^2 so that du = 2 x dx. The integrand becomes 1/2 sqrt(u) du with antiderivative 1/2 ( 2/3 u^(3/2) ) = 1/3 u^(3/2), which with the given limits, calculated to five significant figure, gives you the result 3.3934.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Self-critique (if necessary):

I did not find the exact value, but to fine this value you would us the fundamental theorem of calculus

------------------------------------------------

Self-critique rating #$&*

*********************************************

Question: `qQuery problem 6.4.21 (7th edition 6.5.21) (was 6.5.19) present value of 6000 + 200 `sqrt(t) at 7% for 4 years by Simpson's rule

YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Your solution:

INT[(6000 + 200sqrt(t)) * e^(0.07t)] from 0 to 4 n=8

(4-0) / 8 = 4/12 = 1/2 t0 = 0, t1 = 1, t2 = 2, t3 = 3, t4 = 4

(4-0) / 3*8 = 4/24

INT[(6000 + 200sqrt(t)) * e^(0.07t)]= 4/24{[(6000 + 200sqrt(0)) * e^(-0.07*0)]+

4 [(6000 + 200sqrt(1)) * e^(-0.07*1)] + 2[(6000 + 200sqrt(2)) *

e^(-0.07*2)] + 4[(6000 + 200sqrt(3)) * e^(-0.07*3)] +

[(6000 + 200sqrt(4)) * e^(-0.07*4)]}

= 4/24{(6000) + 4(5780.8416) + 2(6283.7121) + 4(5144.3001) + (4837.0159)}

= 4/24{6000 + 23,123.3667 + 12567.4241 + 20577.2004 + 4837.0159}

= 4/24{67,105.0072}

= $11,184.16

confidence rating #$&*2

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.............................................

Given Solution:

`a This income stream would be $6000 at the beginning and $6400 at the end of the 4-year period. The income during this period would therefore be between $24,000 and $25,600. The present value of this income will be somewhat less.

The present value of [6000 + 200 `sqrt(t)] `dt, for a short time interval t, is [ 6000 + 200 `sqrt(t) ] * e^(-.07 t ) `dt.

Evaluating the integral INT( ( 6000 + 200 `sqrt(t) ) * e^(-.07 t ) with respect to t from 0 to 4) we obtain $21,836.98

You just about had it, but you didn't actually use the interval 1/2 in your expression. Your interval endpoints were separated by 1 unit, rather than by 1/2 unit. Right pattern, just about everything right but that.

The Simpson approximation to the integral, using n = 8, is

4/24 * ( (6000 + 200 sqrt(0)) e^(- 0.07 * 0) + 4·((6000 + 200 sqrt(1/2)) e^(- 0.07 * 1/2)) + 2·((6000 + 200 sqrt(1)) e^(- 0.07 * 1)) + 4·((6000 + 200 sqrt(3/2)) e^(- 0.07 * 3/2)) + 2·((6000 + 200 sqrt(2)) e^(- 0.07 * 2))+4·((6000 + 200 sqrt(5/2)) e^(- 0.07 * 5/2)) + 2·((6000 + 200 sqrt(3)) e^(- 0.07 * 3)) + 4·((6000 + 200 sqrt(7/2)) e^(- 0.07 * 7/2)) + (6000 + 200 sqrt(4)) e^(- 0.07 * 4) )

= $21 831.

Breaking the same approximation down term-by-term:

4/24 * (

(6000 + 200 sqrt(0)) e^(- 0.07 * 0) +

4·((6000 + 200 sqrt(1/2)) e^(- 0.07 * 1/2)) +

2·((6000 + 200 sqrt(1)) e^(- 0.07 * 1)) +

4·((6000 + 200 sqrt(3/2)) e^(- 0.07 * 3/2)) +

2·((6000 + 200 sqrt(2)) e^(- 0.07 * 2))+

4·((6000 + 200 sqrt(5/2)) e^(- 0.07 * 5/2)) +

2·((6000 + 200 sqrt(3)) e^(- 0.07 * 3)) +

4·((6000 + 200 sqrt(7/2)) e^(- 0.07 * 7/2)) +

(6000 + 200 sqrt(4)) e^(- 0.07 * 4)

)

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Self-critique (if necessary):

?????I though I was doing the math right. I might have used the wrong value for n

You used n = 8, which would correspond to an interval of 1/2, as you correctly indicated.

However your expression

[(6000 + 200sqrt(0)) * e^(-0.07*0)]+

4 [(6000 + 200sqrt(1)) * e^(-0.07*1)] + 2[(6000 + 200sqrt(2)) *

e^(-0.07*2)] + 4[(6000 + 200sqrt(3)) * e^(-0.07*3)] +

[(6000 + 200sqrt(4)) * e^(-0.07*4)]

uses values at intervals of 1, not 1/2.

See also my note above.

(6000 + 200sqrt(0)) * e^(-0.07*0)+4 ((6000 + 200sqrt(1)) * e^(-0.07*1)) + 2((6000 + 200sqrt(2)) * e^(-0.07*2)) + 4((6000 + 200sqrt(3)) * e^(-0.07*3)) + ((6000 + 200sqrt(4)) * e^(-0.07*4))

------------------------------------------------

Self-critique rating #$&*

*********************************************

Question: `qQuery distance traveled by pursuer along path y = 1/3 (x^(3/2) - 3 x^(1/2) + 2) over [0, 1].

YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Your solution:

confidence rating #$&*

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.............................................

Given Solution:

`a This is going to be an arc length integral.

The x = 0 point of the curve is (0, 2/3) and the x = 1 point is (1, 0). The straight-line distance between these points is thus sqrt(1^2 + (2/3)^2) = sqrt(13/9) = 1.2 or so. The straight line being the shortest distance between two points, we expect the arc distance to be more than 1.2. However unless the curve gets pretty steep the distance won't be drastically greater than this.

** Integrate to find the arc length of the curve.

If a line with slope m lies above an interval `dx on the x axis then the 'run' of the segment above `dx is just `dx, while the rise is m * `dx. The hypotenuse is therefore `sqrt( `dx^2 + ( m `d)^2 ) = `sqrt( 1 + m^2 ) * `sqrt(`dx^2) = `sqrt(1 + m^2) `dx.

If a curve y = f(x) lies above the interval `dx then the average slope of the curve is a value of y ' for some x in the interval. After a little fancy reasoning we can prove that the arc length is in fact equal to `sqrt( 1 + y'^2) `dx, but proof or not it's easy enough to understand if you understand the thing about m.

This leads to the theorem that for a differentiable function y = f(x) the arc length between x = a and x = b is INT ( `sqrt( 1 + y' ^ 2) dx, x from a to b).

The derivative of the given function is 1/2 x^.5 - 1/2 x^-.5; the square of this expression is 1/4 ( x - 2 + 1/x) so you integrate `sqrt( 1 + 1/4 ( x - 2 + 1/x) ) from 0 to 1.

The integral gives you 1.33327, accurate to 6 significant figures. However you'll probably have to use an approximation technique so your result will probably differ after a few significant figures from this result.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Self-critique (if necessary):

??????Thats a tough one had no clue. Understand a little of the problem but not enough to get the answer.

------------------------------------------------

Self-critique rating #$&*

*********************************************

Question: `qQuery Add comments on any surprises or insights you experienced as a result of this assignment.

?????The last problem gave me problems. I understand the process of the Trapezoidal rule and Simpsons rule.

"

&#Your work looks good. See my notes. Let me know if you have any questions. &#