The paper presents an improved maximum power point tracking (MPPT) method for photovoltaic systems using a modified particle swarm optimization (PSO) algorithm, which aims to minimize steady-state oscillations and effectively track maximum power under partial shading conditions. It compares the proposed PSO method with conventional MPPT techniques, such as perturb and observe and fuzzy logic, highlighting its enhanced performance in variable environmental conditions. MATLAB simulations demonstrate the algorithm's effectiveness in maximizing power output during fluctuations in insolation and shading scenarios.