Given A=[1042]\displaystyle {A}={\left[\begin{array}{c} {1}\\{0}\\{4}\\-{2}\end{array}\right]} and B=[6718]\displaystyle {B}={\left[\begin{array}{cccc} {6}&-{7}&-{1}&{8}\end{array}\right]} , find AB\displaystyle {A}{B}  and BA\displaystyle {B}{A} .

AB=\displaystyle {A}{B}=   

BA=\displaystyle {B}{A}=   



Hint: Matrices need to be entered as [(elements of row 1 separated by commas), (elements of row 2 separated by commas), (elements of each row separated by commas)].

Example: C=[123456]\displaystyle {C}={\left[\begin{array}{ccc} {1}&{2}&{3}\\{4}&{5}&{6}\end{array}\right]} would be entered as [(1, 2, 3), (4, 5, 6)]