I have an elliptic curve $E$ over $\mathbb{F}_7$ defined by $$y^2 = x^3 +2$$
I also have a function $f$ defined by $f(x,y)=\frac{4x-y+1}{5x-y-1}$
I need to calculate $f(\mathcal{O})$ where $\mathcal{O}$ is the point at infinity
In the paper I'm reading (specifically Example 2.4 on page 13), I am told to use projective coordinates: $$f(x:y:z)=\frac{4x-y+z}{5x-y-z}$$
and then $$f(\mathcal{O})=f(0:1:0)=1$$
I don't understand how they've worked this out - can anyone enlighten me please, so I can then use this technique on any definition of $f$