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
marvin the math magician has a problem for you. he wants to buy some magic wands and some magic hats. the wands cost $8 each and
tensa zangetsu [6.8K]
He will pay $131 for all that stuff

7 0
3 years ago
Read 2 more answers
The green triangle is a dilation of the red triangle with a scale factor of s=1/3 and the center of dilation is at the point (4,
klasskru [66]

Given:

The scale factor is s=\dfrac{1}{3} and the center of dilation is at the point (4,2).

Red is original figure and green is dilated figure.

To find:

The coordinates of point C' and point A.

Solution:

Rule of dilation: If a figure is dilated with a scale factor k and the center of dilation is at the point (a,b), then

(x,y)\to (k(x-a)+a,k(y-b)+b)

According to the given information, the scale factor is \dfrac{1}{3} and the center of dilation is at (4,2).

(x,y)\to (\dfrac{1}{3}(x-4)+4,\dfrac{1}{3}(y-2)+2)            ...(i)

Let us assume the vertices of red triangle are A(m,n), B(10,14) and C(-2,11).

Using (i), we get

C(-2,11)\to C'(\dfrac{1}{3}(-2-4)+4,\dfrac{1}{3}(11-2)+2)

C(-2,11)\to C'(\dfrac{1}{3}(-6)+4,\dfrac{1}{3}(9)+2)

C(-2,11)\to C'(-2+4,3+2)

C(-2,11)\to C'(2,5)

Therefore, the coordinates of Point C' are C'(2,5).

We assumed that point A is A(m,n).

Using (i), we get

A(m,n)\to A'(\dfrac{1}{3}(m-4)+4,\dfrac{1}{3}(n-2)+2)

From the given figure it is clear that the image of point A is (8,4).

A'(\dfrac{1}{3}(m-4)+4,\dfrac{1}{3}(n-2)+2)=A'(8,4)

On comparing both sides, we get

\dfrac{1}{3}(m-4)+4=8

\dfrac{1}{3}(m-4)=8-4

(m-4)=3(4)

m=12+4

m=16

And,

\dfrac{1}{3}(n-2)+2=4

\dfrac{1}{3}(n-2)=4-2

(n-2)=3(2)

n=6+2

n=8

Therefore, the coordinates of point A are (16,8).

5 0
3 years ago
Help please on this math problem: The prices of backpacks at a store are 22, 16, 39, 35, 19, 34, 20, and 26. Find the Mean Absol
Ivanshal [37]
Answer: 7.22
(note: this is a result after rounding. The result before rounding was 7.21875)

========================================================

Explanation:

Given Set of Values = {22, 16, 39, 35, 19, 34, 20, 26}

Add up the values: 22+16+39+35+19+34+20+26 = 211
Divide that sum by 8 as there are 8 values: 211/8 = 26.375

The mean is 26.375

Now subtract the mean from each data value. Apply the absolute value to ensure the difference is never negative

|22 - 26.375| = 4.375
|16 - 26.375| = 10.375
|39 - 26.375| = 12.625
|35 - 26.375| = 8.625
|19 - 26.375| = 7.375
|34 - 26.375| = 7.625
|20 - 26.375| = 6.375
|26 - 26.375| = 0.375

Add up those results
4.375+10.375+12.625+8.625+7.375+7.625+6.375+0.375 = 57.75
Then divide by 8 
57.75/8 = 7.21875

The mean absolute deviation of the prices is 7.21875
Rounded to two decimal places, it is 7.22
Since we're talking about money, it makes sense to round to the nearest penny.

4 0
3 years ago
The function F(c)=log0.5x is decreasing true or false
nikitadnepr [17]

Answer:

  true

Step-by-step explanation:

We assume you intend your function to be ...

  F(x)=\log_{0.5}x

A logarithm with a base less than 1 is a decreasing curve. Here, the base appears to be 0.5, a value less than 1. Hence the curve is decreasing.

7 0
3 years ago
help your selves to these points. And ignore this question. Which of the following inequalities matches the graph?
Dennis_Churaev [7]

Answer:

wow..that's very kind of you(. ❛ ᴗ ❛.)

8 0
3 years ago
Read 2 more answers
Other questions:
  • Samuel has a collection of toy cars. His favorites are the 27 red ones which make up 60% of his collection. How many toy cars do
    10·1 answer
  • Susan is installing junction boxes in a living room wall which is 12 feet long. She has to install two boxes evenly spaced on th
    10·2 answers
  • Help me work out 6=-4+z
    14·2 answers
  • Jane thought of a number then added -5 and subtracted -8 to get 13. What number did Jane start with
    15·1 answer
  • Question is attatched
    8·1 answer
  • Please answer!!! Will mark brainiest!!
    15·2 answers
  • You want to wrap a gift shaped like the regular triangular prism shown. How many square inches of wrapping paper do you need to
    7·1 answer
  • Which is the equation of a hyperbola with directrices at y = ±2 and foci at (0, 4) and (0, −4)?
    6·1 answer
  • This scale has a meaningful zero point and equal intervals; therefore, it can be manipulated by all mathematical principles
    9·1 answer
  • (x+3)^2+4=46<br> what is the solution of this equation
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!