Algebra based introduction to electricity, magnetism, physical and geometric optics, relativity, and modern physics