Approximate Integral of cos(x^2)

sugarxsweet
Messages
12
Reaction score
0

Homework Statement


I am having issues figuring out the error involved in the trapezoidal and midpoint methods for ∫cos(x^2) from 0 to 1 with n=8


Homework Equations


|Et|<= k(b-a)^3/(12n^2)
|Em|<=k(b-a)^3/(24n^2)


The Attempt at a Solution



f(x)=cos(x^2)
f'(x)=-2xsin(x^2)
f''(x)=-4x^2cos(x^2)

f''(1) = -3.844

Is it right given that f''(1) is negative? Just wanted to make sure! Thanks
 
Physics news on Phys.org
sugarxsweet said:

Homework Statement


I am having issues figuring out the error involved in the trapezoidal and midpoint methods for ∫cos(x^2) from 0 to 1 with n=8


Homework Equations


|Et|<= k(b-a)^3/(12n^2)
|Em|<=k(b-a)^3/(24n^2)


The Attempt at a Solution



f(x)=cos(x^2)
f'(x)=-2xsin(x^2)
f''(x)=-4x^2cos(x^2)

f''(1) = -3.844

Is it right given that f''(1) is negative? Just wanted to make sure! Thanks

It doesn't matter: k = max{|f''(x)|: 0 ≤ x ≤ 1}.

RGV
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top