Consider a bead of mass m sliding without friction on a wire that is bent in the shape of a parabola and is being spun with constant angular velocity about its vertical axis. In cylindrical coordinates, the equation of the parabola is z = kp. Note that k and θ are constants.
i. Write down the Lagrangian in terms of r as the generalized coordinate.
ii. Find the equation of motion of the bead.