In this research, the nonlinear response including amplitude and phase angle of a functionally graded inextensional rotating shaft is studied under the electromagnetic load. Three types of porosity distributions through the radial direction are considered in this work. For the rotating shaft with nonlinear curvature and inertia, the governing equations and corresponding boundary conditions are derived. The Galerkin and the multiple scales methods are used to obtain the modulation equations. The effect of the power law index for a functionally graded shaft fabricated from the mixture of ceramic and metal is presented in the frequency response diagrams for primary resonance under electromagnetic force. Numerical simulations include the effects of the power law index of functionally graded material (FGM), porosity distribution, air-gap length, electromagnetic load, and vibration modes of a rotor on the phase angle and amplitude of steady state responses.