Free boundary problems theory and applications