It's a well-known rule that a number $x$ belongs to the Fibonnaci Sequence iff: $$\begin{align}5x^2\pm~4&=\lambda^2&\lambda\in\mathbb Z\end{align}$$ In other words, if and only if $5x^2\pm~4$ is a perfect square.

What is the equivalent identity for testing whether a number is a member of the Lucas sequence?