Quadrilateral $ABCE$ is a parallelogram. Point $D$ lies on segment $AE$. The diagonals of quadrilateral $ABCD$ intersect at point P. If $△ABP∼△CBD$ and $AB<BC$, find the ratio $\frac{AB}{BC}$.
The code I wrote is as follows:
AA = {x, y}; BB = {0, 0}; CC = {c, 0}; EE = {c + x, y}; DD = t*AA + (1 - t)*EE; PP = k*AA + (1 - k)*CC; Solve[{ans == Norm[AA - BB]/Norm[BB - CC], PP == h*BB + (1 - h)* DD, (AA - BB) . (DD - BB)/(Norm[AA - BB] Norm[DD - BB]) == (CC - BB) . (DD - BB)/(Norm[CC - BB] Norm[DD - BB]), (AA - PP) . (AA - BB)/(Norm[AA - PP] Norm[AA - BB]) == (CC - DD) . (CC - BB)/(Norm[CC - DD] Norm[CC - BB])}, ans, {k, h, t, x, y, c}] But my computation has been running for a long time without producing any result.
An excellent answer @cvgmt noticed that the similarity conditions of triangles here can be converted into proportional relationships between sides, so he provided the following code — and this code runs extremely fast:
Clear["Global`*"]; AA = {x, y}; BB = {0, 0}; CC = {c, 0}; EE = {c + x, y}; DD = t*AA + (1 - t)*EE; PP = k*AA + (1 - k)*CC; assumptions = y > 0 && c > 0 && 0 < t < 1 && 0 < k < 1 && 0 < h < 1; Solve[{ans == Norm[AA - BB]/Norm[BB - CC], PP == h*BB + (1 - h)*DD, EuclideanDistance[AA, BB]/EuclideanDistance[CC, BB] == EuclideanDistance[BB, PP]/EuclideanDistance[BB, DD] == EuclideanDistance[PP, AA]/EuclideanDistance[DD, CC], assumptions}, ans, {k, h, t, x, y, c}] The detailed answer and discussion process can be found on this webpage:enter link description here
But In mathematical geometry problems, it's inevitable to encounter angle-related constraints—for example, $∠ABC = ∠CDF$, $∠ABC = 2∠PQR$, or $∠PKL = 75°$. Such conditions are often difficult to translate into relationships among side lengths. Given this, how should we formulate these constraints in Mathematica to help the solving system work more efficiently and speed up the solution process?
ex1: In $\mathrm{Rt}\triangle ABC$, $\angle C = 90^\circ$, $AC = BC = 4$. Point $D$ is the midpoint of $AB$. Point $E $ is a moving point on$ BC$. Point $F$ is on $AE$. $\angle EDF = \angle EAD$. Find the minimum value of DF.
ex2:In $\triangle ABC$, $AB > AC$, $AD$ is the median. If $\angle DAC = 2\angle BAD$ and $CF \perp AD$ at point $F$, then what is the value of $\frac{DF}{AC}$?
ex3:The side length of rhombus$ABCD$ is $8$. Point $E$ moves along side $BC$. Connect $AE$ and $ED$.If~$\angle ABC = 60^\circ$, extend~$DE$~and~$AB$~to meet at point~$F$. Connect~$AE$~and extend it to meet~$CF$~at point~$P$. Find the angle $\angle APC$
ex4:In quadrilateral $ABCD$, $\angle BCD = 90^\circ$, and the diagonals $AC$ and $BD$ intersect at point $O$. Given that $AB = AC = 5$, $BC = 6$, and $\angle ADB = 2\angle CBD$, find the length of $AD$.
ex5:In Rt$\triangle ABC$, $\angle ACB = 90^\circ$, $AC = BC$. Draw $BD \parallel AC$ through point $B$. Point $D$ is on the right side of point $B$. Connect $AD$. Point $F$ is the midpoint of $AD$, and $AF = AC$. Point $P$ is a moving point on the straight line $AC$. Connect $FP$, and rotate $FP$ counterclockwise around point $F$ by $60^\circ$ to get $FQ$. Connect $BQ$. Point $R$ is a moving point on the straight line $AD$. Connect $BR$ and $QR$. During the movement of point $P$, when $BQ$ attains its minimum value, fold $\triangle BQR$ along the straight line $QR$ in the plane to get $\triangle TQR$ (This means that $\triangle BQR$ and $\triangle TQR$ are symmetric with respect to $QR$.). Connect $FT$. During the movement of point $R$, directly write the maximum value of $\dfrac{FT}{CP}$. Answer:$\frac{\sqrt{6}+\sqrt{2}+2\sqrt{3}}{2}$ 



