Let be quadratic with discriminant , and let
be its primitive quadratic Dirichlet character. For an unramified prime , the Euler factor of is
Since is respectively or , this equals the product of the Euler factors of and . At a ramified prime , and the same equality holds. Thus