How can i prove that : $\displaystyle \hat {\mathbf u}=\frac{\mathbf u\cdot \mathbf v}{\mathbf v \cdot \mathbf v}\mathbf v$
u-hat NOT v-hat. v vector is the entire horizontal line. u-hat is a fraction of v vector, u-hat is also a horizontal line.u hat is the projection of u vector on v vector. (Thanks for downvoting and wrongly editing!)

Let $\theta$ denote the (counterclockwise) angle from $\vec{v}$ to $\vec{u}$. From your diagram, you can see that $\hat{u}$ is a multiple of $\vec{v}$. Note that $\frac{1}{||\vec{v}||}\vec{v}$ is a unit vector with the same direction hence $\vec{v}$ is a scalar multiple of $\frac{1}{||\vec{v}||}\vec{v}$ also. In fact, this scalar multiple is $||\vec{u}||\cos(\theta)$. This follows from basic trigonometry. Therefore, we have: $$\hat{u}=\frac{||\vec{u}||\cos(\theta)}{||\vec{v}||}\vec{v}=\frac{||\vec{v}||}{||\vec{v}||}\frac{||\vec{u}||\cos(\theta)}{||\vec{v}||}\vec{v}=\frac{\vec{u}\cdot\vec{v}}{\vec{v}\cdot\vec{v}}\vec{v}$$