function f1 = p14_f1 ( x )

%*****************************************************************************80
%
%% p14_f1() evaluates the first derivative for problem 14.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 August 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real x, the value of the variable.
%
%  Output:
%
%    real f1, the first derivative of the objective function.
%
  f1 = - 2.0 * ( x - 0.3 ) ./ ( ( x - 0.3 ).^2 + 0.01 ).^2 ...
       - 2.0 * ( x - 0.9 ) ./ ( ( x - 0.9 ).^2 + 0.04 ).^2;

  return
end
