Analysis and design of elastic beams