I'm solving an imaginary double pendulum (that is, two pendulums whose motion doesn't affect each other). The two pendulums have a "normal" motion, but they are attached.
Taking the point to wich the first pendulum is attached as the origin, the position vectors of $p_1$ and $p_2$ are:
$\vec{r_1}=(l_1sin(\theta_1),-l_1cos(\theta_1))$
$\vec{r_2}=(l_2sin(\theta_2)+l_1sin(\theta_1),-l_2cos(\theta_2)-l_1cos(\theta_1))$
I tried to describe the motion using the coordinates $\theta_1$ and $\theta_2$. I found the new unit vectors from the position of $p_2$.
$\vec{\theta_1}=\frac{1}{h_1}\frac{\partial \vec{r_2}}{\partial \theta_1}=(cos(\theta_1),sin(\theta_1))$
$\vec{\theta_2}=\frac{1}{h_2}\frac{\partial \vec{r_2}}{\partial \theta_2}=(cos(\theta_2),sin(\theta_2))$
If I use the relation
\begin{equation} \vec{A}=\sum_{i=1}^{2}(\vec{A}\cdot\vec{e_i})\vec{e_i} \end{equation} to obtain $\vec{r_1}$ in terms of the new base, I get: \begin{equation} \vec{r_1}=l_1sin(\theta_1-\theta_2)\vec{\theta_2} \end{equation}
But here's the problem. If I use the partial derivatives of $\vec{r_1}$ to find the new base, the result is:
$\vec{\theta_1}=\frac{1}{h_1}\frac{\partial \vec{r_1}}{\partial \theta_1}=(cos(\theta_1),sin(\theta_1))$
$\vec{\theta_2}=\frac{1}{h_2}\frac{\partial \vec{r_1}}{\partial \theta_2}=0$
\begin{equation} \Rightarrow \vec{r_1}=0 \end{equation}
Why does this happen?
I will add the diagram of the system: