# Advanced Classical Mechanics/Compound ballistic pendulum with spinning ball

The easiest way to create motion with minimum friction is to roll balls down a ramp. For that reason it is worthwhile to develop theories for such systems. Here we consider the ballistic pendulum. This calculation models the stable configuration with a completely inelastic collision. However, it is not difficult to generalized these results to include partially elastic collisions, or even the knockdown of a block of wood by a ball rolled down a ramp.
The intent of this essay is for advanced physics majors to understand the derivation, and for beginners to utilize the results of these calculations. It should not be difficult to develop Matlab or Python codes that beginners could use in order to correlate classroom experiments to theory.
Warning: It must emphasized that the assumptions made regarding an "inelastic" collision made here might not always hold. See below for further discussion.

## Unit vectors and multiple coordinate systems

Vector notation becomes more powerful when two or more coordinate systems are used, especially when the orthogonality of the unit vectors permit simple transformations between the coordinate systems. We illustrate this with the impulse delivered to the block by the ball. The impulse to the block is proportional to the final minus initial velocity of the ball:
    ${\vec {J}}=m{\vec {v}}_{i}-m{\vec {v}}_{f}=J_{x}\,{\widehat {i}}+J_{y}\,{\widehat {j}}=J_{1}\,{\widehat {e_{1}}}+J_{2}\,{\widehat {e_{1}}}$
Using relations between the unit vectors easily derived by inspection of the figure, we can derive the Rotation matrix between the coordinate systems. Defining $\beta$ as the angle between ${\widehat {j}}$ and ${\widehat {e_{1}}}$, we have:
    ${\begin{aligned}{\widehat {e_{1}}}\cdot {\widehat {i}}&=\ \sin \beta &\quad {\widehat {e_{1}}}\cdot {\widehat {j}}&=\cos \beta \\{\widehat {e_{2}}}\cdot {\widehat {i}}&=-\cos \beta &\quad {\widehat {e_{2}}}\cdot {\widehat {j}}&=\sin \beta \end{aligned}}$
Take the inner product of ${\vec {J}}$ with the unit vectors ${\widehat {e_{1}}}$ and ${\widehat {e_{2}}}$ to obtain:
    $J_{1}=J_{x}\sin \beta +J_{y}\cos \beta$ and $J_{2}=-J_{x}\cos \beta +J_{y}\sin \beta$

## Four equations of motion.
### The impulse torque on the block

Following the concepts developed at Wikipedia's Impulse we integrate the equations of motion under the assumption that the collision is so brief that the ball and block change velocity but not position during the collision. The block is assumed to be initially at rest, with a vertical wall facing the incoming ball. The first equation relates the impulse of torque to the angular velocity of the block about the axis, which is situated a distance R away from the point of impact:
    $I{\dot {\theta }}=-RJ_{2}\ ,$
where I is the block's moment of inertia and the minus sign above is due to the "negative" orientation of the unit vector.

### The impulse torque on the ball

For a ball that is a solid sphere, we use Wikipedia's list of moments of inertia relate the change in the ball's angular velocity to the appropriate component of the impulse:
    ${\frac {2}{5}}mr^{2}\left(\omega _{f}-\omega _{i}\right)=-rJ_{y}\ ,$
where here the minus sign occurs because the impulse to the ball is opposite that to the block.

### The (questionable) assumption of brief stationary contact between ball and block

The third and fourth equation arise from a single (two-dimensional) vector equation that arises from the fact that for an instant in time, the ball and block are in contact. At that moment, the portion of the ball and block that are in contact are moving at the same velocity. It must be emphasized that this equality of both objects at the point of contact might not actually occur. We this caveat in mind, we use the concept of relative velocity and use the rotation of the ball's surface about the center of mass to find the velocity at the point of contact with the block.
    ${\vec {v}}_{f}+\omega _{f}r{\widehat {j}}=-R{\dot {\theta }}\,{\widehat {e_{2}}}$

### On nature of these equations

Before solving a set equations, it is important to first classify the type of equations they are. In this case, the four equations are linear, or first order, because in the four unknowns, no polynomial has degree higher than one. Here, the "unknowns" are the variables that describe the angular and linear velocities associated with the ball and ramp immediately after the collision, namely $({\dot {\theta }},\omega _{f},v_{fx},v_{fy})$. These "unknowns" can be deduced if the initial velocities $(\omega _{i},v_{ix},v_{iy})$ are known. This linear set of equations is also inhomogeneous , as discussed in Wikipedia's System of linear equations, where it is shown that such equations have either no solution, one unique solution, or an infinite number of solutions. We shall later see that one unique solution exists for this system.

