I am using the Symbolics package in Julia, and it seems to not be simplifying derivatives of expressions.
E.g.:
@variables r
Dr = Differential(r)
simplify(expand_derivatives(Dr((2/r)^2)))
results in
(-4(2 / (r^2))) / r
If I instead create the derivative expression by hand, then simplify works great
simplify((-4*(2 / (r^2))) / r)
gives
-8 / (r^3)
as expected.
Why doesn't simplify work correctly on expressions created from differentiation?