Ferroelectricity and crystal-lattice dynamics