# Vector Formulas Representation in Latex

I want to write different formulas related vectors like subtraction, addition in latex, but don't know how to do this as I am new to Latex. I searched a lot but did not find any useful result.

• You need to be much more specific - what exactly is it that you want to do but can't figure out? – Nick Peterson Jun 13 '13 at 0:42
• I want to show formula for vector addition and subtraction in my report for that I need vector arrow on each variable. – Najam-us-Saqib Jun 13 '13 at 0:50

You can decorate a variable, say x, with a vector arrow using \vec{x} in math mode.
\renewcommand{\vec}[1]{\ensuremath{\overrightarrow{#1}}}

Then you can use, say, \vec{AB}, and the arrow will stretch to cover both.