Analyzing the Setup
When you see a problem like limx→0x4cos(2x)+acos(4x)−b, your first instinct might be to reach for L'Hopital's Rule. Stop. Take a breath. Differentiating a function four times is a siren song that leads to algebraic shipwreck.
Instead, we are going to use the Taylor series, the most powerful microscope in your mathematical toolkit. We know that the expansion for cos(θ) is:
Because our denominator is x4, we only care about the terms up to x4. Anything higher will simply vanish into thin air as x approaches zero.
Expanding the Terms
Let us start by expanding cos(2x). By substituting 2x into our series, we get:
1−2(2x)2+24(2x)4=1−2x2+32x4
Now, let us tackle the second term, acos(4x). Substituting 4x gives us:
a(1−2(4x)2+24(4x)4)=a(1−8x2+332x4)
The Master Equation
Now, we bring them together into the numerator:
(1−2x2+32x4)+a(1−8x2+332x4)−b
We group the terms by their powers of x:
Constant terms: (1+a−b)
x2 terms: −x2(2+8a)
* x4 terms: x4(32+332a)
The full expression becomes:
x4(1+a−b)−x2(2+8a)+x4(32+332a)
The Vanishing Act
If the constant term (1+a−b) is not zero, the limit is ∞. Similarly, if the x2 term is not zero, the limit is still ∞. For the limit to be finite, these coefficients must vanish.
We set the coefficients to zero:
From 2+8a=0, we immediately find a=−41. Substituting this into 1+a−b=0, we get 1−41−b=0, which means b=43.
Final Calculation
Finally, the question asks for a+b. Adding −41 and 43 gives us:
The final answer is 21. You have just mastered the art of Taylor series expansion. Keep this logic in your heart, and no limit will ever scare you again.