Answer:
>>syms t
>>f=sin(t)*cos(t);
>>int(f)
Step-by-step explanation:
It's actually pretty easy, just use symbolic variables.
First, create the symbolic variable t using this command:
syms t
Now define the function
f=sin(t)*cos(t)
Finally use the next command in order to calculate the indefinite integral:
int(f)
I attached a picture in which you can see the procedure and the result.