See Part 1 and Part 2, where I discuss trying to find equations of motion for a ball rolling along a track defined by an arbitrary function *y*(*x*). So far, I’ve worked out my general approach, and tested it on the very simple case of an inclined line. I do want to tackle some complex functions, but first I want to summarize the method, and to incorporate some changes I learned as I tried my first solution.

I had initially stated I wanted to start with *x*(0) = 0, to keep it simple. But I didn’t end up needing this restriction. My equation for velocity used the initial *y _{i}*, which we got from plugging in the initial value of

*x*. Also, we used the

*x*(0) = 0 to find the constant after integrating. But these happened later in the process.

I also had started with an initial velocity of zero. That did make a difference. But looking back on part 1, I don’t think it would complicate the equation too much, and if it’s zero it will be an extra term to just drop out. Let’s go back to the conservation of energy equation, and keep *v _{i}* in this time.

I’m leaving the ± in this time. Strictly speaking, I’m not treating this as the magnitude of the vector, since magnitudes must be positive. Rather, I want to consider a velocity vector that can point ether forwards or backwards along the direction of the curve. I’m going to allow motion in both directions, not just forward.

Recall the graph showing components of the velocity vector:

Now I want to find the *x*-component. As I discovered last time, I don’t need to bother with the *y*-component — once I find an equation for *x*(*t*), I can use that directly to obtain *y*(*t*). The *x-*component will be

Since I will have *y* and *y*′ in terms of *x*, I would need to rearrange to solve the differential equation. Let’s see how far I can take the general case:

where I did not include a constant of integration on the right side, since it can be absorbed into the constant that the left integral will produce.

So, the general approach should be as follows: Given our equation *y*(*x*), find *y*′(*x*). Plug in those expressions, plug in the initial velocity, and plug in the initial height *y*[*x*(0)]. Integrate, and solve for *x* in terms of *t* to get *x*(*t*), then plug that into *y*(*x*) to get *y*(*t*). I’ll test if this approach can actually work in the next post.