Closed form solutions in optimal design of structures with nonlinear behavior