Present book is a cookbook for students and researchers to understand the finite element method and optimization methods, coupling them to effect shape optimization. Contains pseudo-code for the relevant algorithms and homework problems to reinforce the theory to compile finite element program capable of shape optimization.