My question is about understanding the derivation of the weak form of a variational problem (to be used for the solution via the finite element method).
The problem is as follows (it is an image processing problem, $\mathbf{u}$ is a 2D vector field of displacements I is an image function (see Horn-Schunk optical flow algorithm)):
Minimize the following functional w.r.t. the vector field $\mathbf{u}$ $$E(\mathbf{u}) = \int_\Omega \left\|\mathbf{u}\cdot\nabla I + \frac{\partial I}{\partial t}\right\|^2dx + \lambda\int_\Omega \nabla \mathbf{u} : \nabla \mathbf{u} dx$$
(: denotes the Frobenius inner product http://en.wikipedia.org/wiki/Frobenius_inner_product#Frobenius_product)
The apparent weak form of the problem is given in the following form (http://code.google.com/p/debiosee/wiki/DemosOptiocFlowHornSchunck):
$$E(\mathbf{u}) = \int_\Omega \left(\mathbf{u}\cdot\nabla I + \frac{\partial I}{\partial t}\right) \left(\mathbf{v}\cdot\nabla I\right) dx + \lambda\int_\Omega\nabla\mathbf{u}:\nabla\mathbf{v}dx$$
Where $\mathbf{v}$ is the test function.
What I would like to know is if there is a direct way to come to this conclusion from the original problem or the way to go is to formulate the weak form of the Euler-Lagrange equation of the original functional?
Additionally I would like to know if any of you knew about a vector calculus textbook you could recommend for mastering these kinds of operations in their vector form without working out the derivation componentwise?
Thanks a lot in advance!
Peter