Mathematical physics techniques for field theories and continuum media