function [f, deriv] = ftest(x)
% works for vector of points x, good for plotting
f = exp(x) - sin(x);
deriv = exp(x) - cos(x);
