A pendulum is driven by two forces, gravity pulling the mass downward and tension pulling the mass toward the string. The result is a total net force, mg⋅sin(θ), that is oriented perpendicular to the string:
What I'm interested in is not the mass being confined to a spring, but a mass being confined to a path, with a gravitational field present. So, let's consider a frictionless point particle on a bowl, which at any instant looks like a mass on an incline:
We want simple harmonic motion in the x-direction:
We also know by studying the above diagram that the in the x-component of the net force will only depend on the normal force since gravity is always in the y-direction. The value of x-component of force is:
Tension is variable and will equal the component of gravity that is along the direction of the string:
Since the x-component of the tension is the only force present in the horizontal direction, we can set it equal to our simple harmonic motion constraint:
*** Here is where the magic happens ***
What is the actual meaning of the angle? Well, for a pendulum it is the angle between the string and vertical, but for a mass on an incline it is the incline angle. If the mass were on a smooth incline we could replace the trigonometric terms in our latest equation with the ratios they represent. But-- actually-- we can still do that! Here's how it works:
This triangle represents the instantaneous slope at any particular point on the ball's path. The triangle was scaled to have a base of 1, which allows the side to have a component equal to the slope of the function. Think of it this way-- slope is "rise over run", slope is also dy/dx. I'm just setting dy/dx = (dy/dx)/1. The hypotenuse can then be found using the Pythagorean Theorem.
Can now see the following relationships:
Combining these two with our equation before the magic happened:
Simplifying:
Now let's rearrange this differential equation:
Using an online solver we find:
As a graph:
So, a ball rolling in this bowl (when confined between -1/2 and 1/2) will roll with an x-component in simple harmonic motion!
Neat-o!