This is related to my previous question. I am generating images of how long it takes for a double pendulum to flip in different configurations. I was trying to find the shape of where it isn't energetically possible to flip where $3l_1 = l_2$ and $m_1 = m_2$, where $l$ is the lengths of the pendulums and m is the mass of the pendulums.
Here is my attempt (as directed by the answer to my question): The length of the first rod is $l_1$ and the length of the second rod is $3_l1$. Let $a = \frac{l_1}{2}$
Total energy:
$mga(1-cos\theta_1) + [mga(1-cos\theta_1) + 3mga(1-cos\theta_2)]$
$mga(1-cos\theta_1 + 1 - cos\theta_1 + 3 - 3cos\theta_2)$
$mga(5 - 3cos\theta_2 - 2cos\theta_1)$
Minimum energy configuration:
$\theta_1 = 0$ and $\theta_2 = \pi$
Plugging...
$mga(5 - 3cos\pi - 2cos0)$
$mga(5 - 3(-1) - 2(1)$
$6mga$
Setting them equal and simplifying:
$mga(5 - 3cos\theta_2 - 2cos\theta_1) = 6mga$
$ -1(3cos\theta_2 + 2cos\theta_1) = 1$
Plotting in desmos, this does not form a square. When I try this method with $2l_1 = l_2$, it produces a shape that is a square. These results are incorrect (see the source in my previous question).
What am I doing wrong (did the authors of the pdf, in the previous post, mislabel their graphs?) Thanks :)