An introduction to crystal analysis