I don't understand how the epsilon and delta are determined/decided upon. For the sake of this question, I need to prove $$\lim_{x\to3}\frac{x-1}{2}=1.$$
After we are done with the algebra, we define $\delta$ as $2\epsilon$. I don't understand how and why we do this.
Thank you, and have a nice day.
The definition of a limit starts with:
Proving $$\lim_{x\rightarrow 3}\frac{x-1}2 = 1$$ is sort of like playing a game: first, your opponent chooses some $\varepsilon$ to challenge you with. You win if you can respond with some $\delta$ with the desired property. A proof is just some method to show that, no matter what your opponent says, you can respond with an appropriate $\delta$. A counterexample (or a flaw in your proof) is some $\varepsilon$ for which your opponent would win.
The order of events here is important: when you need to come up with $\delta$, you already know which $\varepsilon$ was chosen. You can think of something like $\delta = 2\varepsilon$ as naming a strategy: no matter what your opponent says, you'll respond with twice $\varepsilon$ and win. Of course, there are other strategies that work (for instance, you could just respond with $\varepsilon$ itself - it also has the desired property) - but the point is that deriving a formula for any appropriate $\delta$ in terms of $\varepsilon$ is always allowable, because $\varepsilon$ is always known before $\delta$ is required.
In this specific case, the algebra will tell you that if $|x-3| < 2\varepsilon$ then $\left|\frac{x-1}2 - 1\right| < \varepsilon$, where $2\varepsilon$ has exactly the property needed - so saying $\delta = 2\varepsilon$ is indeed a winning strategy.
Worthy of note, because it's a common mistake: note that you may never influence what $\varepsilon$ was. It is handed to you by someone who wants to make your proof fail. If you derive a formula for $\varepsilon$ in terms of $\delta$, you have not succeeded. If your proof only works for certain $\varepsilon$, you have not succeeded. Your only move is to choose $\delta$, but you have the advantage of already knowing $\varepsilon$ when you do it.