A square with each side equal to a lies above the x-axis and has one vertex at the origin. One of the sides passing through the origin makes an angle α(0<α<π4) with the positive direction of the x-axis. Equation of a diagonal of the square is
y(sin α+cos α)+x(cos α−sin α)=a