What you have done is good, but or can't depending of the variable .
If we define the limit with the definition:
Now define therefore (we want close to 2).
Determine and with this condition.
But have you ever done examples like this before?
Also I recommand you to read the sticky thread of Krizalid in forum calculus about epsilon-delta proofs.