Calculus for electronics