A composite functional equation from algebraic aspect