Transition from special relativity to general relativity