Text this: An Optimal Approach to Study the Nonlinear Behaviour of a Rotating Electrical Machine