I have to find $14^{-1} (\mod 17)$
I made the equation, $$14x+17y=1$$ By Euclidean division algorithm- $$ 17=14\times1+3 \\ 14=3\times4 +2\\3=2\times1+1$$ If I reverse the process then, $$1=3-2\times1 \\=3-(14-3\times4)\times1 \\= 3-[14-(17-14\times1)\times4]\times1$$
But this doesn't seem to in the required form...
What have I done wrong?
Everything is right so far. You just need to note that $3 = 17 - 14$, so you have:
$$1 =(17-14)-[14-(17-14\times1)\times4]\times1$$ $$=(17-14)-[14-(17-14)\times4]$$ $$=(17-14)-[14-(17 \times 4-14\times 4)]$$ $$=(17-14)-[-17 \times 4 \color{red}{+}14 \times 5]$$ $$=(17-14) + 17 \times 4 -14 \times 5]$$ $$=17 \times 5-14 \times 6$$