The diffraction of a plane wave by a transversely inhomogeneousisotropic nonmagnetic linearly polarized dielectric layer filledwith a Kerr-type nonlinear medium is considered. The analyticaland numerical solution techniques are developed. The diffractionproblem is reduced to a singular boundary value problem for asemilinear second-order ordinary differential equation with acubic nonlinearity and then to a cubic-nonlinear integral equationof the second kind and to a system of nonlinear operatorequations of the second kind solved using iterations. Sufficientconditions of the unique solvability are obtained using the contraction principle