Recommended · for some experience
Arduino PWM Tutorial #2 - How to Set PWM Frequency Accurately
Why people recommend it
A frequently cited explanation of changing Arduino PWM frequency with a dedicated library, the second part of a PWM tutorial series.
Watch for: The library does not cure supply-related PWM instability
In their words
I found the following video from a guy who wrote a library: [video] but the same issue occurs with his library as well.
user16307 on electronics.stackexchange.com, Jun 2016. CC BY-SA.