Example
Endomorphisms of Q(i) as a rational vector space and algebra
Q(i) has a full 2×2 rational linear endomorphism algebra, but just identity and conjugation as unital rational algebra endomorphisms.
For , the basis identifies its rational-linear endomorphism algebra and automorphism group with
In the unit-preserving rational algebra category, however,
The latter automorphism group is cyclic of order two.
Direct proof
A rational-linear map may send the two basis vectors anywhere, giving any rational matrix. It is invertible exactly when its determinant is nonzero.
A unital rational algebra map fixes every rational number. Its image of must be a root of in , so is or . Both choices extend to the displayed automorphisms. If units are not required, the zero map is the only additional algebra endomorphism: a nonzero map sends to a nonzero idempotent in a field, hence to .
Scalar embeddings as matrices
Multiplication by is the rational-linear matrix
These matrices form the endomorphisms linear over itself, a proper subalgebra of . Requiring preservation of the algebra unit leaves only multiplication by in that scalar-linear family.