A mathematical representation of waves