I am working on a notebook on sagemath 10.7.
I don't understand howto to simplify a function. Here is my notebook
var('a h')
f(x)=x^2-x+3
t(a)=(f(a+h)-f(a))/h
a=1
t(a).simplify_full()
It outputs: h+1 ==> I'm ok
However, when going further, the following did not output a simple equation:
h=0
ta(x)=t(a)*(x-a)+f(a)
print(ta(x).simplify_full())
It prints (h + 1)*x - h + 2 but it should be x+2.
What am I doing wrong ?