Sketch the graph of
\[ y= \dfrac1 { x \ln x} \text{ for \(x>0\), \(x\ne1\)}.\]
You may assume that \(x\ln x \to 0\) as \(x\to 0\).
The continuous random variable \(X\) has probability density function
\[
\f(x) = \begin{cases}
\dfrac \lambda {x\ln x}& \text{for \(a\le x \le b\)}\;, \\[3mm]
\ \ \ 0 & \text{otherwise },
\end{cases}
\]
where \(a\), \(b\) and \(\lambda\) are suitably chosen constants.
In the case \(a=1/4\) and \(b=1/2\), find \(\lambda\,\).
In the case \(\lambda=1\) and \(a>1\), show that \(b=a^\e\).
In the case \(\lambda =1\) and \(a=\e\), show that
\(\P(\e^{3/2}\le X \le \e^2)\approx \frac {31}{108}\,\).
In the case \(\lambda =1\) and \(a=\e^{1/2}\), find
\(\P(\e^{3/2}\le X \le \e^2)\;\).
If \(\lambda = 1, a = e, b = e^e\), then
\begin{align*}
\P(\e^{3/2}\le X \le \e^2) &= \int_{e^{3/2}}^{e^2} \frac{1}{x \ln x} \, dx \\
&= \left [ \ln \ln x \right]_{e^{3/2}}^{e^2} \\
&= \ln 2 - \ln \frac{3}{2} \\
&= \ln \frac{4}{3} \\
&= \ln \l 1 + \frac{1}{3} \r \\
&\approx \frac{1}{3} - \frac{1}{2 \cdot 3^2} + \frac{1}{3 \cdot 3^3} - \frac{1}{4 \cdot 3^4} \\
&= \frac{31}{108}
\end{align*}
Note that \(2 > e^{\frac12} > 1\) so \(a = e^{\frac12}, b = e^{\frac{e}2}\). Since \(3 > e \Rightarrow e^{3/2} > e^{\frac{e}{2}}\) this probability is out of range, therefore \(\P(\e^{3/2}\le X \le \e^2) = 0\)
Sketch the graph, for \(x \ge 0\,\), of
$$
y = kx\e^{-ax^2} \;,
$$
where \(a\) and \(k\) are positive constants.
The random variable \(X\) has probability density function
\(\f(x)\) given by
\begin{equation*}
\f(x)=
\begin{cases}
kx\e^{-ax^2} & \text{for \(0 \le x \le 1\)}\\[3pt]
0 & \text{otherwise}.
\end{cases}
\end{equation*}
Show that \(\displaystyle k=\frac{2a}{1-\e^{-a}}\) and find the mode \(m\) in terms of \(a\,\), distinguishing between the cases \(a < \frac12\) and \(a > \frac12\,\).
Find the median \(h\) in terms of \(a\), and show that \(h > m\) if \(a > -\ln\left(2\e^{-1/2} - 1\right).\)
Show that, \(-\ln\left(2\e^{-1/2}-1\right)> \frac12 \,\).
Show also that, if \(a > -\ln\left(2\e^{-1/2} - 1\right) \,\), then
$$
P(X > m \;\vert\; X < h) =
{{2\e^{-1/2}-\e^{-a}-1} \over 1-\e^{-a}}\;.
$$
Solution:
\begin{align*}
&& 1 &= \int_0^1 f(x) \d x \\
&&&= \int_0^1 kx e^{-ax^2} \d x \\
&&&= \left [-\frac{k}{2a}e^{-ax^2} \right]_0^1 \\
&&&= \frac{k(1-e^{-a})}{2a} \\
\Rightarrow && k &= \frac{2a}{1-e^{-a}}
\end{align*}
To find the mode, we want \(f'(x) = 0\), ie
\begin{align*}
&& 0 &= f'(x) \\
&&&= -2kax^2e^{-ax^2} + k e^{-ax^2} \\
&&&= ke^{-ax^2} \left (1-2ax^2 \right)\\
\end{align*}
So either \(m = \frac{1}{\sqrt{2a}}\) (if \(a > \frac12\)) or \(f(x)\) is increasing and the mode is \(m = 1\) (if \(a < \frac12\)).
\begin{align*}
&& \frac12 &= \int_0^h f(x) \d x \\
&&&= \left [ -\frac{e^{-ax^2}}{1-e^{-a}} \right]_0^h \\
&&&= \frac{1-e^{-ah^2}}{1-e^{-a}} \\
\Rightarrow && e^{-ah^2}&= 1-\frac12(1-e^{-a}) \\
\Rightarrow && -a h^2 &= \ln \left ( \frac12(1+e^{-a}) \right) \\
\Rightarrow && h &= \sqrt{-\frac1a \ln (\tfrac12(1+e^{-a}))}
\end{align*}
\(h > m\) already means \(a > \frac12\) so
\begin{align*}
&& h &> m \\
\Leftrightarrow &&\sqrt{-\frac1a \ln (\tfrac12(1+e^{-a}))} &> \frac{1}{\sqrt{2a}} \\
\Leftrightarrow && -\ln (\tfrac12(1+e^{-a})) &> \frac12 \\
\Leftrightarrow && e^{-1/2} & > \frac12(1+e^{-a}) \\
\Leftrightarrow && 2e^{-1/2}-1 &>e^{-a} \\
\Leftrightarrow && \ln(2e^{-1/2}-1) &>-a \\
\Leftrightarrow && a& > -\ln(2e^{-1/2}-1) \\
\end{align*}
Noting that
\begin{align*}
&& -\ln(2e^{-1/2} - 1) &= -\ln \left (\frac{2-\sqrt{e}}{e^{1/2}} \right) \\
&&&= \frac12 -\ln(\underbrace{2 - \sqrt{e}}_{<1}) \\
&&&> \frac12
\end{align*}
If \(a > -\ln(2e^{-1/2}-1)\) then
\begin{align*}
&& \mathbb{P}(X > m | X < h) &= \frac{\mathbb{P}(m < X < h)}{\mathbb{P}(X < h)} \\
&&&= \frac{e^{-am^2}-e^{-ah^2}}{1-e^{-ah^2}} \\
&&&= \frac{e^{-a\frac{1}{2a}}-e^{\ln \left ( \frac12(1+e^{-a}) \right)}}{1-e^{\ln \left ( \frac12(1+e^{-a}) \right)}} \\
&&&= \frac{e^{-1/2}-\frac12(1+e^{-a})}{1-\frac12(1+e^{-a})} \\
&&&= \frac{2e^{-1/2}-1-e^{-a}}{1-e^{-a}}
\end{align*}
as required.