Suppose we have three vectors $\textbf{A}$, $\textbf{B}$ and $\textbf{C}$. If $\textbf{A}\cdot\textbf{C}=\textbf{B}\cdot\textbf{C}$, does that mean that $\textbf{A}$ must be equal to $\textbf{B}$? If so, can this property be proven?
Though the question is mainly mathematical, it has occurred to me a number of times when studying physics and I'll like a good explanation.
Now, the fundamental theorem for gradients states that $$ V (\textbf{b}) - V (\textbf{a}) = \int_\textbf{a}^\textbf{b}(\nabla V)\cdot d\textbf{l}, $$ so $$ \int_\textbf{a}^\textbf{b}(\nabla V)\cdot d\textbf{l} = -\int_\textbf{a}^\textbf{b}\textbf{E}\cdot d\textbf{l}. $$ Since, finally, this is true for any points $\textbf{a}$ and $\textbf{b}$, the integrands must be equal: $$ \bbox[10px,border:1px solid black]{\textbf{E} = -\nabla V.}\tag{2.23} $$
As an example of such a case, I have added an excerpt from Griffiths' Introduction to Electrodynamics. In the calculations, it was assumed that ${\textbf{E}}$ is equal to $-\nabla V$ based on the fact that $\textbf{E}\cdot d\textbf{l}=-(\nabla V)\cdot d\textbf{l}$ .