# Torque by gear on a rack?

In this example I've designed a mechanism in which a gear is exposed to a linear and planar motion on a rack, on the top plane in the x and z coordinates. One degree of freedom has been eliminated, disabling it from moving in the y coordinates. Consider that the gears are masless.
This is a harmonic motion in an ideal system where friction is neglected. The gear rotates as the motor pin spins, but the planes of the motor remains constantly parallel to the flat plane of the rack. I need to calculate what the required torque is in order for the motor to conduct this motion.

If I use the equation for angular momentum, I could calculate the torque which is the change of angular momentum; M (torque) = w * I / s = (angular velocity * moment of inertia) / seconds. I wanted to accelerate this mass from an initial velocity of 0 RPM up to 60 RPM in one second. The motor has a mass of 1 kg and the gear has a radius of 25 mm.

Using the equation from the link below I have calculated the following:
(2pi/rad = 60RPM = angular velocity)

I = m/2 * (r^2 + (2l^2) = m/2 * (r^2 + 2*r^2) = m/2 * (3r^2) = 3/2 * m * r^2
M = 2pi * I / s = 0,00589 kgm^2/s^2 = 0,00589 Nm.

http://cognitivenetwork.yolasite.com/resources/Gear%20and%20Rack.png [Broken]

Is this correct? Do you have a better solution?

Questions regarding: