Adding a risk-free asset
Combine a risk-free asset, earning R_f with no variance, with a risky portfolio P. Putting a fraction y in P gives:
E(R_c) = R_f + y x [E(R_P) - R_f], and σ_c = y x σ_P
Substituting, every combination lies on a straight line, the capital allocation line (CAL):
E(R_c) = R_f + {[E(R_P) - R_f] / σ_P} x σ_c
Its slope, excess return per unit of risk, is the Sharpe ratio of P. The best CAL touches the efficient frontier at a single point, the optimal risky portfolio, because no other risky mix offers more excess return per unit of risk. A weight above 1 means borrowing at R_f to buy more of P. If borrowing costs more than lending earns, the line bends down beyond y = 1.
Example: R_f = 3%; the optimal risky portfolio has E(R) = 10% and σ = 20%; the slope is (10 - 3) / 20 = 0.35. Investing 130% (borrowing 30%) gives E(R) = 3 + 1.3 x 7 = 12.1% with σ = 1.3 x 20 = 26%.