How are functions of Brownian Motion integrated with respect to time? For example, how to calculate the integral: $$I_1 = \int_0^t \lvert \cos(B(s)) \rvert^2 \; ds $$
Secondly, how would an integral such as $I_2$ be calculated: $$I_2 = \int_0^t \lvert \cos(B(s)) \rvert^2 \; dB(s) $$
Finally, in general what is the approach to calculating integrals of the type: $$I_3 = \int_0^t f(B(s))\; ds $$ and $$I_4 = \int_0^t f(B(s)) \; dB(s) $$
Thank you very much for your help.
In general, you cannot "compute" integrals involving Brownian motion in a traditional sense as these integrals are not numbers, but rather random variables. So, typically, the best you can hope for is to find their distributions.