Solveeit Logo

Question

Question: How do you use the trapezoidal rule with \[n=4\] to approximate the area between the curve \[\sqrt{x...

How do you use the trapezoidal rule with n=4n=4 to approximate the area between the curve xsinx\sqrt{x}\sin x from π2\dfrac{\pi }{2} to π\pi ?

Explanation

Solution

We are given the equation of a curve with n=4n=4 and we have to find the area in the boundary from π2\dfrac{\pi }{2} to π\pi using the trapezoidal rule. So, first we will find the interval between the given limits, that is, finding the value of h, h=xnx0nh=\dfrac{{{x}_{n}}-{{x}_{0}}}{n}, where x0=π2{{x}_{0}}=\dfrac{\pi }{2} and xn=π{{x}_{n}}=\pi . After obtaining the intervals, we will find the corresponding value of the curve given to us. And further we will use the trapezoidal rule, x0xnf(x)dx=h2[(y0+yn)+2(y1+y2+...+yn1)]\int\limits_{{{x}_{0}}}^{{{x}_{n}}}{f(x)dx}=\dfrac{h}{2}[({{y}_{0}}+{{y}_{n}})+2({{y}_{1}}+{{y}_{2}}+...+{{y}_{n-1}})]. We will then have the value of the area bounded by the given curve.

Complete step by step solution:
According to the given question, we are given a curve xsinx\sqrt{x}\sin x with n=4n=4 and we have to find the area of the curve in the region from π2\dfrac{\pi }{2} to π\pi .
Let, π2πxsinx=x0xnf(x)dx\int\limits_{\dfrac{\pi }{2}}^{\pi }{\sqrt{x}\sin x}=\int\limits_{{{x}_{0}}}^{{{x}_{n}}}{f(x)dx}
We will first start with finding the interval of the given region and then we will find the corresponding value of the curve at those intervals.
So, we have,
h=xnx0nh=\dfrac{{{x}_{n}}-{{x}_{0}}}{n}----(1)
Here, xn=π{{x}_{n}}=\pi , n=4n=4 and x0=π2{{x}_{0}}=\dfrac{\pi }{2},
Substituting the values in the equation (1), we get,
h=ππ24\Rightarrow h=\dfrac{\pi -\dfrac{\pi }{2}}{4}
Solving further we get,
h=2ππ24\Rightarrow h=\dfrac{\dfrac{2\pi -\pi }{2}}{4}
h=π8\Rightarrow h=\dfrac{\pi }{8}
We have the value of the intervals, ‘h’ between the given regions. We will now obtain the corresponding value of these intervals using the equation of the curve in a tabular form. To obtain the next interval, we will add the value of ‘h’ to the previous interval in the given region. We have,

Value of ‘n’Value of ‘x’f(x)
0π2\dfrac{\pi }{2}1.253
15π8\dfrac{5\pi }{8}1.294
26π8\dfrac{6\pi }{8}1.085
37π8\dfrac{7\pi }{8}0.634
4π\pi 0.000

Now, we will use the trapezoidal rule to find the area, we have,
x0xnf(x)dx=h2[(y0+yn)+2(y1+y2+...+yn1)]\int\limits_{{{x}_{0}}}^{{{x}_{n}}}{f(x)dx}=\dfrac{h}{2}[({{y}_{0}}+{{y}_{n}})+2({{y}_{1}}+{{y}_{2}}+...+{{y}_{n-1}})]
Using the above formula, we have the expression as,
π2πxsinx\int\limits_{\dfrac{\pi }{2}}^{\pi }{\sqrt{x}\sin x}
π82[(1.253+0.000)+2(1.294+1.085+0.634)]\Rightarrow \dfrac{\dfrac{\pi }{8}}{2}[(1.253+0.000)+2(1.294+1.085+0.634)]
Solving the above expression, we have the solution as,
π16[(1.253)+2(3.014)]\Rightarrow \dfrac{\pi }{16}[(1.253)+2(3.014)]
Calculating it further, we have the value of the expression as,
π16[(1.253)+(6.028)]\Rightarrow \dfrac{\pi }{16}[(1.253)+(6.028)]
π16[7.281]\Rightarrow \dfrac{\pi }{16}[7.281]
1.429\Rightarrow 1.429
Therefore, π2πxsinx=1.429\int\limits_{\dfrac{\pi }{2}}^{\pi }{\sqrt{x}\sin x}=1.429

Note: While substituting the values in the formula of the trapezoid rule, it should be done correctly. And it is advised to do the calculations step wise. Also, the intervals should be carefully calculated else the entire answer will get wrong.