Optical flow is the pattern of apparent motion of image objects between two consecutive frames caused by the movement of object or camera.
so we want to find the motion of every pixel, that is, the dx and dy in the time period dt.
We have to establish the optical flow equation to solve this problem.
Use the Taylor Series and remove the constant we will have: