I know that the risk-neutral price of a call option with strike price KK is given by: C(K,ST)=erT0(STK)+g(ST)dStC(K,S_T) = e^{-rT}\int_{0}^{\infty }(S_T-K)^+g(S_T)dS_t Since a payoff is only valid when ST>KS_T >K this turns into: C(K,ST)=erTK(STK)×g(ST)dStC(K,S_T) = e^{-rT}\int_{K}^{\infty }(S_T-K)\times g(S_T)dS_t Now I wanted to differentiate the call formula once and twice with respect to K, so CK\frac{\partial C}{\partial K} and 2CK2\frac{\partial ^2C}{\partial K^2} but this is where I am a little stuck. Would I use Leibniz integra