The first thing we notice is, regardless of k, when we plug in x=0 both numerator and denominator become zero. Let's use this fact, and apply l'Hopital's Rule.
x→0limden→0num→0x4eksin(x2)−(1+2x2)When we plug in x=0, the denominator becomes 0, and the numerator becomes 2k−4. So, we’ll need some cases, because the behaviour of the limit depends on k.For k=2:x→0lim4x22kcos(x2)eksin(x2)−4For k>2, the numerator goes to 2k−4, which is a positive constant, while the denominator goes to 0 from the right, so:x→0lim4x22kcos(x2)eksin(x2)−4For k<2, the numerator goes to 2k−4, which is a negative constant, while the denominator goes to 0 from the right, so:x→0lim4x22kcos(x2)eksin(x2)−4=x→0lim4x32kxcos(x2)eksin(x2)−4x=x→0lim4x22kcos(x2)eksin(x2)−4=x→0limden→0num→04x24cos(x2)e2sin(x2)−4=x→0lim8x−8xsin(x2)e2sin(x2)+16xcos2(x2)e2sin(x2)=x→0lim[−sin(x2)e2sin(x2)+2cos2(x2)e2sin(x2)]=2=∞=−∞