Answers
1. a=aiei and b=biei. Their scalar product is a⋅b=aibjei⋅ej, where ei⋅ej=δij following the orthonormal coordinate system. Hence, a⋅b=aibi (Normally, we use this without any derivation.)
2. We require that ei⋅ej=δij, i.e. ∣ei∣=1 and ei is perpendicular to ej if j=i. Furthermore, we require that it is right-handed, i.e. e3=e1×e2.