### Bounce a Ball

As I was reading through my feeds today, one of my teacher blogs (not actually ever my teacher) stuck out to me. Kate relates a problem where she had her students try and mark a place on the wall to bounce a ball into the hands of another student (or close enough to catch). At the end, she says she might post a solution in a few days, but I thought I would take a crack at it first.

Granted, my solution isn't really for the problem as she presents it. I also realize that trying to solve any problem with two bounces off the wall and the floor, and in three dimensions, was going to get very ugly, very fast. I am instead solving the somewhat easier problem of:

Given the position of a mark on the floor and another student, in two dimensions, what is the velocity vector required to get the ball to bounce off the floor and land in their hands from a fixed initial position?

Of course, we're going to make all kinds of grandiose assumptions about zero air friction, 100% elastic bounce off the floor, etc, because this is math, not real life (As an engineer, I live to suffer the consequences of this reality).

Given:

All that we are given is our initial position (x

We need to find the velocity vector V = 〈V

Assumptions:

x = x

y = y

Solution:

Along with the two dimensions of the velocity vector, we're also going to need to know the times when the ball bounces (t

The first two for when the ball hits the floor are fairly trivial:

F

F

Yeah! Basic ballistic motion! Now as for when the ball is actually caught, this is where it starts to get gnarly. When the ball bounces (at time t

S

S

Yikes... But on the bright side, we now have four equations, and four unknowns (t

t

t

And by luck, solving the new equation for when the ball bounces for V

Click to enlarge.

So I'll leave substituting the first equation into the second and solving what looks to quite possibly the worst quadratic function ever for V

Can you appreciate why I didn't want to do it in three dimensions with two bounces? I still think this is a fairly honorable hack at the problem.

Granted, my solution isn't really for the problem as she presents it. I also realize that trying to solve any problem with two bounces off the wall and the floor, and in three dimensions, was going to get very ugly, very fast. I am instead solving the somewhat easier problem of:

Given the position of a mark on the floor and another student, in two dimensions, what is the velocity vector required to get the ball to bounce off the floor and land in their hands from a fixed initial position?

Of course, we're going to make all kinds of grandiose assumptions about zero air friction, 100% elastic bounce off the floor, etc, because this is math, not real life (As an engineer, I live to suffer the consequences of this reality).

Given:

All that we are given is our initial position (x

_{0}, y_{0}), the position of the mark on the floor (F_{x}, F_{y}), and the position of the other student's hands (S_{x}, S_{y}).We need to find the velocity vector V = 〈V

_{x}, V_{y}〉Assumptions:

- There is no acceleration in the horizontal direction
- Acceleration in the vertical direction is 9.8
^{m}⁄_{s2}downwards - The ball is essentially a point mass
- There is no friction or energy lost due to bouncing.
- The student will catch the ball regardless of the direction it is moving, as long as it passes through the point (S
_{x}, S_{y}).

x = x

_{0}+ V_{x}ty = y

_{0}+ V_{y}t - 4.9^{m}⁄_{s2}t^{2}Solution:

Along with the two dimensions of the velocity vector, we're also going to need to know the times when the ball bounces (t

_{b}) and when it is caught (t_{c}). This means we're going to need four equations.The first two for when the ball hits the floor are fairly trivial:

F

_{x}= x_{0}+ V_{x}t_{b}F

_{y}= y_{0}+ V_{y}t_{b}- 4.9^{m}⁄_{s2}t_{b}^{2}Yeah! Basic ballistic motion! Now as for when the ball is actually caught, this is where it starts to get gnarly. When the ball bounces (at time t

_{b}), its vertical velocity simply reverses (∴ the new velocity is -[V_{y}- 9.8^{m}⁄_{s2}t_{b}]):S

_{x}= x_{0}+ V_{x}t_{c}S

_{y}= F_{y}- [V_{y}- 9.8^{m}⁄_{s2}t_{b}] t_{c}- 4.9^{m}⁄_{s2}t_{c}^{2}Yikes... But on the bright side, we now have four equations, and four unknowns (t

_{b}, t_{c}, V_{x}, and V_{y}), so we can solve this! Solving the x position equations for t is fairly easy, and can be used to substitute out both of the t variables right away:t

_{b}= [F_{x}- x_{0}] ⁄ V_{x}t

_{c}= [S_{x}- x_{0}] ⁄ V_{x}And by luck, solving the new equation for when the ball bounces for V

_{y}is fairly easy. So here is the two equations we're left with to solve for V:Click to enlarge.

So I'll leave substituting the first equation into the second and solving what looks to quite possibly the worst quadratic function ever for V

_{x}as a problem for the reader (read: I'm freakin not going to do it!). Of course, these two equations should still work fine if you give it an impossible setup (mark and student on opposite sides, student in front of mark, etc), it'll just start giving you solutions that are complex.Can you appreciate why I didn't want to do it in three dimensions with two bounces? I still think this is a fairly honorable hack at the problem.