Question

In: Physics

   \(\int_{0}^{\pi}e^xsinx dx\) with n=6 subdivisions 1) Find the exact value of the integral 2) Approximate...

   \(\int_{0}^{\pi}e^xsinx dx\) with n=6 subdivisions

1) Find the exact value of the integral

2) Approximate the integral using the trapezoidal rule, midpoint rule and simpson rule.

3) Find the errors using each of these rules

4) For each of these rules, show how large n should be, to be within .0001 of the actual answer.

Solutions

Expert Solution

dividing in 6 subdivisions 0, pi/6 , 2pi/6 , 3pi/6, 4pi/6, 5pi/6, pi

hence value of function f =e^x *sin x at these 7 values are

f0 =0

f1 =e^(pi/6) *sin pi/6 =0.84


f2 =2.4655

f3 =4.81

f4 =7.03

f5 =6.86

f6 =e^(pi) *sin pi = 0


BY

Trapezoidal rule

given integral = [(h)/2] *(f0 +f6 +2(f1+f2+f3 +f4+f5))

here h is difference between to consecutive x ie pi/6

hence given integral by trapezoidal rule is =11.51



...........

by midpoint rule GIVEN INTEGRAL IS calculated at midpoints ie at x =3pi/6

hence at 3pi/6

fx =e^(3pi/6) *sin 3pi/6 =4.81

...

hence by midpoint rule given integral is 4.81*(3pi/6) = 7.55

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


by simpsons rule

int =h/3 (f0 +4(f1+f3+f5) +2(f2+f4) +f6)

f0 to f6 are same as calculated in first part

h =pi/6

hence given intgral =18.063

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

f" =d^2(e^xsinx) /dx^2 =d(e^x cosx +e^x sinx)/dx =-e^x sinx +e^x cos x +e^x cosx +e^x sinx =2e^x cosx

it has maximum value at x =pi as e^x is increasing with x and max value of cos x is =1 at pi

d

for error calculation f" taken which is max for limits ,, here coming out on pi

f" (pi) =46.21

n =6

error in trapezoidal rule = (pi - 0)^3/12n^2 *f" = 10.398

for 0.0001 error we have (pi - 0)^3/12n^2 *f" = 0.0001

hence n =1091 intervals


...........


for error in si,pson rule take b =pi a = 0 ie limits

error in simpsons rule =((b-a)/2)^5* f"" /90

f'''' =d^2 f" /dx^2

we have calculated f'' for the trapezoidal rule

hence f" =2 e^x cosx

hence d^2 2e^xcosx /dx^2 =2*d(-e^x sinx+e^xcosx)/dx = 2*(-e^xcosx -e^x sinx -e^x sin x +e^x cosx ) = -4 e^xsinx

max value at x =3 pi /4

hence f"" =29.84 .. we have to take mod value.. as we are finding error

..

hence error =3.16


Related Solutions

1) Evaluate the integral from 0 to 1 (e^(2x) (x^2 + 4) dx) (a) What is...
1) Evaluate the integral from 0 to 1 (e^(2x) (x^2 + 4) dx) (a) What is the first step of your ‘new’ integral? (b) What is the final antiderivative step before evaluating? (c) What is the answer in simplified exact form? 2) indefinite integral (cos^2 2theta) / (cos^2 theta) dtheta (a) What is the first step of your ‘new’ integral? (b) What is the simplified integral before taking the antiderivative? (c) What is the answer in simplified form?
Evaluate the integral from (1,pi/2,0) t0 (2,pi,0) of (2xsiny +x) dx +(x^2 cosy + 3sin^3(y)) dy...
Evaluate the integral from (1,pi/2,0) t0 (2,pi,0) of (2xsiny +x) dx +(x^2 cosy + 3sin^3(y)) dy giving the potential function
1. Evaluate the integral: ∫((e^(2x)−e^(−5x))^2+ ln(e^(1/x))) dx 2. Using cylindrical shells, find the volume of the...
1. Evaluate the integral: ∫((e^(2x)−e^(−5x))^2+ ln(e^(1/x))) dx 2. Using cylindrical shells, find the volume of the solid obtained by taking the region between y=x and y=x^2 for 1≤x≤3 and rotating it about the the line x=−4. 3. Find the average value of the function f(x) = 1/√x on the interval [0,4]. Then find c in [0,4] such that f(c) =f ave. please help!
(a) Find the exact length of the curve y = 1/6 (x2 + 4)(3/2) , 0...
(a) Find the exact length of the curve y = 1/6 (x2 + 4)(3/2) , 0 ≤ x ≤ 3. (b) Find the exact area of the surface obtained by rotating the curve in part (a) about the y-axis. I got part a I NEED HELP on part b
1. Denote I = ∫10  (1/(1+4x2)) dx a. Find the exact value of I (for example, by...
1. Denote I = ∫10  (1/(1+4x2)) dx a. Find the exact value of I (for example, by finding an antiderivative of the integrand). b. For a generic positive integer n, we partition the interval [0, 1] into n equal subintervals [x0, x1], [x1, x2], . . . , [xn-1, xn]. Denote by Ln, Rn, Mn, Tn the Riemann sums corresponding to left-point, right-point, midpoint and trapezoid rule. Use sigma notation to write a formula for each Ln, Rn, Mn, Tn. c....
1. (a) Evaluate the integral: ∫0 to 2 16 /x^2+4 dx Your answer should be in...
1. (a) Evaluate the integral: ∫0 to 2 16 /x^2+4 dx Your answer should be in the form kπkπ, where k is an integer. What is the value of k? Hint: d/dx arctan(x)=1/x^2+1 k= (b) What is the upper bound for your error of your estimate if you use the first 11 terms? (Use the alternating series estimation.) = 2. The function f(x)=8xln(1+x) is represented as a power series f(x)=∞∑n=0 cn x^n. Find the specified coefficients in the power series....
Use Simpson’s Rule with n = 4 to approximate the value of the definite integral ∫4...
Use Simpson’s Rule with n = 4 to approximate the value of the definite integral ∫4 0 e^(−x^2) dx. (upper is 4, lower is 0)    Compute the following integrals (you may need to use Integration by Substitution): (a) ∫ 1 −1 (2xe^x^2) dx (upper is 1, lower is -1)       (b) ∫ (((x^2) − 1)((x^3) − 3x)^4)dx      
Consider the definite integral ∫05 ((3x − 1)/(x + 2)) dx a. How large an n...
Consider the definite integral ∫05 ((3x − 1)/(x + 2)) dx a. How large an n do we need to use to approximate the value of the integral to within 0.001 using the Midpoint Rule? b. How large an n do we need to use to approximate the value of the integral to within 0.001 using Simpson’s Rule?
Find the value of ∑(−1)^n/(3n+1) from n=0 to ∞
Find the value of ∑(−1)^n/(3n+1) from n=0 to ∞
1)(a) Approximate the value of the double integral, ∫ ∫ R x 2 ydA, where R...
1)(a) Approximate the value of the double integral, ∫ ∫ R x 2 ydA, where R = [−1, 5] × [0, 4], using the midpoint rule with m = 3 and n = 2. (b) Evaluate the double integral in the part (a), evaluating the corresponding iterated integral. 2)Let D be a region in the xy plane, between the graphs of y = 2 cos(x) and y = − sin(x), for 0 ≤ x ≤ π 2 . Sketch D...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT