\[\begin{pmatrix} \color{red}{1} & \color{red}{2} \\ 2 & 2 \end{pmatrix} \begin{pmatrix} \color{red}{3} \\ \color{red}{5} \end{pmatrix} = \begin{pmatrix} \color{red}{13} \\ 16 \end{pmatrix} \]
\[\begin{pmatrix} 1 & 2 \\ \color{red}{2} & \color{red}{2} \end{pmatrix} \begin{pmatrix} \color{red}{3} \\ \color{red}{5} \end{pmatrix} = \begin{pmatrix} 13 \\ \color{red}{16} \end{pmatrix} \]
\[\begin{pmatrix} 1 & 2 \\ \color{red}{2} & \color{red}{2} \end{pmatrix} \begin{pmatrix} \color{red}{3} \\ \color{red}{5} \end{pmatrix} = \begin{pmatrix} 13 \\ \color{red}{16} \end{pmatrix} \]
\[\begin{pmatrix} \color{red}{1} & \color{red}{2} \\ 2 & 2 \\ 3 & 2\end{pmatrix} \begin{pmatrix} \color{red}{3} & 2 \\ \color{red}{5} & 4 \end{pmatrix} = \begin{pmatrix} \color{red}{13} & 10 \\ 16 & 12 \\ 19 & 14 \end{pmatrix} \]
\[\begin{pmatrix} 1 & 2 \\ \color{red}{2} & \color{red}{2} \\ 3 & 2\end{pmatrix} \begin{pmatrix} \color{red}{3} & 2 \\ \color{red}{5} & 4 \end{pmatrix} = \begin{pmatrix} 13 & 10 \\ \color{red}{16} & 12 \\ 19 & 14 \end{pmatrix} \]
\[\begin{pmatrix} 1 & 2 \\ 2 & 2 \\ \color{red}{3} & \color{red}{2}\end{pmatrix} \begin{pmatrix} \color{red}{3} & 2 \\ \color{red}{5} & 4 \end{pmatrix} = \begin{pmatrix} 13 & 10 \\ 16 & 12 \\ \color{red}{19} & 14 \end{pmatrix} \]
\[\begin{pmatrix} \color{red}{1} & \color{red}{2} \\ 2 & 2 \\ 3 & 2\end{pmatrix} \begin{pmatrix} 3 & \color{red}{2} \\ 5 & \color{red}{4} \end{pmatrix} = \begin{pmatrix} 13 & \color{red}{10} \\ 16 & 12 \\ 19 & 14 \end{pmatrix} \]
\[\begin{pmatrix} 1 & 2 \\ \color{red}{2} & \color{red}{2} \\ 3 & 2\end{pmatrix} \begin{pmatrix} 3 & \color{red}{2} \\ 5 & \color{red}{4} \end{pmatrix} = \begin{pmatrix} 13 & 10 \\ 16 & \color{red}{12} \\ 19 & 14 \end{pmatrix} \]
\[\begin{pmatrix} 1 & 2 \\ 2 & 2 \\ \color{red}{3} & \color{red}{2}\end{pmatrix} \begin{pmatrix} 3 & \color{red}{2} \\ 5 & \color{red}{4} \end{pmatrix} = \begin{pmatrix} 13 & 10 \\ 16 & 12 \\ 19 & \color{red}{14} \end{pmatrix} \]
\[ \begin{pmatrix} w_1 & \cdots & w_n \end{pmatrix} \begin{pmatrix} \text{var}_1 & \cdots & \text{cov}_{1n} \\ \vdots & \vdots & \vdots \\ \text{cov}_{1n} & \cdots & \text{var}_n \end{pmatrix} \begin{pmatrix} w_1 \\ \vdots \\ w_n \end{pmatrix}\]
\[ \begin{pmatrix} 1 & \cdots & 1 \\ \mu_1 & \cdots & \mu_n \end{pmatrix} \begin{pmatrix} w_1 \\ \vdots \\ w_n \end{pmatrix} = \begin{pmatrix} 1 \\ \mu_{\text{target}}\end{pmatrix}\]
\[ \begin{pmatrix} -1 & 0 & \cdots & 0 & 0\\ \vdots & \vdots & \vdots & \vdots & \vdots \\ 0 & 0 & \cdots & 0 & -1 \end{pmatrix} \begin{pmatrix} w_1 \\ \vdots \\ w_n \end{pmatrix} \le \begin{pmatrix} 0 \\ \vdots \\ 0 \end{pmatrix}\]
\[\begin{pmatrix} \mu_1 - r_f & \cdots & \mu_n - r_f \end{pmatrix} \begin{pmatrix} w_1 \\ \vdots \\ w_n \end{pmatrix}\]