find the limit as x→0 of cos(mx) − cos(nx) / x^2. use L'Hospital's rule if possible
\[\lim_{x \rightarrow 0}\frac{\cos(mx)-\cos(nx)}{x^2}\]
so can we use l'hospital?
we definitely know the bottom is 0 when plugin in 0
so only question to ask do we have 0/0
if so we can use l'hospital
I thought yes, because it's 1-1 for the numerator, which is 0.
yep yep
now we differentiate top and differentiate bot
I know the bottom is 2x, but I'm confused about the top.
I found a solution online that pulls the m and the n out in front of their respective cosines, but I don't get why at all.
\[\lim_{x \rightarrow 0}\frac{\frac{d}{dx}(\cos(mx)-\cos(nx))}{\frac{d}{dx}(x^2)} \\ =\lim_{x \rightarrow 0}\frac{\frac{d}{dx} \cos(mx)-\frac{d}{dx}\cos(nx)}{2x}\]
well first of all you know the derivative of the outsides that is what is the derivative of cos
Should I be treating cos(mx) and cos(nx) as a product rule?
well it isn't a product it is a difference
\[\frac{d}{dx}(f-g)=\frac{d}{dx}f-\frac{d}{dx}g\]
so we use difference rule
but anyways to differentiate cos(mx) we need to use chain rule
what is the derivative of cos
-sin is the derivative of cos
\[\lim_{x \rightarrow 0}\frac{\frac{d}{dx}(\cos(mx)-\cos(nx))}{\frac{d}{dx}(x^2)} \\ =\lim_{x \rightarrow 0}\frac{\frac{d}{dx} \cos(mx)-\frac{d}{dx}\cos(nx)}{2x} \\ =\lim_{x \rightarrow 0}\frac{(mx)'(-\sin(mx))-(nx)'(-\sin(nx))}{2x}\] right and we also need to multiply by the derivative of the inside
\[(f(g(x))'=f'(x)|_{x=g(x)} \cdot g'(x) \\ (\cos(mx))'=(\cos(x))'|_{x=mx} \cdot (mx)'\]
\[(f(g(x))'=f'(x)|_{x=g(x)} \cdot g'(x) \\ (\cos(mx))'=(\cos(x))'|_{x=mx} \cdot (mx)' \\ (\cos(mx))'=-\sin(x)|_{x=mx} (m) \\ (\cos(mx))'=-\sin(mx) (m) \\ (\cos(mx))'=-m \sin(mx)\]
Okay, I understand that completely.
really ? if so that is great
\[\lim_{x \rightarrow 0}\frac{\frac{d}{dx}(\cos(mx)-\cos(nx))}{\frac{d}{dx}(x^2)} \\ =\lim_{x \rightarrow 0}\frac{\frac{d}{dx} \cos(mx)-\frac{d}{dx}\cos(nx)}{2x} \\ =\lim_{x \rightarrow 0}\frac{(mx)'(-\sin(mx))-(nx)'(-\sin(nx))}{2x} \\ =\lim_{x \rightarrow 0}\frac{-m \sin(mx)+n \sin(nx)}{2x}\] so what happens if we enter in 0 for x?
I believe you get -m * 0 + n * 0 = 0 for the numerator and 0 for the denominator, so you get 0/0 again. Which means you have to do L'Hospital's rule again
don't get frustrated this will be the last round of l'hospital because the bottom will be 2
so we only have to differentiate that nasty top one more time
our new top anyways
we need to apply the chain rule again
hmmm, okay
do you want to try
just differentiate one term
I will try.
\[\frac{d}{dx}(-msin(mx))=\]
that -m in front is a constant multiply you can drag it outside the derivative operator
\[\frac{d}{dx}\sin(mx) \text{ put main focus here }\] we will multiply -m to the derivative later
So you'd get\[-m \cos(mx)*m\] ?
so it'd be \[-m ^{2}\cos(mx)\]
\[\frac{d}{dx}(-m \sin(mx)) \\ -m \frac{d}{dx}\sin(mx) \\ -m \cos(mx) \cdot m \\ -m^2 \cos(mx) \] AWESOME! :)
\[\lim_{x \rightarrow 0}\frac{\frac{d}{dx}(\cos(mx)-\cos(nx))}{\frac{d}{dx}(x^2)} \\ =\lim_{x \rightarrow 0}\frac{\frac{d}{dx} \cos(mx)-\frac{d}{dx}\cos(nx)}{2x} \\ =\lim_{x \rightarrow 0}\frac{(mx)'(-\sin(mx))-(nx)'(-\sin(nx))}{2x} \\ =\lim_{x \rightarrow 0}\frac{-m \sin(mx)+n \sin(nx)}{2x} \\ \lim_{x \rightarrow 0} \frac{-m^2 \cos(mx)+n^2 \cos(nx)}{2}\]
you are ready to just plug in 0
YAY!!! So, cos(0) = 1, which means the final answer is \[\frac{ n ^{2}-m ^{2} }{ 2}\]
yah
Do you feel like anything here needs to be discussed more?
Thank you so much for your help! I'm set for now!
Ok cool have a nice night
You too :)
Join our real-time social learning platform and learn together with your friends!