1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alla [95]
3 years ago
14

Use (a) the midpoint rule and (b) simpson's rule to approximate the below integral. ∫ x^2sin(x) dx with n = 8.

Mathematics
1 answer:
MaRussiya [10]3 years ago
7 0

Answer:

midpoint rule =  5.93295663

simpson's rule = 5.869246855

Step-by-step explanation:

a) midpoint rule

\int\limits^b_a {(x)} \, dx≈ Δ x (f(x₀+x₁)/2 + f(x₁+x₂)/2 + f(x₂+x₃)/2 +...+ f(x_{n}_₂+x_{n}_₁)/2 +f(x_{n}_₁+x_{n})/2)

Δx = (b − a) / n

We have that a = 0, b = π, n = 8

Therefore

Δx = (π − 0) / 8 = π/8

Divide the interval [0,π] into n=8 sub-intervals of length Δx = π/8 with the following endpoints:

a=0, π/8, π/4, 3π/8, π/2, 5π/8, 3π/4, 7π/8, π = b

Now, we just evaluate the function at these endpoints:

f(\frac{x_{0}+x_{1}  }{2} ) = f(\frac{0+\frac{\pi}{8}   }{2} ) = f(\frac{\pi }{16})=\frac{\pi^{2}sin(\frac{\pi }{16})  }{256} = 0.00752134

f(\frac{x_{1}+x_{2}  }{2} ) = f(\frac{\frac{\pi }{8} +\frac{\pi}{4}   }{2} ) = f(\frac{3\pi }{16})=\frac{9\pi ^{2} sin(\frac{3\pi }{16}) }{256} = 0.19277080

f(\frac{x_{2}+x_{3}  }{2} ) = f(\frac{\frac{\pi }{4} +\frac{3\pi}{8}   }{2} ) = f(\frac{5\pi }{16})=\frac{25\pi ^{2} sin(\frac{5\pi }{16}) }{256} = 0.80139415

f(\frac{x_{3}+x_{4}  }{2} ) = f(\frac{\frac{3\pi }{8} +\frac{\pi}{2}   }{2} ) = f(\frac{7\pi }{16})=\frac{49\pi ^{2} sin(\frac{7\pi }{16}) }{256} = 1.85280536

f(\frac{x_{4}+x_{5}  }{2} ) = f(\frac{\frac{\pi }{2} +\frac{5\pi}{8}   }{2} ) = f(\frac{9\pi }{16})=\frac{81\pi ^{2} sin(\frac{7\pi }{16}) }{256} = 3.062800704

f(\frac{x_{5}+x_{6}  }{2} ) = f(\frac{\frac{5\pi }{8} +\frac{3\pi}{4}   }{2} ) = f(\frac{11\pi }{16})=\frac{121\pi ^{2} sin(\frac{5\pi }{16}) }{256} = 3.878747709

f(\frac{x_{6}+x_{7}  }{2} ) = f(\frac{\frac{3\pi }{4} +\frac{7\pi}{8}   }{2} ) = f(\frac{13\pi }{16})=\frac{169\pi ^{2} sin(\frac{3\pi }{16}) }{256} = 3.61980731

f(\frac{x_{7}+x_{8}  }{2} ) = f(\frac{\frac{7\pi }{8} +\pi    }{2} ) = f(\frac{15\pi }{16})=\frac{225\pi ^{2} sin(\frac{\pi }{16}) }{256} = 1.69230261

Finally, just sum up the above values and multiply by Δx = π/8:

π/8 (0.00752134 +0.19277080+ 0.80139415 + 1.85280536 + 3.062800704 + 3.878747709 + 3.61980731 + 1.69230261) = 5.93295663

b) simpson's rule

\int\limits^b_a {(x)} \, dx  ≈ (Δx)/3 (f(x₀) + 4f(x₁) + 2f(x₂) + 4f(x₃) + 2f(x₄) + ... + 2f(x_{n-2}) + 4f(x_{n-1}) + f(x_{n}))

where Δx = (b−a) / n

We have that a = 0, b = π, n = 8

Therefore

Δx = (π−0) / 8 = π/8

Divide the interval [0,π] into n = 8 sub-intervals of length Δx = π/8, with the following endpoints:

a = 0, π/8, π/4, 3π/8, π/2, 5π/8, 3π/4, 7π/8 ,π = b

Now, we just evaluate the function at these endpoints:  

f(x₀) = f(a) = f(0) = 0 = 0