## Finding a solution

It would be interesting to see if Matlab or Mathematica can solve this problem symbolically. Meanwhile, we shall outline the steps required to obtain a solution that arrives at the final velocities (angular and linear) given the initial velocities. The first step is to write these equations as an inhomogeneous set of equations:

## Algebra

The algebra is tedious. In a physics lab we will break down the steps and have individual groups verify two or three steps. We will also see if Matlab symbolic manipulation is up to the task.
{{cot|click to view the steps}}
    $J_{1}=J_{x}\sin \beta +J_{y}\cos \beta =mv_{i1}-mv_{f1}$
    $J_{2}=-J_{x}\cos \beta +J_{y}\sin \beta =mv_{i2}-mv_{f2}$
Step 0:Collect the equations into one place:
    $I{\dot {\theta }}=-RJ_{2}$
    $m{\frac {2}{5}}r^{2}\left(\omega _{f}-\omega _{i}\right)=-rJ_{y}$
    ${\vec {v}}_{f}+\omega _{f}r{\widehat {j}}=-R{\dot {\theta }}\,{\widehat {e_{2}}}$
Step 1: Eliminate J (after factoring)
    $I{\dot {\theta }}=mR\left(v_{f2}-v_{i2}\right)$
If everything above this Algebra section is true. Then step 0 and the first of Step 1 is confirmed:
    $m{\frac {2}{5}}r^{2}\omega _{f}-m{\frac {2}{5}}r^{2}\omega _{i}=mrv_{fy}-mrv_{iy}$
       ${\vec {v}}_{f}\cdot {\widehat {i}}+\omega _{f}r{\widehat {j}}\cdot {\widehat {i}}=-R{\dot {\theta }}\,{\widehat {e_{2}}}\cdot {\widehat {i}}$
       ${\vec {v}}_{f}\cdot {\widehat {j}}+\omega _{f}r{\widehat {j}}\cdot {\widehat {j}}=-R{\dot {\theta }}\,{\widehat {e_{2}}}\cdot {\widehat {j}}$
Step 2: Move inhomogeneous terms to the RHS (right hand side) and simplify the vector equation.
    $I{\dot {\theta }}-mRv_{f2}=-mRv_{i2}$
    ${\frac {2}{5}}mr^{2}\omega _{f}-mrv_{fy}={\frac {2}{5}}mr^{2}\omega _{i}-mrv_{iy}$
       $v_{fx}+R{\dot {\theta }}\,{\widehat {e_{2}}}\cdot {\widehat {i}}=0$
       $v_{fy}+\omega _{f}r+R{\dot {\theta }}\,{\widehat {e_{2}}}\cdot {\widehat {j}}=0$
Step 3: When working by hand it helps to simplify the notation with temporary variables:
    ${\mathcal {A}}=-mRv_{i2}$
    ${\mathcal {B}}={\frac {2}{5}}r\omega _{i}-v_{iy}$
    ${\widehat {e_{2}}}\cdot {\widehat {i}}=-{\mathcal {C}}=-\cos \beta$
    ${\widehat {e_{2}}}\cdot {\widehat {j}}={\mathcal {S}}=\sin \beta$
Step 4: Substitute
    $I{\dot {\theta }}-mRv_{f2}={\mathcal {A}}$
    ${\frac {2}{5}}r\omega _{f}-v_{fy}={\mathcal {B}}$
    $v_{fx}-R{\dot {\theta }}{\mathcal {C}}=0$
    $v_{fy}+r\omega _{f}+R{\dot {\theta }}{\mathcal {S}}=0$
Step 5: Substitute: $v_{f2}=-v_{fx}{\mathcal {C}}+v_{fy}{\mathcal {S}}$
    $I{\dot {\theta }}+mR{\mathcal {C}}v_{fx}-mR{\mathcal {S}}v_{fy}={\mathcal {A}}$
    ${\frac {2}{5}}r\omega _{f}-v_{fy}={\mathcal {B}}$
    $v_{fx}-R{\mathcal {C}}{\dot {\theta }}=0$
    $v_{fy}+r\omega _{f}+R{\mathcal {S}}{\dot {\theta }}=0$
