By writing \(x=a\tan\theta\), show that, for \(a\ne0\),
$\displaystyle \int \frac 1 {a^2+x^2}\,
\d x =\frac 1 a \arctan \frac x a + \text{constant}\,$.
Let $\displaystyle I=\int_0^{\frac{1}{2}\pi}
\frac {\cos x}{1+\sin^2 x} \, \d x\,$.
Evaluate \(I\).
Use the substitution \(t=\tan \frac12 x\) to show that \(\displaystyle \int_0^1 \frac {1-t^2}{1+6t^2+t^4} \, \d t = \tfrac12 I\,\).
Evaluate \(\displaystyle \int_0^1 \frac {1-t^2}{1+14t^2+t^4} \, \d t \,\).
The functions \(\s(x)\) (\(0\le x<1\)) and \(t(x)\) (\(x\ge0\)),
and the real number \(p\), are defined
by
\[
\s(x) = \int_0^x \frac 1 {\sqrt{1-u^2}}\, \d u\;, \ \ \ \
t(x) = \int_0^x \frac 1 {1+u^2}\, \d u\;, \ \ \ \
p= 2 \int_0^\infty \frac 1 {1+u^2}\, \d u \;.
\]
For this question, do not evaluate any of the above integrals explicitly in terms of inverse trigonometric functions or the number \(\pi\).
Use the substitution \(u=v^{-1}\) to show that \(\displaystyle t(x) =\int_{1/x}^\infty\frac 1 {1+v^2}\, \d v \, \). Hence evaluate \(t(1/x) + t(x)\) in terms of \(p\) and deduce that \(2t(1)= \frac12 p\,\).
Let \(y=\dfrac{u}{\sqrt{1+u^2}}\). Express \(u\) in terms of \(y\),
and show that \(\displaystyle \frac{\d u}{\d y} = \frac 1 {\sqrt{(1-y^2)^3}}\). By making a substitution in the integral for \(t(x)\), show that
\[
t(x) = \s\left(\frac{x}{\sqrt{1+x^2}}\right)\!.
\]
Deduce that \(\s\big(\frac1{\sqrt2}\big) =\frac1 4 p\,\).
Let \(z= \dfrac{u+ \frac1{\sqrt3}}{1-\frac 1{\sqrt3}u}\,\). Show that \(\displaystyle t(\tfrac1{\sqrt3}) = \int_{\frac1{\sqrt3}}^{\sqrt3} \frac1 {1+z^2} \,\d z\;, \) and hence that \(3t(\frac1{\sqrt3}) = \frac12 p\,\).
Use the substitution \(u^2=2x+1\) to show that, for \(x>4\),
\[
\int \frac{3} { ( x-4 ) \sqrt {2x+1}} \;
\d x = \ln \l \frac{\sqrt{2x+1}-3} {\sqrt{2x+1}+3} \r + K\,,
\]
where \(K\) is a constant.
Sketch on the same axes the functions \({\rm cosec}\, x\) and \(2x/ \pi\), for \(0 < x < \pi\,\). Deduce that the equation \(x\sin x = \pi/2 \) has exactly two roots in the interval \(0 < x < \pi\,\).
Show that
\[
\displaystyle \int_{\pi/2}^{\pi} \left \vert x\sin x -
\frac{\pi} { 2} \right \vert \; \mathrm{d}x
=
2\sin\alpha +\frac{3\pi^2} 4 - \alpha \pi -\pi -2\alpha
\cos\alpha -1
\]
where \(\alpha\) is the larger of the roots referred to above.
Show that the region bounded by the positive \(x\)-axis, the \(y\)-axis and the curve
\[y = \Bigl| \vert \e^x - 1 \vert - 1 \Bigr|\]
has area \(\ln 4-1\).
Notice that they are equal at \(1\) when \(x = \pi/2\), but this is a local minimum for \(\csc x\) whereas \(2x/\pi\) is increasing so there is a second intersection.
Notice that \(\csc x = \frac{2x}{\pi} \Leftrightarrow x \sin x = \frac{\pi}{2}\) therefore our intersections are also the roots of \(x \sin x = \frac{\pi}{2}\) and the larger one is greater than \(\pi/2\)
\begin{align*}
&& I &= \int_{\pi/2}^{\pi} \Bigl| x \sin x - \frac{\pi}{2} \Bigr| \d x \\
&&&= \int_{\pi/2}^{\alpha} \left ( x \sin x - \frac{\pi}{2} \right )\d x +\int_{\alpha}^{\pi} \left ( \frac{\pi}{2} -x \sin x \right) \d x \\
&&&= \left ( \pi - 2\alpha + \frac{\pi}{2}\right) \frac{\pi}{2} + \int_{\pi/2}^{\alpha} x \sin x\d x -\int_{\alpha}^{\pi} x \sin x \d x \\
&&&= \frac{3\pi^2}{4} - \alpha \pi + \left [-x \cos x \right]_{\pi/2}^{\alpha}+\left[x \cos x \right]_{\alpha}^{\pi} + \int_{\pi/2}^{\alpha} \cos x \d x - \int_{\alpha}^{\pi} \cos x \d x \\
&&&= \frac{3\pi^2}{4} - \alpha \pi -\alpha \cos \alpha -\pi -\alpha \cos \alpha+ \sin \alpha - 1+\sin \alpha \\
&&&= 2\sin \alpha + \frac{3\pi^2}{4} - \alpha \pi - 2\alpha \cos \alpha - 1
\end{align*}
By making the substitution \(x=\pi-t\,\), show that
\[
\! \int_0^\pi x\f(\sin x) \d x = \tfrac12 \pi \! \int_0^\pi \f(\sin x) \d x\,,
\]
where \(\f(\sin x)\) is a given function of \(\sin x\).
Evaluate the following integrals:
Let
\[
I = \int_{-\frac12 \pi}^{\frac12\pi}
\frac {\cos^2\theta}{1-\sin\theta\sin2\alpha} \, \d\theta
\text{ and }
J = \int_{-\frac12 \pi}^{\frac12\pi}
\frac {\sec^2\theta}{1+\tan^2\theta\cos^22\alpha} \, \d\theta
\]
where \(0 < \alpha < \frac14\pi\,\).
Show that \[
I = \int_{-\frac12 \pi}^{\frac12\pi}
\frac {\cos^2\theta}{1+\sin\theta\sin2\alpha} \d\theta \] and hence that \[ \displaystyle 2I = \int_{-\frac12 \pi}^{\frac12\pi}
\frac {2}{1+\tan^2\theta\cos^22\alpha} \, \d\theta \]
Find \(J\).
By considering \(I\sin^2 2\alpha +J\cos^2 2\alpha \), or otherwise, show that \(I =\frac12 \pi \sec^2\alpha\).
Evaluate \(I\) in the case \(\frac14\pi < \alpha < \frac12\pi\).
Evaluate the integral
\[
\int_0^1 \l x + 1 \r ^{k-1} \; \mathrm{d}x
\]
in the cases \(k\ne0\) and \(k = 0\,\).
Deduce that \(\displaystyle \frac{2^k - 1}{k} \approx \ln 2\) when \(k \approx 0\,\).
Evaluate the integral
\[
\int_0^1 x \l x + 1 \r ^m \; \mathrm{d}x \;
\]
in the different cases that arise according to the value of \(m\).
Case \(k \neq 0\):
\begin{align*}
&& \int_0^1 (x+1)^{k-1} \d x &= \left [\frac{1}{k}(x+1)^k \right]_0^1 \\
&&&= \frac{2^k-1}{k} \\
\end{align*}
Case \(k = 0\):
\begin{align*}
&& \int_0^1 (x+1)^{k-1} \d x &= \int_0^1 (x+1)^{-1} \d x \\
&&&= \left [\ln(x+1) \right]_0^1 \\
&&&= \ln 2
\end{align*}
Therefore for \(k \approx 0\), we must have both integrals being close to each other, since the function is nice on this interval, ie \(\frac{2^k-1}{k} \approx \ln 2\)
Case \(m = 0\). \(I = \frac12\)
Case \(m \neq 0, -1, -2\)
\begin{align*}
u = x+1, \d u = \d x && \int_0^1 x(x+1)^m \d x &= \int_{u=1}^{u=2} (u-1)u^m \d u \\
&&&=\left[ \frac{u^{m+2}}{m+2} - \frac{u^{m+1}}{m+1} \right]_1^2 \\
&&&= 2^{m+1}\left ( \frac{2}{m+2} - \frac1{m+1} \right) - \frac{1}{m+2} + \frac{1}{m+1} \\
&&&= 2^{m+1} \frac{m}{(m+1)(m+2)} + \frac{1}{(m+1)(m+2)} \\
&&&= \frac{m2^{m+1}+1}{(m+1)(m+2)} \\
\end{align*}
Case \(m = -1\).
\begin{align*}
&& \int_0^1 \frac{x}{x+1} \d x &= \int_0^1 1 - \frac{1}{x+1} \d x \\
&&&= 1 - \ln2 \\
\end{align*}
Case \(m = -2\):
\begin{align*}
&& \int_0^1 \frac{x}{(x+1)^2} \d x &= \int_0^1\frac{x+1-1}{(x+1)^2} \d x \\
&&&= \left [ \ln (x+1) +(1+x)^{-1} \right]_0^1 \\
&&&= \ln 2 + \frac12 - 1 \\
&&&= \ln 2 - \frac12
\end{align*}
Since \(y' = \cos x - \cos x + x \sin x = x \sin x > 0\) which is positive on \((0, \frac{\pi}{2})\), so \(y\) is increasing, and therefore will achieve it's highest value at \(\frac{\pi}{2}\) which is \(y(\frac{\pi}{2}) = 1\) and it's smallest value at \(y(0) = 0\). Therefore \(0 \leq y \leq 1\)
\(\,\) \begin{align*}
\int_0^{\frac{1}{2}\pi}\,y\;\d x &= \int_0^{\frac{1}{2}\pi} (\sin x - x \cos x) \d x \\
&= \left [-\cos x \right]_0^{\frac{1}{2}\pi} +\left [ -x \sin x \right]_0^{\frac{1}{2}\pi} + \int_0^{\frac{1}{2}\pi} \sin x \d x \\
&= 1-\frac{\pi}{2} + 1 = 2 - \frac{\pi}{2}
\end{align*}
The square bracket notation \(\boldsymbol{[} x\boldsymbol{]}\) means the greatest integer less than or equal to \(x\,\).
For example, \(\boldsymbol{[}\pi\boldsymbol{]} = 3\,\), \(\boldsymbol{[}\sqrt{24}\,\boldsymbol{]} = 4\,\) and \(\boldsymbol{[}5\boldsymbol{]}=5\,\).
Sketch the graph of \(y = \sqrt{\boldsymbol{[}x\boldsymbol{]}}\) and show that
\[
\displaystyle \int^a_0 \sqrt{\boldsymbol{[}x\boldsymbol{]}} \;
\mathrm{d}x = \sum^{a-1}_{r=0} \sqrt{r}
\] when \(a\) is a positive integer.
Show that
$\displaystyle \int^{a}_0
2_{\vphantom{A}}^{\pmb{\boldsymbol {[} } x \pmb{ \boldsymbol{]}} }\;
\mathrm{d}x = 2^{a}-1\( when \)a\( is a positive integer.
Determine an expression for \)\displaystyle \int^{a}_0 2_{\vphantom{\dot A}}^{\pmb{\boldsymbol{[} }x \pmb{ \boldsymbol{]}} } \;
\mathrm{d}x\( when \)a$ is positive but not an integer.
\begin{align*}
&& \int_0^a \sqrt{\boldsymbol{[}x\boldsymbol{]}} \d x &= \sum_{r=0}^{a-1} \int_{x=r}^{x=r+1} \sqrt{\boldsymbol{[}x\boldsymbol{]}} \d x \\
&&&= \sum_{r=0}^{a-1} \int_r^{r+1} \sqrt{r} \d x \\
&&&= \sum_{r=0}^{a-1} \sqrt{r} \\
\end{align*}
\(\,\) \begin{align*}
&& \int^{a}_0 2^{\boldsymbol {[} x \boldsymbol{]}} \d x &= \sum_{r=0}^{a-1} \int_{x=r}^{x=r+1} 2^{\boldsymbol {[} x \boldsymbol{]}} \d x \\
&&&= \sum_{r=0}^{a-1} \int_{x=r}^{x=r+1} 2^{r} \d x \\
&&&= \sum_{r=0}^{a-1} 2^{r}\\
&&&= 2^{a}-1
\end{align*}
\(\,\)
\begin{align*}
&& \int^{a}_0 2^{\boldsymbol {[} x \boldsymbol{]}} \d x &= \int_0^{\boldsymbol {[} a \boldsymbol{]}} 2^{\boldsymbol {[} x \boldsymbol{]}} \d x + \int_{\boldsymbol {[} a \boldsymbol{]}}^a 2^{\boldsymbol {[} x \boldsymbol{]}} \d x \\
&&&= 2^{ \boldsymbol {[} a \boldsymbol{]}}-1 + (a-\boldsymbol {[} a \boldsymbol{]})2^{\boldsymbol {[} a \boldsymbol{]}} \\
&&&= (a-\boldsymbol {[} a \boldsymbol{]}+1)2^{\boldsymbol {[} a \boldsymbol{]}} -1
\end{align*}
Use the substitution \(x=\sec t\) to show that
$\displaystyle \int^2_{\sqrt 2} \frac{1}{ x^3\sqrt {x^2-1} } \; \mathrm{d}x
=\frac{\sqrt 3 - 2}{8} + \frac {\pi}{24} \;.$
\(\,\)
\begin{align*}
&& I &= \int_0^1 \frac 1 {x^2 + (a+2)x +2a} \; \d x \\
&&&= \int_0^1 \frac{1}{(x+a)(x+2)} \d x\\
\end{align*}
Case 1: \(a = 2\)
\begin{align*}
&& I &= \int_0^1 \frac{1}{(x+2)^2} \d x \\
&&&= \left [ -(x+2)^{-1}\right]_0^1 = \frac12 - \frac13 = \frac16
\end{align*}
Case 2: \(a \neq 2, a \not \in [0,1]\)
\begin{align*}
&& I &=\frac{1}{a-2} \int_0^1 \left ( \frac{1}{x+2} - \frac{1}{x+a} \right) \d x \\
&&&= \frac{1}{a-2} \left [ \ln |x+2| - \ln |x + a|\right]_0^1 \\
&&&= \frac{1}{a-2} \left ( \ln \frac{3}{|1+a|} - \ln \frac{2}{|a|} \right) \\
&&&= \frac{1}{a-2} \ln \frac{3|a|}{2|a+1|}
\end{align*}
Case 3: \(a \in [0, 1]\), \(I\) does not converge
\(\,\) \begin{align*}
&& J &= \int _{1}^2\frac 1 {u^2 +au +a-1} \; \d u \\
&&&= \int_1^2 \frac{1}{(u+a-1)(u+1)} \d u \\
x = u-1:&&&= \int_0^1 \frac{1}{(x+a)(x+2)} \d x
\end{align*}
So it's the same as the previous integral
The function \(\f\) is defined by
$$
\f(x)= \vert x-1 \vert\;,
$$
where the domain is \({\bf R}\,\), the set of all real numbers.
The function \(\g_n =\f^n\), with domain \({\bf R}\,\),
so for example \(\g_3(x) = \f(\f(\f(x)))\,\).
In separate diagrams, sketch graphs of \(\g_1\,\), \(\g_2\,\), \(\g_3\,\) and \(\g_4\,\).
The function \(\h\) is defined by
\[
\h(x) = |\sin {{{\pi}x} \over 2}|,
\]
where the domain is \({\bf R}\,\). Show that if \(n\) is even,
\[
\int_0^n\,\big( \h(x)-\g_n(x)\big)\,\d x = \frac{2n}{\pi} -\frac{n}2\;.
\]
If \(n\) is even, and \(0 < x < n\) then \(g_n(x) = \begin{cases} \{x \} & \text{if }\lfloor x \rfloor\text{ is even} \\ 1-\{x \} & \text{if }\lfloor x \rfloor\text{ is odd} \\\end{cases}\), in other words, there are \(\frac{n}{2}\) triangles, with height \(1\) and base \(2\), giving total area of \(\frac{n}{2}\).
Each section of \(|\sin (\frac{n \pi}{2})|\) will have area \(\frac{2}{\pi}\) and there will be \(n\) of them, therefore \(\frac{2n}{\pi} - \frac{n}{2}\)
If \(m\) is a positive integer, show that \(\l 1+x \r^m + \l 1-x \r^m \ne 0\) for any real \(x\,\).
The function \(\f\) is defined by
\[
\f (x) = \frac{ (1+x )^m - ( 1-x )^m}{ (1+x )^m + (1-x )^m}
\;.
\]
Find and simplify an expression for \(\f'(x)\).
In the case \(m=5\,\), sketch the curves \(y = \f (x)\) and \(\displaystyle y = \frac1 { \f (x )}\;\).
If \(m\) is even, clearly that expression is positive since it's the sum of two (different) squares.
If \(m\) is odd, then we can expand it as a sum of powers of \(x^2\) with a leading coefficient of \(1\) so it is also positive.
\begin{align*}
&& f (x) = \frac{ (1+x )^m - ( 1-x )^m}{ (1+x )^m + (1-x )^m} \\
&& f'(x) &= \frac{(m(1+x )^{m-1} + m( 1-x )^{m-1})((1+x)^m + (1-x)^m ) - ((1+x )^m - ( 1-x )^m)(m(1+x)^{m-1} - m(1-x)^{m-1} )}{\l (1+x)^m + (1-x)^m \r^2} \\
&&&= \frac{2m(1+x)^m(1-x)^{m-1}+2m(1+x)^{m-1}(1-x)^m}{\l (1+x)^m + (1-x)^m \r^2} \\
&&&= \frac{2m(1+x)^{m-1}(1-x)^{m-1}(1+x+1-x)}{\l (1+x)^m + (1-x)^m \r^2} \\
&&&= \frac{4m(1+x)^{m-1}(1-x)^{m-1}}{\l (1+x)^m + (1-x)^m \r^2} \\
\end{align*}
Give a sketch of the curve \( \;\displaystyle y= \frac1 {1+x^2}\;\), for \(x\ge0\).
Find the equation of the line that intersects the curve at \(x=0\) and is tangent to the curve at some point with \(x>0\,\). Prove that there are no further intersections between the line and the curve. Draw the line on your sketch.
By considering the area under the curve for \(0\le x\le1\), show that \(\pi>3\,\). Show also, by considering the volume formed by rotating the curve about the \(y\) axis, that \(\ln 2 >2/3\,\).
[Note: \(\displaystyle \int_0^ 1 \frac1 {1+x^2}\, \d x = \frac\pi 4\,.\;\)]
Let
\[
I= \int_0^a \frac {\cos x}{\sin x + \cos x} \; \d x \,
\quad \mbox{ and } \quad
J= \int_0^a \frac {\sin x}{\sin x + \cos x} \; \d x \;,
\]
where \(0\le a < \frac{3}{4}\pi\,\).
By considering \(I+J\) and \(I-J\), show that
$
2I= a + \ln (\sin a +\cos a)\;.
$
Find also:
\(\displaystyle \int_0^{\frac{1}{2}\pi} \frac {\cos x}{p\sin x + q\cos x} \; \d x \,\), where \(p\) and \(q\)
are positive numbers;
%
[(ii)]
%\(\displaystyle \int_0^{\frac{1}{2}\pi/2} \frac {\cos x}{\sin (x+k)} \; \d x \,\), where \(0 < k < \pi/2\,\);
\(\displaystyle \int_0^{\frac{1}{2}\pi} \frac {\cos x+4}{3\sin x + 4\cos x+ 25} \; \d x \,\).
\begin{align*}
&& I + J &= \int_0^a \frac{\sin x + \cos x}{\sin x + \cos x } \d x = a \\
&& I - J &= \int_0^a \frac{\cos x - \sin x}{\sin x + \cos x} \d x \\
&&&= \left [\ln ( \sin x + \cos x) \right]_0^a = \ln (\sin a + \cos a) - \ln 1 = \ln(\sin a + \cos a) \\
\\
\Rightarrow && 2I &= a + \ln(\sin a + \cos a)
\end{align*}
Let \(\displaystyle I = \int_0^{\frac12 \pi} \frac{\cos x}{p \sin x + q \cos x} \d x, J = \int_0^{\frac12 \pi} \frac{\sin x}{p \sin x + q \cos x} \d x\) so
\begin{align*}
&& qI + pJ &= \frac{\pi}{2} \\
&& pI - qJ &= \int_0^{\frac12 \pi} \frac{p \cos x - q \sin x}{p \sin x + q \cos x } \d x \\
&&&= \left [\ln (p \sin x + q \cos x) \right]_0^{\pi/2} \\
&&&= \ln(p) - \ln(q) = \ln \frac{p}{q}
\end{align*}
\(\,\)
\begin{align*}
&& \int_0^{\frac{\pi}{2}} \frac{\cos x}{\sin(x + k)} \d x &= \int_0^{\frac{\pi}{2}} \frac{\cos x}{\sin(x) \cos(k) + \cos(x) \sin (k)} \d x \\
&&&= \ln \tan k
\end{align*}
Let \(\displaystyle I = \int_0^{\pi/2} \frac{\cos x + 4}{3 \sin x + 4 \cos x + 25} \d x, J = \int_0^{\pi/2} \frac{\sin x + 3}{3 \sin x + 4 \cos x + 25} \d x\), so
\begin{align*}
&& 4I + 3J &= \int_0^{\pi/2} \frac{3 \sin x + 4 \cos x + 25}{3 \sin x + 4 \cos x + 25} \d x \\
&&&= \frac{\pi}{2} \\
&& 3I - 4J &= \int_0^{\pi/2} \frac{3\cos x - 4 \sin x}{3 \sin x + 4 \cos x + 25} \d x \\
&&&= \left [\ln(3 \sin x + 4 \cos x + 25) \right]_0^{\pi/2} \\
&&&= \ln (28) - \ln (29) = \ln \frac{28}{29} \\
\Rightarrow && 25I &= 2\pi + 3 \ln \frac{28}{29} \\
\Rightarrow && I &= \frac{2}{25} \pi + \frac{3}{25} \ln \frac{28}{29}
\end{align*}
Show that
\[
\int_{\frac{1}{6}\pi}^{\frac{1}{4}\pi} \frac 1{1-\cos2\theta} \;\d\theta = \frac{\sqrt3}2 - \frac12\;.
\]
By using the substitution \(x=\sin2\theta\), or otherwise, show that
\[
\int_{\sqrt3/2}^1 \frac 1 {1-\sqrt{1-x^2}} \, \d x = \sqrt 3 -1 -\frac\pi 6 \;.
\]
Hence evaluate the integral
\[
\int_1^{2/\sqrt3} \frac 1{y ( y - \sqrt{y^2-1^2})} \, \d y \;.
\]
If \(a > 0\) and \(b^2 < 4ac \Rightarrow \Delta < 0\) then \(f(x) = ax^2-bx+c > 0\) for all \(x\). Therefore
\begin{align*}
&& 0 & < \int_0^1 (ax^2-bx+c) \d x\\
&&&= \frac13 a-\frac12b+c \\
\Rightarrow && 3b &< 2a+6c
\end{align*}
Similar logic tells us this must also be always positive, therefore
\begin{align*}
&& 0 &< \int_0^{\pi} (a \sin^2 x - b \sin x +c ) \d x\\
&&&= \frac{\pi}{2}a - 2b+\pi c \\
\Rightarrow && 4b &< (a+2c)\pi
\end{align*}
Find the area of the region between the curve
\(\displaystyle y = {\ln x \over x}\,\) and the \(x\)-axis, for \(1 \le x \le a\).
What happens to this area as \(a\) tends to infinity?
Find the volume of the solid obtained when the region between the curve
\(\displaystyle y = {\ln x \over x}\,\) and the \(x\)-axis, for \(1 \le x\le a\),
is rotated through \(2 \pi\) radians about the \(x\)-axis.
What happens to this volume as \(a\) tends to infinity?
\[
\int_0^1 \frac1{(1+tx)^2} \d x = \frac1{(1+t)}
\]
\[
\int_0^1 \frac{-2x}{(1+tx)^3} \d x = -\frac1{(1+t)^2}
\]
Noting that the right hand side of (ii) is the derivative of the right hand side of
(i),
conjecture the value of
\[
\int_0^1 \frac{6x^2}{(1+x)^{4}} \d x \;.
\]
(You need not verify your conjecture.)
Show Solution
For the first one, consider
\begin{align*}
&& \int_0^1 \frac{1}{(1+tx)^2} \d x &= \left [ -\frac{1}{t}(1+tx)^{-1} \right]_0^1 \\
&&&= \frac{1}{t} - \frac{1}{t(1+t)} \\
&&&= \frac{t+1-1}{t(t+1)} = \frac{1}{t+1}
\end{align*}
I would expect it to be \(\frac{2}{(1+t)^3}\). This is actually an application of differentiating under the integral sign and is completely valid where functions are well behaved.
Show that
\[
\int_{-1}^1 \vert \, x\e^x \,\vert \d x =- \int_{-1}^0 x\e^x \d x +
\int_0^1 x\e^x \d x
\]
and hence evaluate the integral.
Evaluate the following integrals:
It is required to approximate a given function \(\f(x)\),
over the interval \(0 \le x \le 1\),
by the linear function \(\lambda x\), where \(\lambda\) is chosen
to minimise
\[
\int_0^1 \big(\f(x)-\lambda x \big)^{\!2} \,\d x .
\]
Show that
\[
\lambda = 3 \int_0^1 x\f(x)\,\d x.
\]
The residual error, \(R\), of this approximation process is
such that
\[
R^2 = \int_0^1 \big(\f(x)-\lambda x \big)^{\!2}\,\d x.
\]
Show that
\[
R^2 = \int_0^1 \big(\f(x)\big)^{\!2}\,\d x -\tfrac{1}{3}
\lambda ^2.
\]
Given now that
\(\f(x)= \sin (\pi x/n)\),
show that (i) for large
\(n\), \(\lambda \approx \pi/n\) and (ii)
\(\lim_{n \to \infty}R = 0.\)
Explain why, prior to any calculation, these results are to be
expected.
[You may assume that, when \(\theta\) is small,
$\sin \theta
\approx \theta-\frac{1}{6}\theta^3$ and
\(\cos \theta \approx 1 - \frac{1}{2}\theta^2.\)]
Show that
\[
\sin\theta = \frac {2t}{1+t^2}, \ \ \
\cos\theta = \frac{1-t^2}{1+t^2}, \ \ \
\frac{1+\cos\theta}{\sin\theta} = \tan (\tfrac{1}{2}\pi-\tfrac{1}{2}\theta),
\]
where \(t =\tan\frac{1}{2}\theta\).
Use the substitution \(t =\tan\frac{1}{2}\theta\) to show that, for \(0<\alpha<\frac{1}{2}\pi\),
\[
\int_0^{\frac{1}{2}\pi}
{1 \over {1 + \cos\alpha \sin \theta}} \,\d\theta
=\frac{\alpha}{\sin\alpha}\,,
\]
and deduce a similar result for
\[
\int_0^{\frac{1}{2}\pi}
{1 \over {1 + \sin\alpha \cos \theta}} \,\d\theta \,.
\]