A list consists only of letters \(A\) and \(B\) arranged in a row. In the list, there are \(a\) letter \(A\)s and \(b\) letter \(B\)s, where \(a\ge2\) and \(b\ge2\), and \(a+b=n\). Each possible ordering of the letters is equally probable. The random variable \(X_1\) is defined by \[ X_1 = \begin{cases} 1 & \text{if the first letter in the row is \(A\)};\\ 0 & \text{otherwise.} \end{cases} \] The random variables \(X_k\) (\(2 \le k \le n\)) are defined by \[ X_k = \begin{cases} 1 & \text{if the \((k-1)\)th letter is \(B\) and the \(k\)th is \(A\)};\\ 0 & \text{otherwise.} \end{cases} \] The random variable \(S\) is defined by \(S = \sum\limits_ {i=1}^n X_i\,\).
Solution:
The line \(L\) has equation \(y=c-mx\), with \(m>0\) and \(c>0\). It passes through the point \(R(a,b)\) and cuts the axes at the points \(P(p,0)\) and \(Q(0,q)\), where \(a\), \(b\), \(p\) and \(q\) are all positive. Find \(p\) and \(q\) in terms of \(a\), \(b\) and \(m\). As \(L\) varies with \(R\) remaining fixed, show that the minimum value of the sum of the distances of \(P\) and \(Q\) from the origin is \((a^{\frac12} + b^{\frac12})^2\), and find in a similar form the minimum distance between \(P\) and \(Q\). (You may assume that any stationary values of these distances are minima.)
Solution: \begin{align*} && b &= c - ma \\ \Rightarrow && c &= b+ma \\ \Rightarrow && y &= m(a-x)+b \\ \Rightarrow && q &= ma+b \\ && p &= \frac{ma+b}{m} \\ \\ && d &= p+q \\ &&&= a + \frac{b}{m} + ma + b \\ \Rightarrow && d' &= -bm^{-2}+a \\ \Rightarrow && m &= \sqrt{b/a} \\ \\ \Rightarrow &&d &= a + \sqrt{ba}+\sqrt{ba} + b \\ &&&= (\sqrt{a}+\sqrt{b})^2 \\ \\ && |PQ|^2 &= p^2 + q^2 \\ &&&= a^2 + \frac{2ab}{m} + \frac{b^2}{m^2} + m^2a^2 + 2mab + b^2 \\ &&&= a^2+b^2 + \frac{b^2}{m^2} + \frac{2ab}{m}+ 2abm + a^2m^2 \\ && \frac{\d}{\d m}&= -2b^2m^{-3}-2abm^{-2}+2ab + 2a^2m \\ && 0 &=2a^2m^4+2abm^3-2abm-2b^2 \\ &&&= 2(am^3-b)(am+b) \\ \Rightarrow && m &= \sqrt[3]{\frac{b}{a}} \\ \\ &&|PQ|^2 &= \left[ a^{1/3}(a^{2/3} + b^{2/3}) \right]^2 + \left[ b^{1/3}(a^{2/3} + b^{2/3}) \right]^2 \\ &&&= a^{2/3}(a^{2/3} + b^{2/3})^2 + b^{2/3}(a^{2/3} + b^{2/3})^2 \\ &&&= (a^{2/3} + b^{2/3})^2 \cdot (a^{2/3} + b^{2/3}) \\ &&&= (a^{2/3} + b^{2/3})^3 \\ \Rightarrow && |PQ| &= (a^{2/3} + b^{2/3})^{3/2} \end{align*} We can also do this with AM-GM instead: \begin{align*} && d &= a + b + \frac{b}{m} + am \\ &&&\geq a+b + 2 \sqrt{\frac{b}{m} \cdot am} \\ &&&= a+2\sqrt{ab}+b \\ \\ && |PQ|^2 &= a^2+b^2 + \frac{b^2}{m^2} + \frac{2ab}{m}+ 2abm + a^2m^2 \\ &&&= a^2+b^2 + \frac{b^2}{m} + abm + abm + a^2m^2 + \frac{ab}{m} + \frac{ab}{m} \\ &&&= a^2+b^2 + 3\sqrt[3]{ \frac{b^2}{m} \cdot abm \cdot abm} + 3 \sqrt[3]{ a^2m^2 \cdot \frac{ab}{m} \cdot \frac{ab}{m} } \\ &&&= a^2 + 3b^{4/3}a^{2/3}+3b^{2/3}a^{4/3}+b^2 \\ &&&= (a^{2/3}+b^{2/3})^3 \end{align*}
Solution:
Solution:
The curve \(C\) has equation \(xy = \frac12\). The tangents to \(C\) at the distinct points \(P\big(p, \frac1{2p}\big)\) and \(Q\big(q, \frac1{2q}\big)\) where \(p\) and \(q\) are positive, intersect at \(T\) and the normals to \(C\) at these points intersect at \(N\). Show that \(T\) is the point \[ \left( \frac{2pq}{p+q}\,,\, \frac 1 {p+q}\right)\!. \] In the case \(pq=\frac12\), find the coordinates of \(N\). Show (in this case) that \(T\) and \(N\) lie on the line \(y=x\) and are such that the product of their distances from the origin is constant.
Solution: \begin{align*} && \frac{\d y}{\d x} &= -\frac1{2x^2} \\ \Rightarrow && \frac{y - \frac{1}{2p}}{x - p} &= - \frac{1}{2p^2} \\ \Rightarrow && y - \frac1{2p} &= -\frac{1}{2p^2}x +\frac1{2p} \\ \Rightarrow && y +\frac{1}{2p^2}x &= \frac1p \\ \Rightarrow && 2p^2 y + x &= 2p\\ \Rightarrow && 2q^2 y + x &= 2q \\ \Rightarrow && (p^2-q^2)y &= p-q \\ \Rightarrow && y &= \frac{1}{p+q} \\ && x &= \frac{2pq}{p+q} \end{align*} \begin{align*} \text{normal}: && \frac{y-\frac1{2p}}{x-p} &= 2p^2 \\ \Rightarrow && y - \frac1{2p} &= 2p^2x - 2p^3 \\ \Rightarrow && 2py -4p^3x &= 1-4p^4 \\ \Rightarrow && 2qy -4q^3x &= 1-4q^4 \\ pq = \tfrac12: && y - 2p^2 x &= q-2p^3 \\ && y - 2q^2 x &= p-2q^3 \\ \Rightarrow && (2q^2-2p^2)x &= q-p +2q^3-2p^3 \\ &&&= (q-p)(q+p+2q^2+1+2p^2) \\ \Rightarrow && x &= \frac{1+2(p^2+q^2)+1}{2(p+q)} \\ &&&= \frac{1+2(p^2+q^2+2pq-1)+1}{2(p+q)} \\ &&&= p+q\\ && y &= 2p^2 \left ( p+q \right) + q - 2p^3 \\ &&&= p+q \end{align*} So \(N(p+q, p+q)\) and \(T\left (\frac{1}{p+q}, \frac{1}{p+q} \right)\), so both points lie on \(y = x\). \[ OT \cdot ON = \frac{\sqrt{2}}{p+q} \cdot (p+q)\sqrt{2} = 2 \] which is clearly constant.
Show that \[ \int_0^{\frac14\pi} \sin (2x) \ln(\cos x)\, \d x = \frac14(\ln 2 -1)\,, \] and that \[ \int_0^{\frac14\pi} \cos (2x) \ln(\cos x)\, \d x = \frac18(\pi -\ln 4-2)\,. \] Hence evaluate \[ \int_{\frac14\pi}^{\frac12\pi} \big ( \cos(2x) + \sin (2x)\big) \, \ln \big( \cos x + \sin x\big)\, \d x\,. \]
Solution: \begin{align*} &&\int_0^{\frac14\pi} \sin (2x) \ln(\cos x)\, \d x &= \int_0^{\frac14 \pi} 2 \sin x \cos x \ln (\cos x) \d x \\ u = \cos \theta :&&&= \int_{u=1}^{u=\frac1{\sqrt2}} -2u \ln u \d u \\ &&&= \int_{\frac1{\sqrt{2}}}^1 2u \ln u \d u \\ &&&= \left [u^2 \ln u \right]_{\frac1{\sqrt{2}}}^1-\int_{\frac1{\sqrt{2}}}^1 u \d u \\ &&&= -\frac12 \ln \frac{1}{\sqrt{2}} - \l\frac12 - \frac14 \r \\ &&&= \frac14 (\ln 2 - 1) \end{align*} \begin{align*} && \int_0^{\frac14\pi} \cos (2x) \ln(\cos x)\, \d x &= \left [ \frac12 \sin 2x \ln (\cos x) \right]_0^{\frac14\pi}- \int_0^{\frac14\pi} \frac12 \sin 2x \frac{-\sin x}{\cos x} \d x \\ &&&=\frac12 \ln \frac{1}{\sqrt{2}}+\int_0^{\frac14\pi} \sin^2 x \d x \\ &&&= -\frac14 \ln 2 + \int_0^{\frac14\pi} \frac{1-\cos 2x }{2} \d x \\ &&&= -\frac14 \ln 2 +\frac{\pi}{8} -\frac{1}{4} \\ &&&= \frac18 (\pi - 2\ln 2 - 2) \\ &&&= \frac18 (\pi - \ln 4 - 2) \\ \end{align*} Notice that \(\cos x + \sin x = \sqrt{2} \cos (x -\frac{\pi}{4})\), so: \begin{align*} &&\int_{\frac14\pi}^{\frac12\pi} \big ( \cos(2x) + \sin (2x)\big) \ln \big( \cos x + \sin x\big)\d x &= \int_{\frac14\pi}^{\frac12\pi} \big ( \cos(2x) + \sin (2x)\big) \ln (\sqrt{2} \cos ( x - \frac{\pi}{4}) ) \d x \\ &&&= \int_{u=0}^{u=\frac{\pi}{4}} \l \cos(2u+\frac{\pi}{2})+\sin(2u+\frac{\pi}{2}) \r \cdot \l \frac12 \ln 2 +\ln (\cos u) \r \d x \\ &&&= \int_{0}^{\frac{\pi}{4}} \l -\sin 2u+\cos 2u \r \cdot \l \frac12 \ln 2 +\ln (\cos u) \r \d x \\ &&&= \frac14 \ln 2\left [ \cos 2u + \sin 2u \ \right]_{0}^{\frac{\pi}{4}} - \frac14(\ln2 - 1) + \frac18\pi - \frac14(\ln 2 +1) \\ &&&= \frac{\pi}{8}-\frac12 \ln 2 \end{align*}
A thin circular path with diameter \(AB\) is laid on horizontal ground. A vertical flagpole is erected with its base at a point \(D\) on the diameter \(AB\). The angles of elevation of the top of the flagpole from \(A\) and \(B\) are \(\alpha\) and \(\beta\) respectively (both are acute). The point \(C\) lies on the circular path with \(DC\) perpendicular to \(AB\) and the angle of elevation of the top of the flagpole from \(C\) is \(\phi\). Show that \(\cot\alpha\cot \beta = \cot^2\phi\). Show that, for any \(p\) and \(q\), \[ \cos p \cos q \sin^2\tfrac12(p+q) - \sin p\sin q \cos^2 \tfrac12 (p+q) = \tfrac12 \cos(p+q) -\tfrac12 \cos(p+q)\cos(p-q) .\] Deduce that, if \(p\) and \(q\) are positive and \( p+q \le \tfrac12 \pi\), then \[ \cot p\cot q\, \ge \cot^2 \tfrac12(p+q) \, \] and hence show that \(\phi \le \tfrac12(\alpha+\beta)\) when \( \alpha +\beta \le \tfrac12 \pi\,\).
Solution:
A sequence of numbers \(t_0\), \(t_1\), \(t_2\), \(\ldots\,\) satisfies \[ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ t_{n+2} = p t_{n+1}+qt_{n} \ \ \ \ \ \ \ \ \ \ (n\ge0), \] where \(p\) and \(q\) are real. Throughout this question, \(x\), \(y\) and \(z\) are non-zero real numbers.
Solution:
Solution: