We define a notion of partial derivative and antiderivative for knots and use these to define what we call "second-order signatures", generalizing Casson-Gordon invariants, that are defined for any algebraically slice knot. These obstruct a knots being a slice knot.