Show that $Y = a+bX$, then \\
\[
\rho(X,Y) = \left\{\begin{array}{lr}
+1, & \text{if } b>0\\
-1, & \text{if } b<0\\
\end{array}\right\}
\]
By the definition of the correlation coefficient between two random variables X and Y, we have\\
$\rho (X,Y) = \frac{Cov(X,Y)}{\sqrt{Var(X)} \sqrt{Var(Y)}}$\\
Since $Y=a+bx$, we obtain\\
$\rho (X,Y) = \frac{Cov(X,Y)}{\sqrt{Var(X)} \sqrt{Var(a+bx)}}$\\
Since $Var(a+bx)=b^2Var(x)$\\
$\rho (X,Y) = \frac{Cov(X,Y)}{\sqrt{Var(X)} \sqrt{b^2Var(x)}}$\\
$\rho (X,Y) = \frac{Cov(X,Y)}{\sqrt{(Var(X)^2b^2}}$\\