It is kind of ok (a couple of slip ups) but here is the main problem. The order and the way you have written it out is horrendous.
When you are writing an epsilon delta type proof, you should start off by fixing epsilon and defining delta and showing that it works.
What the book has told you is the way in general to find a delta that works. What you have written out is your workings out/scrap notes that you would calculate BEFORE writing out an actual answer. When you write out an answer, you do it in the way easiest to read and follow, not in the order following the thought process needed to get to it.
In this case, you have overcomplicated something extremely simple. For example, here is my proof.
Let
ϵ>0 be given and define
δ:=ϵ.
Then
0<∣x−4∣<δ is equivalent to
0<∣4−x∣<δ (by definition of the modulus) which is further equivalent to
0<∣4−x∣<ϵ (since
ϵ=δ)
The final inequality may be written as
0<∣f(x)−L∣<ϵwhere
f(x)=9−x and
L=5.
Therefore, by definition, the limit of
f(x) as
x→4 is
5.
The point was that both inequalities were the same with epsilon replaced with delta so choosing delta equal to epsilon makes the RHS equivalent to the LHS (which is even stronger than what you need).