On approximating solutions of boundary-value problems via the least square method (Neliniini Kolyvannya, 2008)