Thermodynamic properties of an ideal Fermi gas in an external potential with U=br(t) in any dimensional space