Unified finite element analysis