A square of side a lies above the x-axis and has one vertex at the origin. The side passing through the origin makes an angle α where 0<α<π4 with the positive direction of x- axis. The equation of its diagonal not passing through the origin is
Equation of AB⇒y=tanαx
& equation of AD⇒y=tan(90+α)x
Point B=(acosα,asinα)
And point D=(−acos(90−x),asin(90−α))=(−asinα,acosα)
Equation of DB is
y−asinα=(sinα−cosαsinα+cosα)(x−acosα)
(sinα+cosα)y−x(sinα−cosα)=a(sin2α+cos2α)
y(sinα+cosα)+x(cosα−sinα)=a