Calculus: Solving Piece wise function for constants a and b

Hi (Smile)

I have been working on this problem for days and i think im just missing a concept or something. the question is;

Let f(x)={cos (pi*x/2) +a if x<-2

{100 if x=-2

{2x^2 +b if -2<x<0

{2^x +1 if x>0 where a and b are constants. Find a and b for which both lim x-->0 f(x) and lim x-->-2f(x) exist.

So far i work it out and i can get either a=11 and b=2 or a=101 and b=92 but with these answers f(x) isnt continuous.

Help meh pleaaasseee!! (with working would be great (Smile))

THANK YOU!!!

Re: Calculus: Solving Piece wise function for constants a and b

In order for to exist, we require:

Now, using the definition of , we find this means:

In order for to exist, we require:

Now, using the definition of , we find this means:

This ensures the limits exist, and while there is a discontinuity at , this is allowed as the function need not have the value of the limits at that point.

Re: Calculus: Solving Piece wise function for constants a and b

Thank you MarkFL :) that was the answer that i has but i didnt know that discontinuity would allow the limits to still exist :) thanks again