4f(x_{1} ) = 4f(\frac{\pi }{8} )=\frac{\pi^{2}\sqrt{\frac{1}{2}-\frac{\sqrt{2} }{4}   }  }{16} = 0.23605838

2f(x_{2} ) = 2f(\frac{\pi }{4} )=\frac{\sqrt{2\pi^{2}  } }{16} = 0.87235802

4f(x_{3} ) = 4f(\frac{3\pi }{8} )=\frac{9\pi^{2}\sqrt{\frac{\sqrt{2} }{4}-\frac{{1} }{2}   }  }{16} = 5.12905809

2f(x_{4} ) = 2f(\frac{\pi }{2} )=\frac{\pi ^{2} }{2} = 4.93480220

4f(x_{5} ) = 4f(\frac{5\pi }{8} )=\frac{25\pi^{2}\sqrt{\frac{\sqrt{2} }{4}-\frac{{1} }{2}   }  }{16} = 14.24738359

2f(x_{6} ) = 2f(\frac{3\pi }{4} )=\frac{9\sqrt{2\pi^{2}  } }{16} = 7.85122222

4f(x_{7} ) = 4f(\frac{7\pi }{8} )=\frac{49\pi^{2}\sqrt{\frac{1}{2}-\frac{\sqrt{2} }{4}   }  }{16} = 11.56686065

f(x₈) = f(b) = f(π) = 0 = 0

Finally, just sum up the above values and multiply by Δx/3 = π/24:

π/24 (0 + 0.23605838 + 0.87235802 + 5.12905809 + 4.93480220 + 14.24738359 + 7.85122222 + 11.56686065 = 5.869246855

You might be interested in
A computer can sort x objects in t seconds, as modeled by the function
r-ruslan [8.4K]

Answer:

  36 objects

Step-by-step explanation:

You want the value of x when t=9, so you're solving ...

  9 = 0.007x^2 +0.003x

  9 = 0.007(x^2 + 3/7x)

From here, we observe that an approximation is probably sufficient.

 9/0.007 = x(x +3/7) . . . . . the expression on the right is nearly x^2

  x ≈ 3/√.007 ≈ 35.9 ≈ 36

We can check:

  .007(36)(36 3/7) = 9.18

  .007(35)(35 3/7) = 8.68

To keep the computer busy for 9 seconds, it needs to sort 36 objects.

 

6 0
3 years ago
Mercedes created color panels for a wall using a mix of only green and yellow paints. She plotted the quantities of green and ye
SVEN [57.7K]

Answer: Domain of the function represented in the graph is given by he inequality . 2 <_ x _< 10  

Step-by-step explanation:

we know that

Observing the graph

The domain is the quantity of yellow paint in millimeters

The domain is the interval -----> [2,10]

All real numbers greater than or equal to 2 and less than or equal to 10

therefore 2 <_ x _< 10  

my bad I couldn't put the line under the sign

5 0
3 years ago
Read 2 more answers
What would a 64 ring size be in the US THANKSSSS​
Mazyrski [523]

Answer:

10.75 would be a 64 ring size in the US

5 0
2 years ago
Find the equation of a line that has a slope of 1/2 and passes through the origin.
omeli [17]

Step-by-step explanation:

The equation of a line with slope m and y-intercept b is y = m x + b.  

This line goes through the point ( 0 ,0 ), so the y-intercept is zero.

We are given the slope as − 2 / 3.

The equation of the line is y= – 2 / 3 x + 0 = – 2 / 3 x

y = – 2 / 3 x

8 0
3 years ago
What is the equation of a parabola whose vertex is at the origin and whose directrix is y = 3?
frutty [35]

Y^2=4*3*X=12X Hope this helps!

5 0
3 years ago
Other questions:
  • A playground is constructed with the dimensions and shapes shown below
    8·1 answer
  • 7 less than 4 times a number equals 13 ​
    10·1 answer
  • I have 11 days left to finish this class otherwise I can't graduate with my class, and move out of state to see my mom. thank yo
    9·1 answer
  • Solve the following riddle:
    9·2 answers
  • How long would it take an ant to run from Los Angeles to New York City?
    10·1 answer
  • How can you multiply positive and negative fractions?
    11·1 answer
  • The Apple, Inc. sales manager for the Chicago West Suburban region is disturbed about the large number of complaints her office
    14·1 answer
  • 10) If two angles in a triangle measure 53 degrees and 45 degrees, what is the value of the
    14·1 answer
  • What is the solution to 9x−6&lt;21?
    13·1 answer
  • The smallest value of n that makes all of the numbers in set natural numbers is ____.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!