We need to find limx→0xsinxaex−bcosx+ce−x=2.
As x→0, the denominator xsinx→0. For the limit to exist and be finite, the numerator must also vanish at x=0. Substituting x=0 in the numerator: a⋅1−b⋅1+c⋅1=a−b+c=0. This gives us our first condition: a−b+c=0 ... (i).
Since we have a 00 form, we apply L'Hopital's rule. Differentiating the numerator gives aex+bsinx−ce−x, and differentiating the denominator gives sinx+xcosx. Evaluating at x=0: the numerator becomes a⋅1+b⋅0−c⋅1=a−c, and the denominator becomes 0+0=0. For the limit to still exist as a finite value, we again need the numerator to vanish: a−c=0 ... (ii).
We still have a 00 form, so we apply L'Hopital's rule a second time. Differentiating the numerator again gives aex+bcosx+ce−x, and differentiating the denominator again gives cosx+cosx−xsinx=2cosx−xsinx. Evaluating at x=0: the numerator becomes a+b+c, and the denominator becomes 2. Therefore the limit equals 2a+b+c=2, which gives a+b+c=4 ... (iii).
From equation (i): b=a+c. From equation (ii): a=c. Substituting a=c into b=a+c: b=2a. Now substituting into equation (iii): a+2a+a=4, so 4a=4, which gives a=1. Therefore c=1 and b=2.
Hence a+b+c=1+2+1=4.