&gt; I don&#x27;t understand why the algorithm is so much faster<p>I hope this helps!<p><a href="http:&#x2F;&#x2F;h2.jaguarpaw.co.uk&#x2F;posts&#x2F;why-is-naive-symbolic-differentiation-slow&#x2F;" rel="nofollow">http:&#x2F;&#x2F;h2.jaguarpaw.co.uk&#x2F;posts&#x2F;why-is-naive-symbolic-differ...</a>