Ask Your Question

Revision history [back]

When you write:

raar1 = -diff(Uf1, x,2)/diff(Uf1, x).full_simplify()

what is fully simplified is diff(Uf1, x), not diff(Uf1, x,2)/diff(Uf1, x)

If you want the full_simplify method to be applied to the whole diff(Uf1, x,2)/diff(Uf1, x), you have to add parentheses :

sage: raar1 = -(diff(Uf1, x,2)/diff(Uf1, x)).full_simplify()
sage: raar1
-(a - 1)/x