Both numerator terms must be expanded to order x4. ex2=1+x2+2x4+⋯ and cosx=1−2x2+24x4−⋯. Then ex2−cosx=23x2+(21−241)x4+⋯=23x2+2411x4+⋯. Subtracting 23x2 leaves 2411x4+O(x6), so the limit is 2411. L'Hopital would need four differentiations; the series route is faster. Forgetting the sign of the cosx term gives 2413. The same result follows from applying L'Hopital's rule four times, but the series method avoids long derivatives and shows exactly which terms survive, so it is the standard shortcut for such limits in JEE Main. Always keep terms up to the order of the denominator.