The two waves represented by y1=asin(ωt) and y2=bcos(ωt) have a phase difference of
0
π2
π
π4
y1=asinωt, and y2=bcosωt=bsinωt+π2 So phase difference ϕ=π2