You can do the following in Cycles, not sure if you can do this in Eevee.
Full, all objects shown.
De-select ‘camera’ in the View->Ray Visablity for the sphere.
Select Shadow Catcher for the back plane.
- [EDIT]
Just like @JohnMalcolm1970 said (i was a minute late to the party )