I am given a massless ring of radius $R$ that is rolling along a flat plane without slipping. There is friction. A massless rod of length $\frac {R} {2} $ is attached to the inside edge of the ring and a point mass of mass $m$ is attached to the end of the rod. Think of this as a wheel with a single spoke that is only attached to the edge and whose mass is concentrated on the point nearest the center. The entire system is in a gravity field with strength $g$. I want to find the equation of motion for the system using the Euler Lagrange equations.
My work so far:
I want to use 2 generalized coordinates to describe my system: $x$, the location of the center of the ring along the flat plane and $\theta$, the angle that the rod inside the cylinder makes with respect to the flat plane (I define increasing $\theta$ as counterclockwise).
Kinetic Energy: $\frac{1}{2} m \dot{x}^{2} + \frac{1}{2} m \frac{R^2}{4}\dot{\theta}^{2}$
Potential Energy: $mg(\frac{R}{2}\sin{\theta} + R)$
There is also a contraint due to the no slipping of the form: $f(x,\theta) = x + R\theta = 0$
With this, my Lagrangian is: $L = \frac{1}{2} m \dot{x}^{2} + \frac{1}{2} m \frac{R^2}{4}\dot{\theta}^{2} - mg(\frac{R}{2}\sin{\theta} + R)$
The Euler Lagrange equations with the holonomic constraint are:
$\frac{d}{dt}\frac{\partial L}{\partial \dot{x}} - \frac{\partial L}{\partial x} - \lambda\frac{\partial f}{\partial x} = 0$
$\frac{d}{dt}\frac{\partial L}{\partial \dot{\theta}} - \frac{\partial L}{\partial \theta} - \lambda\frac{\partial f}{\partial \theta} = 0$
which yields:
$m\ddot{x} - \lambda = 0$
$m\frac{R^{2}}{4} \ddot{\theta} -mg\frac{R}{2}\cos{\theta}- \lambda R = 0$
using the constraint I can solve the system of equations and yield:
$\lambda = m\ddot{x}$
$\ddot{x} = -R\ddot{\theta}$
Therefore
$m\frac{R^{2}}{4} \ddot{\theta} -mg\frac{R}{2}\cos{\theta} + m \ddot{\theta} R^{2} = 0$
This results in:
$\ddot{\theta} = \frac{2g\cos{\theta}}{5R}$
The issue is that this is not the correct answer which should be:
$\frac{d}{dt}(m R^{2} \dot{\theta}(\frac{5}{4} + \sin{\theta})) = -mg\frac{R}{2} \cos{\theta}$
This was found by finding the angular momentum of the point mass and relating it to the external torque due to gravity
I am unsure of what I have messed up on in the Lagrangian. Could anyone help?