I have an elliptic curve $E$ over $\mathbb{F}_{7}$ defined by $y^2=x^3+2$ with the point at infinity $\mathcal{O}$
I am given the point $(3,6)$ and need to find the line which intersects with $E$ at only this point
I am told that this line is $y\equiv (4x+1)\mod 7$
I have verified that this is the case, however my question is, how would I go about finding that equation in the first place?
What I'm asking for is a method, which would take in the elliptic curve $E$ and a point on the curve $P$ and output the line which intersects with $E$ at only this point
In the example above, we would have the following
\begin{align}\text{input} &= \begin{cases}y^2=x^3 + 2\\ P=(3,6)\end{cases}\\ \text{output} &= y\equiv (4x+1)\mod 7\end{align}