in Numerical Methods reopened by
1 vote

The minimum number of equal length subintervals needed to approximate $\int_1^2 xe^x\,dx$ to an accuracy of at least $\frac{1}{3}\times10^{-6}$ using the trapezoidal rule is

  1. 1000e
  2. 1000
  3. 100e
  4. 100
in Numerical Methods reopened by

Subscribe to GO Classes for GATE CSE 2022

3 Answers

1 vote

I am not sure of the solution,posting it from source 

question 21

It will be highly appreciable if anyone can explain it.

1 vote

A little late than never. Here is my solution.


1 vote

Error in trapezoidal rule is given by : $$E_n = -\frac{(b-a)^3}{12N^2} f''(c)$$ for some value $c$ between $a$ and $b$. Now, we want accuracy of at least $\frac{1}{3}*10^{-6}$ meaning maximum error will be $\frac{1}{3}*10^{-6}$ i.e. $$\left\vert E_n\right\vert < \frac{1}{3}*10^{-6}$$ We are given $a$ as 1 and $b$ as 2, and we need to find $N$. By rearranging terms, we get $$N^2 > \frac{(b-a)^3}{12*\frac{1}{3}*10^{-6}}\left\vert f''(c) \right\vert = \frac{(2-1)^3}{4*10^{-6}}\left\vert f''(c) \right\vert = \frac{10^6}{4}\left\vert f''(c) \right\vert$$ So $$N > \frac{10^3}{2}\sqrt{\left\vert f''(c) \right\vert}$$ Now $f''(x) = xe^x + 2e^x$, and between 1 and 2, it can take maximum value at 2 (we are looking at max value because we want R.H.S. of above inequality to be as large as poosible so that we can find least bound on N). So $f''(2) = 4e^2$. So $$N > \frac{10^3}{2}\sqrt{4e^2} = \frac{10^3}{2}*2e = 1000e$$ Hence, option (A) is correct.


Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true