[step:Exhibit the explicit basis $\{1, X_0/X_2, X_1/X_2\}$ for $\mathcal{L}(3 p_0)$ with pole orders $0, 2, 3$ at $p_0$]Work in the projective coordinates with $p_0 = [0:1:0]$ and inflection tangent $\{X_2 = 0\}$ fixed by the previous step. We compute the divisors on $E$ of the three homogeneous linear forms $X_0, X_1, X_2$, each viewed as a section of $\mathcal{O}_E(1)$, and hence the divisors of the ratios $X_0/X_2$ and $X_1/X_2 \in k(E)^\times$.
\textbf{Divisor of $X_2$ on $E$.} The line $\{X_2 = 0\}$ is the inflection tangent at $p_0$, so by the flex hypothesis the intersection $E \cap \{X_2 = 0\}$ consists of $p_0$ with multiplicity $3$, i.e.,
\begin{align*}
\operatorname{div}_E(X_2) = 3 p_0.
\end{align*}
(By [Bezout's Theorem for Smooth Curves](/theorems/2179), the total degree of $E \cap \{X_2 = 0\}$ is $\deg E \cdot \deg\{X_2 = 0\} = 3 \cdot 1 = 3$, and the flex condition concentrates all of this multiplicity at $p_0$.)
\textbf{Divisor of $X_0$ on $E$.} At $p_0 = [0:1:0]$ we have $X_0 = 0$, so the line $\{X_0 = 0\}$ passes through $p_0$. Its intersection with $E$ is a divisor of degree $3$ on $E$ (by Bezout's theorem as above), containing $p_0$ with some multiplicity $m_0 \geq 1$. Since $E$ is smooth at $p_0$, the line $\{X_0 = 0\}$ is either the tangent line at $p_0$ (giving $m_0 \geq 2$, and $= 3$ at a flex) or a non-tangent line (giving $m_0 = 1$). Here $\{X_0 = 0\} \neq \{X_2 = 0\}$ is distinct from the inflection tangent, so $\{X_0 = 0\}$ is not tangent to $E$ at $p_0$, and $m_0 = 1$:
\begin{align*}
\operatorname{div}_E(X_0) = p_0 + a + b
\end{align*}
for two (not necessarily distinct) points $a, b \in E \setminus \{p_0\}$.
\textbf{Divisor of $X_1$ on $E$.} At $p_0 = [0:1:0]$ we have $X_1 = 1 \neq 0$, so the line $\{X_1 = 0\}$ does not pass through $p_0$. Again by Bezout, $E \cap \{X_1 = 0\}$ has total degree $3$, supported on three points (with multiplicity) of $E \setminus \{p_0\}$:
\begin{align*}
\operatorname{div}_E(X_1) = c_1 + c_2 + c_3, \qquad c_i \in E \setminus \{p_0\}.
\end{align*}
\textbf{Divisors of the ratios.} Subtracting:
\begin{align*}
\operatorname{div}_E(X_0 / X_2) &= \operatorname{div}_E(X_0) - \operatorname{div}_E(X_2) = (p_0 + a + b) - 3 p_0 = a + b - 2 p_0, \\
\operatorname{div}_E(X_1 / X_2) &= \operatorname{div}_E(X_1) - \operatorname{div}_E(X_2) = (c_1 + c_2 + c_3) - 3 p_0.
\end{align*}
Hence both ratios have poles concentrated only at $p_0$:
\begin{align*}
\operatorname{ord}_{p_0}(X_0 / X_2) = -2, \qquad \operatorname{ord}_{p_0}(X_1 / X_2) = -3,
\end{align*}
and neither has any pole away from $p_0$ (the divisors $a + b - 2 p_0$ and $c_1 + c_2 + c_3 - 3 p_0$ are supported at $p_0$ with negative coefficient only there). In particular,
\begin{align*}
\operatorname{div}_E(X_0/X_2) + 3 p_0 = a + b + p_0 \geq 0, \qquad \operatorname{div}_E(X_1/X_2) + 3 p_0 = c_1 + c_2 + c_3 \geq 0,
\end{align*}
so $X_0/X_2, X_1/X_2 \in \mathcal{L}(3 p_0)$. The constant function $1$ has $\operatorname{div}(1) = 0$, so $\operatorname{div}(1) + 3 p_0 = 3 p_0 \geq 0$, and hence $1 \in \mathcal{L}(3 p_0)$.
\textbf{Linear independence.} The three elements $1, X_0/X_2, X_1/X_2 \in \mathcal{L}(3 p_0)$ have pole orders at $p_0$ equal to $0, 2, 3$ respectively (where "pole order" means $-\operatorname{ord}_{p_0}$). Suppose
\begin{align*}
\alpha \cdot 1 + \beta \cdot (X_0/X_2) + \gamma \cdot (X_1/X_2) = 0 \quad \text{in } k(E),
\end{align*}
for some $\alpha, \beta, \gamma \in k$ not all zero. Taking $\operatorname{ord}_{p_0}$ of both sides, the left-hand side is a sum of elements with distinct valuations $0, -2, -3$ at $p_0$ (for the terms with nonzero coefficient). The valuation of a sum is the minimum of the summand valuations when those valuations are distinct. Hence the valuation of the left-hand side equals the minimum over $\{0, -2, -3\}$ of those summands with nonzero coefficient, which is finite and hence the left-hand side is not the zero element of $k(E)$. Contradiction.
Hence $\{1, X_0/X_2, X_1/X_2\}$ is $k$-linearly independent. Combined with $\dim_k \mathcal{L}(3 p_0) = 3$ from Step 2, it is a $k$-basis of $\mathcal{L}(3 p_0)$.
\textbf{Every $f \in \mathcal{L}(3 p_0)$ is the restriction of $G/X_2$.} Writing $f = a_0 \cdot 1 + a_1 \cdot (X_0/X_2) + a_2 \cdot (X_1/X_2)$ with $a_0, a_1, a_2 \in k$:
\begin{align*}
f = \frac{a_0 X_2 + a_1 X_0 + a_2 X_1}{X_2} = \frac{G(X_0, X_1, X_2)}{X_2},
\end{align*}
where $G(X_0, X_1, X_2) := a_1 X_0 + a_2 X_1 + a_0 X_2$ is a homogeneous linear form. Conversely, any such ratio $G/X_2$ with $G \in k[X_0, X_1, X_2]_1$ lies in $\mathcal{L}(3 p_0)$ by the same computation.[/step]