I am taking a first course in functional analysis but I am unable to understand the difference between $\|x-y\|$ and $|x-y|$ ?
I have doubt that if $|x-y|$ is defined as the distance between x and y ,then why to we define $\|x-y\|$ and what do we literally mean by that?
I too have the same problem with $\|x\|$ and $|x|$?
Well, the notation $|x|$ is the absolute value of a real number (or complex number) $x$, while $\|x\|$ is the norm of a vector $x$.
In particular, if $x$ and $y$ are real-valued vectors of length $n$, then $x-y=(x_1-y_1,\ldots,x_n-y_n)$ is also a vector and the norm definition applies.