where i and j are unit vectors along x and y axes