Integrability study and numerical analysis of a Korteweg-de Vries equation with variable coefficients☆