This document discusses an analytical model for the nonlinear diffusion of a dopant in a multilayer structure during the fabrication of p-n junctions. The study focuses on how varying the pressure of the vapor source affects the optimal parameters for the technological process, demonstrating that controlled doping and annealing can enhance the sharpness and homogeneity of p-n junctions. It employs mathematical approaches to analyze spatio-temporal distributions of dopant concentrations based on Fick's law.