Capacitors Behave Opposite Of Inductors

Why do capacitors behave opposite of inductors and resistors? (Can you figure it out mathematically?)