2077 4

MTH117 · 2077 · 10 marks

Exam Question **Part 1:** Evaluate **Part 2:** Find the Maclaurin's series for cos x and prove that it represents cos x for all x. [5+5]

Exam Question

Part 1: Evaluate $$\int_{3}^{2} \int_{0}^{\frac{\pi}{2}} \left( y + y^{2} \cos x \right) , dx , dy$$

Part 2: Find the Maclaurin's series for $\cos x$ and prove that it represents $\cos x$ for all $x$. [5+5]

Mathematics IChapter 10: Partial Derivatives and Multiple IntegralsMultiple integralsNumerical: Double integral and Maclaurin series

Given Data

Part 1: Double integral $$\int_{3}^{2}\int_{0}^{\pi/2}(y + y^2\cos x),dx,dy$$

  • Outer limits (for $y$): from $3$ to $2$
  • Inner limits (for $x$): from $0$ to $\pi/2$

Part 2: Find Maclaurin series for $\cos x$ and prove it represents $\cos x$ for all $x$.


Part 1: Evaluate the Double Integral

The limits are literally $\int_3^2$, so I will evaluate as written.

Step 1: Inner Integral (with respect to $x$)

Treat $y$ as constant: $$I_1 = \int_0^{\pi/2}(y + y^2\cos x),dx = \left[yx + y^2\sin x\right]_0^{\pi/2}$$

$$= \left(y\cdot\frac{\pi}{2} + y^2\sin\frac{\pi}{2}\right) - (0 + 0) = \frac{\pi y}{2} + y^2$$

Step 2: Outer Integral (with respect to $y$, from 3 to 2)

$$I = \int_3^2\left(\frac{\pi y}{2} + y^2\right)dy = \left[\frac{\pi y^2}{4} + \frac{y^3}{3}\right]_3^2$$

Evaluate at upper limit $y=2$: $$\frac{\pi(4)}{4} + \frac{8}{3} = \pi + \frac{8}{3}$$

Evaluate at lower limit $y=3$: $$\frac{\pi(9)}{4} + \frac{27}{3} = \frac{9\pi}{4} + 9$$

Subtract: $$I = \left(\pi + \frac{8}{3}\right) - \left(\frac{9\pi}{4} + 9\right)$$

$$= \pi - \frac{9\pi}{4} + \frac{8}{3} - 9 = \frac{4\pi - 9\pi}{4} + \frac{8 - 27}{3}$$

$$= -\frac{5\pi}{4} - \frac{19}{3}$$

$$\boxed{\int_{3}^{2}\int_{0}^{\pi/2}(y+y^2\cos x),dx,dy = -\frac{5\pi}{4} - \frac{19}{3}}$$

If the intended (standard) orientation is $\int_2^3$, the answer is $+\left(\dfrac{5\pi}{4}+\dfrac{19}{3}\right)$.


Part 2: Maclaurin's Series for $\cos x$

Finding the Series

The Maclaurin series is: $$f(x) = \sum_{n=0}^{\infty}\frac{f^{(n)}(0)}{n!}x^n$$

Let $f(x)=\cos x$:

$n$$f^{(n)}(x)$$f^{(n)}(0)$
0$\cos x$$1$
1$-\sin x$$0$
2$-\cos x$$-1$
3$\sin x$$0$
4$\cos x$$1$

Odd derivatives vanish at $0$; even derivatives satisfy $f^{(2n)}(0)=(-1)^n$. Hence:

$$\cos x = \sum_{n=0}^{\infty}\frac{(-1)^n}{(2n)!}x^{2n} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots$$

Proof of Convergence to $\cos x$ for all $x$

By Taylor's theorem, $\cos x = P_n(x) + R_n(x)$ where the Lagrange remainder is: $$R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}x^{n+1}, \quad c \text{ between } 0 \text{ and } x$$

Every derivative of $\cos x$ is $\pm\sin x$ or $\pm\cos x$, so: $$\left|f^{(n+1)}(c)\right| \le 1 \quad \text{for all } c$$

Therefore: $$|R_n(x)| \le \frac{|x|^{n+1}}{(n+1)!}$$

For any fixed $x$, the standard limit holds: $$\lim_{n\to\infty}\frac{|x|^{n+1}}{(n+1)!} = 0$$

(These are the terms of the convergent series for $e^{|x|}$, so they tend to $0$.)

By the squeeze theorem, $\lim_{n\to\infty}|R_n(x)| = 0$ for every real $x$.

Conclusion: Since the remainder tends to zero for all $x \in \mathbb{R}$, the Maclaurin series converges to $\cos x$ for all real $x$: $$\cos x = \sum_{n=0}^{\infty}\frac{(-1)^n}{(2n)!}x^{2n}, \quad \forall x \in \mathbb{R} \qquad \blacksquare$$

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.