In the accompanying diagram from "The Language of Mathematics: Making the Invisible Visible" by Keith Devlin (Figure 6.21), he states that "It is then an easy exercise in algebra and geometry to verify that the point $Q$ will have rational coordinates if, and only if, the number $t$ is rational." Note that the circle is the unit circle, and so the coordinates of $P$ are $(-1,0)$.
He gives certain examples, such as if $t = 1/2$, "a little computation shows that the point $Q$ has coordinates $(3/5, 4/5)$. Similarly, $t = 2/3$, leads to the point $(5/13, 12/13)$."
I understand these coordinates yield Pythagorean Triplets, but how are they obtained algebraically (and/or geometrically)? and how is the general case he gives above—regarding $Q$ being rational if and only if $t$ is rational—proven?

The equation of the line is $$y=t(x+1)$$ and the circle's, $$x^2+y^2=1$$ The first equation implies that $x,y\in\Bbb Q\implies t\in\Bbb Q$.
Merging both of them we obtain $$x^2+t^2(x+1)^2=1$$ But if $t$ is rational, this is a quadratic equation on $x$ with rational coefficients and one rational root (namely, $-1$). So the other solution is rational, too. This implies that $t\in\Bbb Q\implies x,y\in\Bbb Q$