# error bound of a integration

I have a function, which is $f(x) = e^{1/x}$. I want to calculate the error bound for the `Trapezoid Rule`, which formula is:

$$|E|\leq K\frac{(a-b)^3}{12\cdot n^2}$$

where $|f''(x)|\leq K$. What's the value of $K$ for the above function? If I calculated $f''(x)$ correctly, it should be: $$f"(x) = \frac{e^{1/x}}{x^3}\left(\frac 1x + 2\right).$$

Please correct me if I'm wrong. The boundaries are $[1, 2]$.

-

Can you write down $|f''(x)|$ explicitly first? – Alex Sep 11 '12 at 3:37
@Sam Done! I've updated my question – philippe Sep 11 '12 at 3:39
Alright, now you have it explicitly. You want an upper bound on it's absolute value. What happens to the second derivative when $x\rightarrow 0$ and $x\rightarrow\pm\infty$? – Alex Sep 11 '12 at 3:40
it goes to infinite when `x -> 0`, and goes to 0 when `x-> infinite` – philippe Sep 11 '12 at 3:42
This is the time to consider what interval you are integrating the function over. Does it include 0? Notice btw that $e^{1/x}$ has no limit as $x\rightarrow 0$ since from the positive side, it's infinity but from the negative side it's 0 – Alex Sep 11 '12 at 3:43
show 3 more comments

## 1 Answer

If you look at $f''$ you should be able to convince yourself that it is decreasing over $[1,2]$. In that case, the maximum value is $f''(1)$, which is then $K$

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 14, "mathjax_display_tex": 2, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9334924221038818, "perplexity_flag": "head"}