\documentclass[a4paper,12pt]{article}
\begin{document}
\parindent=0pt

{\bf Question}

The cdf of a continuous r.v. $Y$ is given by

$$F(y)=\left\{\begin{array}{ll} 0, & {\rm for}\
y<0,\\2\frac{y^2}{\theta}, & {\rm for}\ 0 \leq y \leq
\frac{\theta}{2},\\ 1-\frac{2(\theta-y)^2}{\theta^2}, & {\rm for}\
\frac{\theta}{2} \leq y \leq \theta,\\ 1, & {\rm for}\ y>\theta,
\end{array} \right.$$

where $\theta$ is a positive constant.  Find the pdf of $Y$, and
sketch the cdf and the pdf of $Y$.

\medskip

{\bf Answer}

From the relationship between pdf an cdf

$$f(y)=\frac{dF(y)}{dy}=\left\{\begin{array}{ll} 0, &
y<0\\\frac{4y}{\theta^2}, & 0\leq y\leq
\frac{\theta}{2}\\\frac{4(\theta-y)}{\theta^2}, &
\frac{\theta}{2}\leq y\leq \theta\\0, & \theta <y \end{array}
\right.$$

\end{document}
