# This is apparently a linked sage worksheet. So, copy/pasted what you want/need from here to YOUR OWN sage worksheet in cocalc. That way, we are not using the same worksheet at the same time.t=var('t')# declare y to be a function of tfunction('y',nargs=1)(t)f=y(t)*(t^2+1)show("f(t,y) = ",f)# Fp is the first derivative of f with respect to tfp=diff(f,t,1)eqns=[diff(y(t),t,1)==f]Fp=fp.substitute(eqns)show("1st derivative of f(t,y) wrt time = ",factor(Fp))
y(t)
f(t,y) = (t2+1)y(t)
1st derivative of f(t,y) wrt time = (t4+2t2+2t+1)y(t)
# Fpp is the second derivative of f with respect to tfpp=diff(Fp,t,1)Fpp=fpp.substitute(eqns)show("2nd derivative of f(t,y) wrt time = ",factor(Fpp))
2nd derivative of f(t,y) wrt time = (t6+3t4+6t3+3t2+6t+3)y(t)
# Fppp is the third derivative of f with respect to tfppp=diff(Fpp,t,1)Fppp=fppp.substitute(eqns)show("3rd derivative of f(t,y) = ",factor(Fppp))
3rd derivative of f(t,y) = (t8+4t6+12t5+6t4+24t3+24t2+12t+9)y(t)