MATH101 April 2008
• Q1 (a) • Q1 (b) • Q1 (c) • Q1 (d) • Q1 (e) • Q1 (f) • Q1 (g) • Q2 (a) • Q2 (b) • Q2 (c) • Q2 (d) • Q3 (a) • Q3 (b) • Q3 (c) • Q3 (d) • Q4 (a) • Q4 (b) • Q5 (a) • Q5 (b) • Q6 • Q7 (a) • Q7 (b) •
Question 01 (d)

Write down the Trapezoidal Rule approximation $\displaystyle T_{3}$ for
$\int _{1}^{4}x\cos(\pi /x)\,dx$.
Leave your answer expressed as a sum involving cosines.

Make sure you understand the problem fully: What is the question asking you to do? Are there specific conditions or constraints that you should take note of? How will you know if your answer is correct from your work only? Can you rephrase the question in your own words in a way that makes sense to you?

If you are stuck, check the hint below. Consider it for a while. Does it give you a new idea on how to approach the problem? If so, try it!

Hint

The Trapezoid Rule in full generality is
$T_{n}={\frac {\Delta x}{2}}{\Big (}f(x_{0})+2f(x_{1})+2f(x_{2})+...+2f(x_{n1})+f(x_{n}){\Big )}$

Checking a solution serves two purposes: helping you if, after having used the hint, you still are stuck on the problem; or if you have solved the problem and would like to check your work.
 If you are stuck on a problem: Read the solution slowly and as soon as you feel you could finish the problem on your own, hide it and work on the problem. Come back later to the solution if you are stuck or if you want to check your work.
 If you want to check your work: Don't only focus on the answer, problems are mostly marked for the work you do, make sure you understand all the steps that were required to complete the problem and see if you made mistakes or forgot some aspects. Your goal is to check that your mental process was correct, not only the result.

Solution

Found a typo? Is this solution unclear? Let us know here. Please rate my easiness! It's quick and helps everyone guide their studies.
Recall that when $\displaystyle n=3$, $\displaystyle a=1$, and $\displaystyle b=4$ we have
$\displaystyle \Delta x={\frac {ba}{n}}={\frac {41}{3}}=1$
and that
$\displaystyle x_{i}=a+i\Delta x=1+i(1)=1+i.$
We plug in these values to see that
${\begin{aligned}T_{3}&={\frac {\Delta x}{2}}{\Big (}f(x_{0})+2f(x_{1})+2f(x_{2})+f(x_{3}){\Big )}\\&={\frac {1}{2}}{\Big (}f(1+0)+2f(1+1)+2f(1+2)+f(1+3){\Big )}\\&={\frac {1}{2}}{\Big (}(1\cos(\pi /(1)))+2(2\cos(\pi /2))+2(3\cos(\pi /3))+(4\cos(\pi /4)){\Big )}\\&={\frac {1}{2}}{\Big (}\cos(\pi )+4\cos(\pi /2)+6\cos(\pi /3)+4\cos(\pi /4){\Big )}\end{aligned}}$
completing the question. Note that if we actually compute the value we get that, $T_{3}=2.414213562$ and that,
 $\int _{1}^{4}{}x\cos \left({\frac {\pi }{x}}\right)=2.265092039$
which already to this low approximation shows fairly good accuracy.

Click here for similar questions
MER QGH flag, MER QGQ flag, MER QGS flag, MER RT flag, MER Tag Trapezoidal rule, Pages using DynamicPageList3 parser function, Pages using DynamicPageList3 parser tag

Math Learning Centre
 A space to study math together.
 Free math graduate and undergraduate TA support.
 Mon  Fri: 12 pm  5 pm in LSK 301&302 and 5 pm  7 pm online.
Private tutor
