Let vector A=i cap A cosx+j cap A sinx , be any vector. Another vector B which is perpendicular to A can be expressed as?

well, you need AB = 0

So, let

B = A sin x >b>i - A cosx j