A simple inversion scheme, based on Born approximation, to determine t
he electron density profile of near perfect multilayers from specular
x-ray reflectivity data has been presented. This scheme is useful for
semiconductor multilayers and other thin films, which are grown almost
according to the designed parameters. We also indicate the possibilit
y of separating out the contribution of interdiffusion and roughness i
n electron density profiles of interfaces by utilizing information obt
ained from the analysis of diffuse scattering data. The extracted comp
ositional profile was used to calculate structural details of epitaxia
l films along the growth direction. Simulated and metal organic vapor
phase epitaxy grown InP/InxGa1-xAs/InP quantum-well systems have been
used to demonstrate this scheme.