\documentclass[a4paper]{article} \usepackage{fancyhdr} \usepackage{extramarks} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{tikz} \usepackage{pgfplots} \usepackage[plain]{algorithm} \usepackage{algpseudocode} \usepackage{enumitem} \usepackage{framed} \usepackage{multicol} \graphicspath{ {./images/} } \usetikzlibrary{automata,positioning} % % Basic Document Settings % \topmargin=-0.45in \evensidemargin=0in \oddsidemargin=0in \textwidth=6.5in \textheight=9.0in \headsep=0.25in \linespread{1.1} \pagestyle{fancy} \lhead{\hmwkAuthorName} \chead{\hmwkClass\ : \hmwkTitle} \rhead{\firstxmark} \lfoot{\lastxmark} \cfoot{\thepage} \renewcommand\headrulewidth{0.4pt} \renewcommand\footrulewidth{0.4pt} \setlength\parindent{0pt} % % Create Problem Sections % \newcommand{\enterProblemHeader}[1]{ \nobreak\extramarks{}{Question \arabic{#1} continued on next page\ldots}\nobreak{} \nobreak\extramarks{Question \arabic{#1} (continued)}{Question \arabic{#1} continued on next page\ldots}\nobreak{} } \newcommand{\exitProblemHeader}[1]{ \nobreak\extramarks{Question \arabic{#1} (continued)}{Question \arabic{#1} continued on next page\ldots}\nobreak{} \stepcounter{#1} \nobreak\extramarks{Question \arabic{#1}}{}\nobreak{} } \setcounter{secnumdepth}{0} \newcounter{partCounter} \newcounter{homeworkProblemCounter} \setcounter{homeworkProblemCounter}{1} \nobreak\extramarks{Question \arabic{homeworkProblemCounter}}{}\nobreak{} \newenvironment{homeworkProblem}[1][-1]{ \ifnum#1>0 \setcounter{homeworkProblemCounter}{#1} \fi \section{Question \arabic{homeworkProblemCounter}} \setcounter{partCounter}{1} \enterProblemHeader{homeworkProblemCounter} }{ \exitProblemHeader{homeworkProblemCounter} } \newcommand{\hmwkClass}{INF 1004 Mathematics 2} \newcommand{\hmwkTitle}{Tutorial\ Save\ My\ Grades} \newcommand{\hmwkAuthorName}{\textbf{Woon Jun Wei}} \newcommand{\hmwkStudentID}{\textbf{2200624}} \title{ \vspace{2in} \textmd{\textbf{\hmwkClass \\ \hmwkTitle}}\\ \vspace{3in} } \author{\hmwkAuthorName \\ \hmwkStudentID} \date{\today} \renewcommand{\part}[1]{\textbf{\large Part \arabic{partCounter}}\stepcounter{partCounter}\\} % % Various Helper Commands % % Useful for algorithms \newcommand{\alg}[1]{\textsc{\bfseries \footnotesize #1}} % For derivatives \newcommand{\deriv}[1]{\frac{\mathrm{d}}{\mathrm{d}x} (#1)} % For partial derivatives \newcommand{\pderiv}[2]{\frac{\partial}{\partial #1} (#2)} % Integral dx \newcommand{\dx}{\mathrm{d}x} % Alias for the Solution section header \newcommand{\solution}{\textbf{\large My Solution\\}} \newcommand{\answer}{\textbf{\large Sample Solutions\\}} % Probability commands: Expectation, Variance, Covariance, Bias \newcommand{\E}{\mathrm{E}} \newcommand{\Var}{\mathrm{Var}} \newcommand{\Cov}{\mathrm{Cov}} \newcommand{\Bias}{\mathrm{Bias}} \def\therefore{\boldsymbol{\text{ } \leavevmode \lower0.4ex\hbox{$\cdot$} \kern-.5em\raise0.7ex\hbox{$\cdot$} \kern-0.55em\lower0.4ex\hbox{$\cdot$} \thinspace\text{ }}} \begin{document} \maketitle \pagebreak \begin{homeworkProblem} Remove vector $u=(-1,3,-4,2)$ from vector $v=(-2,2,2,5,6)$\\ \solution \end{homeworkProblem} \pagebreak \begin{homeworkProblem} Note the difference in the order between remove from and project onto.\\ Project vector $u=(-1,3,-4,2)$ onto vector $v=(3,-3,-1,1)$\\ \solution \end{homeworkProblem} \pagebreak \begin{homeworkProblem} $$ \begin{align*} x+4y+2z &=5.5\\ -5x-22y-5z &= -45.5\\ 2x+4z+14z &=-25 \end{align*} $$ \begin{itemize} \item Show as an itermediate step the augmented matrix when for the first time the zeroth coulmn became a one-hot vector after performing transformations \item Show as an intermediate step the augmented matrix when for the first time the augmented matrix is in row echelon form. \item Write the set of all solutions as a single vector or a combination of vectors, None if there is no solution \end{itemize} \solution \end{homeworkProblem} \pagebreak \begin{homeworkProblem} $$ \begin{align*} x+3y-5z &=2.75\\ 3x+12y-13z &=-9.75\\ -4x-6z+25z &=-46.25 \text{(might be -6y)} \end{align*} $$ \begin{itemize} \item Show as an itermediate step the augmented matrix when for the first time the zeroth coulmn became a one-hot vector after performing transformations \item Show as an intermediate step the augmented matrix when for the first time the augmented matrix is in row echelon form. \item Write the set of all solutions as a single vector or a combination of vectors, None if there is no solution \end{itemize} \solution \end{homeworkProblem} \pagebreak \begin{homeworkProblem} Compute the inverse of $$ \begin{align*} A_0 &= \begin{bmatrix}9&-2\\3&-4\end{bmatrix}\\ A_1 &= \begin{bmatrix}10&3\\8&4\end{bmatrix}\\ \end{align*} $$ Use these inverses to Solve $$ \begin{align*} A_0x &= \begin{bmatrix}1\\-2\end{bmatrix}\\ A_1x &= \begin{bmatrix}-7\\4\end{bmatrix}\\ \end{align*} $$ \begin{itemize} \item Are they invertible? \item Which of them has full rank? WHich one of them has lower rank and which one? \end{itemize} \solution \end{homeworkProblem} \pagebreak \begin{homeworkProblem} Compute the determinant of $$ \begin{align*} A &= \begin{bmatrix}3&-1&4\\5&2.5&3\\1&8&-6\end{bmatrix}\\ A &= \begin{bmatrix}3&-2&0.5\\2.5&-3&1\\3&2&4\end{bmatrix}\\ A &= \begin{bmatrix}2&-2&2\\8&3&-2\\10&-4.5&5\end{bmatrix}\\ \end{align*} $$ \solution \end{homeworkProblem} \pagebreak \begin{homeworkProblem} What is the determinant of this matrix? Write it as a polynomial in $c$.\\ For what value $c$ the matrix is not invertible? $$ A = \begin{bmatrix}6&-3&c\\5&2&2\\-2&-6&-2\end{bmatrix} $$ \solution \end{homeworkProblem} \pagebreak \begin{homeworkProblem} Compute and apply the Householder matrix which makes transforms the first column of $A$ to a multipile of the first one-hot vector for $$ A = \begin{bmatrix}8&1&2\\4&-1&3\\-8&4&2\end{bmatrix} $$ and for (Subtracting is nicer)\\ $$ A = \begin{bmatrix}3&-4&3\\\sqrt{2}&6&4\\\sqrt{5}&3&2\end{bmatrix} $$ \end{homeworkProblem} \pagebreak \end{document}