Finding the scalar product of two vectors, a and b. a is made up of components a1i and a2j whilst b has components b1i and b2j. The scalar product is given by a · b.