Investigating the relationship between resistors and capacitors