Undetermined coefficients method