http://h2.jaguarpaw.co.uk/posts/why-is-naive-symbolic-differ...
In summary, yes both functions are linear, but the size of the symbolic derivative is quadratic.