I'm learning about quadratic variation.
Given that $f_n(s,w)$ is bounded, piecewise constant, and $B$ is a brownian motion. I am trying to compute the quadratic variation of $$F_n(t,w)\equiv\int_0 ^t f_n(s,w)dB(s,w)\equiv\sum_{i=1}^m f_n(t_i,w)(B(t_{i+1},w)-B(t_i,w)),$$ where $t_{m+1}=t,t_1=0$ and $f_n$ constant on $[t_i,t_{i+1})$. The quadratic variation (in $L^2$) should be $\int _0 ^t f_n^2(s,w)ds$.
Let $P$ be a partition of $[0,t]$. Then the quadratic variation is $$[F_n(t,w)]_t=\lim_{\Vert P \Vert \to 0}\sum_{k=1}^n ((F_n(t_k,w)-F_n({t_{k-1}},w))\\=\lim_{\Vert P \Vert\to 0}\sum \int_{t_{k-1}}^{t_k}f_ndB(s,w)$$
Since $f$ is constant on $[t_i,t_{i+1})$, I can express this as $\lim \int_0 ^tf_ndB(s,w)$, but where does the square come form and how does $dB(s,w)$ become $ds$ in the limit?