Density of first substance = d1
Density of second substance =d2
Mass of first substance = m
Mass of second substance = m
Now, the volume of first substance
V1=md1
The volume of second substance
V2=md2
Total volume is
Vtotal=V1+V2
Vtotal=md1+md2
Vtotal=m(d1+d2)d1d2
Total mass is
M=m+m
M=2m
Density of the mixture = total mass/total volume
Density of mixture =
=2m(d1d2)m(d1+d2)
=2(d1d2)(d1+d2)