do you think you could explain to me which of these are not a function and why?

1.{(x,y)|y=cosx}
2.{(x,y)|x=y}
3. {(x,y)|y=3^x}
4.{(x,y)|x=3}