Let $E$ be an elliptic curve curve $π¦^2 + xy β‘ π₯^3+ππ₯^2+π$ (a Weierstrass curve) (in this case, with characteristic 2) over a binary extension field $πΊπΉ(2^{m})$ with constructing polynomial $π(π§)$ be an irreducible, primitive polynomial over $GF(2)$, and let $P(x_p,y_p)$ be a point on the curve.
I have seen various implementations and discussions (like this answer at the bottom) mention that points $P$ can be distinguished with the field Trace function and that "it can be shown that for points in the curve's subgroup of prime order, the trace of $x_p$ coordinate must equal the trace of $a$ from the elliptic curve equation", i.e.
$Tr(x_p) = \begin{cases} \mbox{a,} & \mbox{if } P \in E \\ \mbox{1,} & \mbox{otherwise} \end{cases}$
Still, I cannot find any relevant bibliography that clearly explains why this holds from a mathematical perspective. Can anyone provide the relevant theory behind this? Also, what are the underlying restrictions and conditions needed for Trace to be able to reflect whether a point is on the curve or not?
Thank you for your time,