  The polaron energy and the effective mass are calculated for an electron
confined in a finite quantum well constructed of $GaAs/Al_x Ga_{1-x} As$
layers. To simplify the study we suggest a model in which parameters of a
medium are averaged over the ground-state wave function. The rectangular and
the Rosen-Morse potential are used as examples.
  To describe the confined electron properties explicitly to the second order
of perturbations in powers of the electron-phonon coupling constant we use the
exact energy-dependent Green function for the Rosen-Morse confining potential.
In the case of the rectangular potential, the sum over all intermediate virtual
states is calculated. The comparison is made with the often used leading term
approximation when only the ground-state is taken into account as a virtual
state. It is shown that the results are quite different, so the incorporation
of all virtual states and especially those of the continuous spectrum is
essential.
  Our model reproduces the correct three-dimensional asymptotics at both small
and large widths. We obtained a rather monotonous behavior of the polaron
energy as a function of the confining potential width and found a peak of the
effective mass. The comparison is made with theoretical results by other
authors. We found that our model gives practically the same (or very close)
results as the explicit calculations for potential widths $L \geq 10 \AA$.