Step 6: Reduce to three equations using $v_{fx}=R{\mathcal {C}}{\dot {\theta }}$
    $I{\dot {\theta }}+mR^{2}{\mathcal {C}}^{2}{\dot {\theta }}-mR{\mathcal {S}}v_{fy}={\mathcal {A}}$
    ${\frac {2}{5}}r\omega _{f}-v_{fy}={\mathcal {B}}$
    $v_{fy}+r\omega _{f}+R{\mathcal {S}}{\dot {\theta }}=0$
Step 7: Substitute :$v_{fy}=-r\omega _{f}-R{\mathcal {S}}{\dot {\theta }}$
    $I{\dot {\theta }}+mR^{2}{\mathcal {C}}^{2}{\dot {\theta }}+mR{\mathcal {S}}r\omega _{f}+mR^{2}{\mathcal {S}}^{2}{\dot {\theta }}={\mathcal {A}}$
    ${\frac {2}{5}}r\omega _{f}+r\omega _{f}+R{\mathcal {S}}{\dot {\theta }}={\mathcal {B}}$
Step 8: Simplify
    $I{\dot {\theta }}+mR^{2}{\dot {\theta }}-mR{\mathcal {S}}r\omega _{f}={\mathcal {A}}$
    ${\frac {7}{5}}r\omega _{f}+R{\mathcal {S}}{\dot {\theta }}={\mathcal {B}}$
Step 9: Substitute $r\omega _{f}=-{\frac {5}{7}}R{\mathcal {S}}{\dot {\theta }}+{\frac {5}{7}}{\mathcal {B}}$
    $I{\dot {\theta }}+mR^{2}{\dot {\theta }}-mR{\mathcal {S}}\left(-{\frac {5}{7}}R{\mathcal {S}}{\dot {\theta }}+{\frac {5}{7}}{\mathcal {B}}\right)={\mathcal {A}}$
    $I{\dot {\theta }}+mR^{2}{\dot {\theta }}+{\frac {5}{7}}mR^{2}{\mathcal {S}}^{2}{\dot {\theta }}={\mathcal {A}}+{\frac {5}{7}}mR{\mathcal {S}}{\mathcal {B}}$
Step 10: Substitute ${\mathcal {A}}=-mRv_{i2}$ and ${\mathcal {B}}={\frac {2}{5}}r\omega _{i}-v_{iy}$
    $I{\dot {\theta }}+mR^{2}{\dot {\theta }}+{\frac {5}{7}}mR^{2}{\mathcal {S}}^{2}{\dot {\theta }}=-mRv_{i2}+{\frac {5}{7}}mR{\mathcal {S}}\left({\frac {2}{5}}r\omega _{i}-v_{iy}\right)$
    $I{\dot {\theta }}+mR^{2}{\dot {\theta }}+{\frac {5}{7}}mR^{2}{\mathcal {S}}^{2}{\dot {\theta }}=-mRv_{i2}+{\frac {2}{7}}mRr{\mathcal {S}}\omega _{i}-{\frac {5}{7}}mR{\mathcal {S}}v_{iy}$
{{cob}}
    $I{\dot {\theta }}+mR^{2}{\dot {\theta }}+{\frac {5}{7}}mR^{2}{\mathcal {S}}^{2}{\dot {\theta }}=mv_{ix}R{\mathcal {C}}-mv_{iy}R{\mathcal {S}}+{\frac {2}{7}}mRr{\mathcal {S}}\omega _{i}-{\frac {5}{7}}mR{\mathcal {S}}v_{iy}$
Step 11: Make the small S approximation for a thin board $\left({\mathcal {S}}=\sin \beta =a/R<<1\right)$
    $\left(I+mR^{2}\right){\dot {\theta }}\approx mv_{ix}R\cos(\beta )=mv_{ix}b$

## References and footnotes

* ↑ For example, if friction is responsible for bringing the ball and block into contact, the ball might bounce off the block before this friction brings the ball to rest with respect to the block. This situation does not occur for one dimensional collisions because the two objects remain in contact after the inelastic collision.
* ↑ The Wikipedia article expresses these linear equations in terms of the matrix equation, $A\mathbf {x} =\mathbf {b}$, where A is a matrix that depends on the mass and dimensions of the ball and block. The four final velocities correspond to the unknown column vector, x. The equations are inhomogeneous because the column vector b ≠ 0.
* ↑ phy2400 Feb 26 2015