 CoCalc Public Filessagelets / Problem_4.html
Author: Carl Eberhart
Views : 226
Description: A Sagemath interact to investigate quadrilaterals.
Compute Environment: Ubuntu 18.04 (Deprecated)
Sage Cell Server

#### Problem 4 from Quiz 2 of Wildberger's YouTube lectures on Rational Trigonometry

Problem: Suppose Q is a (convex) quadliateral with sides 5, 7, 8 and 9. Suppose also that the spread of the diagonals is 3/4. Find the diagonals of the quadrilateral. Generalize.

WildTrig Video 64

Solution: As it turns out there is no convex quadrilateral with the given sides and and a diagonal spread of 3/4. The minimum diagonal spread of a quadrilateral with sides 5,7,8,9 is approximately .7709, representing an acute angle of approximately 61.04 degrees. By changing the 5 to a 6, we can surmise from the Sage interact below that there is a unique quadrilateral with diagonal spread 3/4, although we don't know the exact quadrilateral.

A non convex quadrilateral with sides 5,7,8,9 and diagonal spread of 3/4.
If the quadrilateral is allowed to be non convex, then there are two solutions. The diagonals $AC$ and $BD$ are shown in red.  Question: Find the quadrilaterals with rational diagonal spread whose sides have integer length.
There are some easy examples -- Any kite with sides of integer length. Also, any quadrilateral with integer sides can be flexed to an infinite number of positions so that the diagonal spread is rational. Note: Partial solution.

A generalization of problem 4: Given the consecutive sides $a,b,c,d$ of a quadrilateral and the spread of the diagonals, determine the quadrilateral.

Discussion: As is remarked in the lecture, it is easy to prove that all you need is the 4 sides and 1 diagonal to completely determine the quadrilateral. You can also get by with the 4 sides and the angle between two adjacent sides. But, in general, four sides and the spread of the diagonals do not suffice, as you can see by experimenting with the Sage interact below.

Setup: Label the vertices of the quadrilateral $A,B,C,D$ in counterclock order with $AB=a$ at the bottom, $BC=b$ on the right, $CD=c$ at the top and $DA=d$ on the left. By relabeling, we can assume that $a\ge d \ge b$ and $a\ge c$. By scaling, normalize the quadrilateral so that $a=1$. Set up a coordinate system so that $A=(0,0)$ and $B=(1,0)$ and $C=(x_1,y_1)$ and $D=(x_2,y_2)$ lie above or on the $x$-axis.

We can imagine the quadrilateral flexing as $C$ moves along a circle of radius $b$ about $B$, starting at a triangle with sides of length $a=1$, $b+c$ (if $b+c \lt a+d$ ), and $d$ or a segment of length $a+d$ (if $b+c=a+d$) and ending at a triangle with sides $a$, $b$, and $c+d$ (if $b \lt d$) or sides $a+b$, $c$, and $d$ (if $a+b\lt c+d$) or a segment of length $a+b$ (if $a+b=c+d$). Note that \$a\lt b+c+d

This motion is controlled by the position of $x_1$, the first coordinate of $C$, for we can express $y_1, x_2, y_2$ in terms of $x_1$: $y_1=\sqrt{b^2-(1-x_1)^2}$, $x_2=(w\,z - \sqrt {disc})/(1+z^2)$ where $z=x_1/y_1$, $w=(d^2-c^2+b^2-1+2\,x_1)/(2\,y_1)$, and $disc= d^2\,(1+z^2)-w^2$, and $y_2=\sqrt{d^2-x_2^2}$. We can compute the leftmost and rightmost positions of $x_1$, call them $lbd$ and $ubd$ respectively. In the interact, the variable $t\in [0,1]$ sets $x_1=(1-t)\,lbd + t\,ubd$ and computes the quadrilateral.

Instructions: Click on the Start button to get started.

1)You can change any or all of the values for the left or right side and top.

2) At the Start, an animation of the possible positions of the quadrilateral with the given sides and top is shown.

3) To see the quadrilaterals with a given spread, put that value in the spread box and put a -1 in the $t$ box. Then press Update.(At the bottom)

4) To see the quadrilateral at position $t$ (where $t=0$ and $t=1$ are the extreme positions), put that value in the $t$ box, and put a -1 in the spread box. Then press Update.