optimization

first order fem.