Question 6In triangle $ABC$, $AC=2BC$, $\angle C=90^\circ$, and $D$ is the foot of the altitude from $C$ onto $AB$. A circle with diameter $AD$ intersects the segment $AC$ at $E$. Find $AE:EC$.