This paper presents an analysis of the Perturb and Observe Maximum Power Point Tracking controller, providing a useful tool to design an optimal MPPT controller for photovoltaic applications. The method uses the complete equation for the photovoltaic module to calculate exact values in the non-linear power-voltage profile. The amplitude of the duty cycle perturbation is designed from the maximum power losses restriction and the sampling time of the algorithm is designed to track a dynamic irradiance profile with three-point behavior. Finally, simulations are used to validate the proposed methodology and to demonstrate the effectiveness of the solution.