Closed Form Resonance Solution in Metallic Nanoparticles With Cubic Nonlinearity