
Howard J. answered 09/23/19
Principal Mech Engr with 35+ years' on-the-job physics experience
It's pretty bold to ignore air resistance with an object as fuzzy as a tennis ball, so take this as only an estimate. This time will be an overestimation:
The one dimensional (1D) trajectory formula, with h(t) being the elevation above the point of release:
h(t) = h(0) + v(0)t - 0.5gt2
One things about physical problem solving is you get to control how you solve the problems. In this case I choose a 1D coordinate system h(t) that is zero at the point of release and positive above that: h(t) ≥ 0 where t=time in seconds.
When I write h(t) that means h as a function of t not h times t.
Since we assumed h(0)=0 and were given v(0)=3 m/s
h(t)=3t-0.5gt2 and with g=9.81 m/s2,
h(t)=3t-4.9t2=t(3-4.9t)
So the ball is at zero elevation twice:
A. When t=0 and once when t=3/4.9=0.61 sec, and
B. When 3-4.9t=0
From B., we have t=-3/-4.9=0.61 sec.
Solution: The ball is in the air no longer than 0.61 sec.