To start, pretty sure the 40 has an airvane governor, 500 series is mech governor.

Otherwise, I have been told they vary valve timing to get the extra power

but 40 is 4 hp remember

500 is 5ftlb torque

As the 3.5hp briggs became the 450, I would dare say not much diff between 40 and 500