f(x):=sin(x^2);

F(x):=integrate(sin(x^2),x);

F(x);

t(x,n):=expand(taylor(sin(x^2),x,a,n));

t(x,2);

T(x,n):=integrate(t(x,n),x); /* Integrate Taylor series */;

T(x,2);