Let `veca=xhati+yhatj+zhatk`
then `veca.hati=(xhati+yhatj+zhatk).hati=x and veca. (hati+hatj)=x+y`
`and veca.(hati+hatj=hatk)=x+y+z("given that" x=x+y=x+y+z)`
now, `x=x+y Rightarrow y =0 and x+y =x+y+z Rightarrow z=0`
Hence, x =1 ( sicne `veca` is a unit vector)
`veca=veci`