Hello I'm trying to prove the following Let ABCD be a square where X is the midpoint of segment AB and BY = (1/4)BC where DXY is a triangle Prove DXY is a right triangle (using coordinate approach)
Diagram of what im trying to show
Now I'm not quite sure how to approach this problem, My idea on approaching the proble is to show XY and XD have negative reciproals of one another i.e same slope just one is negative and one is positive. Yet I am unsure because of the whole square that encompasses the triangle is supposed to used.

Here is a possible way to solve the problem: Our aim is to prove that $\angle YXD=90^\circ$
Let, the side length of the square be $l$.
As given (See diagram), $AX=BX=\frac{l}{2}$ and $BY=\frac{1}{2}BX=\frac{1}{2}AX$. Let, $\angle BYX=p,\angle BXY=q, \angle AXD=r, \angle ADX=r$.
Then clearly $r+s=90^\circ$. Also $\frac{BY}{BX}=\frac{XA}{AD}=\frac{1}{2}\implies q=s$ and since $\angle A=\angle B=90^\circ$ hence $p=r$. Thus $q+r=90^\circ\implies\angle XYD=90^\circ$. This completes the proof.