Need help with path and physics


I want to have a cube accelerate along a path than fly off at the end of the path (see picture).
Any help would be appreciated.