Composita, equations, and freely generated algebras