In a thought experiment, we have a trampoline on the ground (well it's fancier than a spring) and a ball which is made to undergo free-fall from a height $h$. In a non ideal scenario, will the ball bounce back to the same height $h$ ?Its definitely not higher, so does the strength of the trampoline(or spring force constant $k$) change the max height? That is, can it account for the drag loss due to air? Possible eqns: $$mgh+\frac{1}{2}kx^2=F_{drag}(h+x)+mgh'$$
Will the energy loss due to this air drag be compensated by the trampoline? Is $h=h'$ ? This is done in a real setting, not an ideal one.