Let G be the internal direct product of subgroups H and K. Show that the map ϕ:G→H×K defined by ϕ(g)=(h,k) for g=hk, where h∈H and k∈K, is one-to-one and onto.
Hint. To show that ϕ is one-to-one, let g1=h1k1 and g2=h2k2 and consider ϕ(g1)=ϕ(g2).