Problem with this function continuity and differentiation

In summary, the functions f and g, given by a) f(x)={ax+b if x<0 and sin(x) if x≥0} and b) g(x)={ax+b if x<0 and e2x if x≥0}, are (i) continuous at 0 when b=0, and (ii) differentiable at 0 when a=2 and b=1. There may be an error in the given answer key.
  • #1
charmedbeauty
271
0

Homework Statement



Suppose that a and b are real numbers. Find all values of a and b (if any) such that the functions f and g, given by

a) f(x)={ax+b if x<0 and sin(x) if x≥0}

b) g(x)={ax+b if x<0 and e2x if x≥0}

are (i) continuous at 0 and (ii) differentiable at 0



Homework Equations






The Attempt at a Solution



So for a) f(x)={ax+b if x<0 and sin(x) if x≥0}

as the lim→0+

then sin(0) =0

as the lim →0-

then a(0)+b=b

so hence only when b=0 is the function continuous at 0.

for a) (ii)

do I just use the limit definition

ie,

lim h→0+ = limh→0-

so lim h→0+ (f sin(x+h)-f(sinx)) / h = lim h→0- (f(a(x+h)+b)-f(ax+b))/ h

lim h→0+ sin h / h= sin 0/0 =0 and lim h→0- = a.

so it is only differentiable at 0 when a=0

But the answer says when a=1 and b=0 for a) (ii)

Please help!
 
Physics news on Phys.org
  • #2
charmedbeauty said:

Homework Statement



Suppose that a and b are real numbers. Find all values of a and b (if any) such that the functions f and g, given by

a) f(x)={ax+b if x<0 and sin(x) if x≥0}

b) g(x)={ax+b if x<0 and e2x if x≥0}

are (i) continuous at 0 and (ii) differentiable at 0



Homework Equations






The Attempt at a Solution



So for a) f(x)={ax+b if x<0 and sin(x) if x≥0}

as the lim→0+

then sin(0) =0

as the lim →0-

then a(0)+b=b

so hence only when b=0 is the function continuous at 0.

for a) (ii)

do I just use the limit definition

ie,

lim h→0+ = limh→0-

so lim h→0+ (f sin(x+h)-f(sinx)) / h = lim h→0- (f(a(x+h)+b)-f(ax+b))/ h

lim h→0+ sin h / h= sin 0/0 =0 and lim h→0- = a.

so it is only differentiable at 0 when a=0

But the answer says when a=1 and b=0 for a) (ii)

Please help!

The derivative of sin(x) at x=0 isn't 0. limit h->0 sin(h)/h isn't 0. sin(0)/0 isn't 0 either. It's undefined.
 
  • #3
Dick said:
The derivative of sin(x) at x=0 isn't 0. limit h->0 sin(h)/h isn't 0. sin(0)/0 isn't 0 either. It's undefined.

Am I using the wrong approach then?

What happens if these terms are undefined, does the formula not work?
 
  • #4
charmedbeauty said:
Am I using the wrong approach then?

What happens if these terms are undefined, does the formula not work?

limit h->0 sin(h)/h is defined. It's just not 0. You don't have any idea what it might be? Try experimenting with a calculator. You really should know what it is. Hopefully the experiment will remind you.
 
  • #5
To make f(x) differentiable at x=0 (or in other words, so that the graph doesn't have a corner), ax+b must have the same slope as the derivative of sinx has at x=0, which would be...?
 
  • #6
Dick said:
limit h->0 sin(h)/h is defined. It's just not 0. You don't have any idea what it might be? Try experimenting with a calculator. You really should know what it is. Hopefully the experiment will remind you.

ohh right its 1, silly me.
 
  • #7
Bohrok said:
To make f(x) differentiable at x=0 (or in other words, so that the graph doesn't have a corner), ax+b must have the same slope as the derivative of sinx has at x=0, which would be...?

Ok so a=1 and b=0.

But for part b) (ii)

I have the limit from 0- =a from part a)
and the lim h-->0+

= f(e2(x+h))-f(e2x) / h

= e2x +e2h-e2x / h

= 1/0 ??

but the answer says a=2 and b=-1??

what am I doing wrong now?
 
  • #8
charmedbeauty said:
Ok so a=1 and b=0.

But for part b) (ii)

I have the limit from 0- =a from part a)
and the lim h-->0+

= f(e2(x+h))-f(e2x) / h

= e2x +e2h-e2x / h

= 1/0 ??

but the answer says a=2 and b=-1??

what am I doing wrong now?

Do you have to everything with difference quotients? You aren't very good at it. If f(x)=e^(2x), f(0)=1 and f'(0)=2. Can't you do it by just differentiating using the chain rule?
 
Last edited:
  • #9
Dick said:
Do you have to everything with difference quotients? You aren't very good at it. If f(x)=e^(2x), f(0)=1 and f'(0)=2. Can't you do it by just differentiating using the chain rule?

yeah I guess so
But what am I differentiating exactly??

because I am confused with b=-1

f(0) for the other function =+b
f'(0) = a

DO you have to match these up, because I would say that a=2 and b=1, not -1?
Im confused?
 
  • #10
charmedbeauty said:
yeah I guess so
But what am I differentiating exactly??

because I am confused with b=-1

f(0) for the other function =+b
f'(0) = a

DO you have to match these up, because I would say that a=2 and b=1, not -1?
Im confused?

I would say a=2 and b=1 as well. There may be an error in your answer key.
 
  • #11
Dick said:
I would say a=2 and b=1 as well. There may be an error in your answer key.

ok thanks dick!
 

FAQ: Problem with this function continuity and differentiation

1) What is the definition of continuity in a mathematical function?

The definition of continuity in a mathematical function is that the function is continuous if the graph of the function has no breaks or gaps. This means that as the input values of the function approach a certain value, the output values also approach that same value.

2) How can I determine if a function is continuous at a specific point?

To determine if a function is continuous at a specific point, you can use the three-part definition of continuity. This states that the function must exist at that point, the limit of the function as it approaches that point must exist, and the limit must be equal to the value of the function at that point.

3) What is the difference between continuity and differentiability?

Continuity refers to the smoothness of a function, while differentiability refers to the existence of a derivative at a specific point. A function can be continuous but not differentiable, but if a function is differentiable, it must also be continuous.

4) Can a function be continuous but not differentiable?

Yes, a function can be continuous but not differentiable. This means that the function is smooth and has no breaks or gaps, but the slope of the function at a specific point is not defined.

5) What is the relationship between continuity and differentiability?

The relationship between continuity and differentiability is that if a function is differentiable at a specific point, it must also be continuous at that point. However, a function can be continuous but not differentiable, as differentiability requires the existence of a well-defined derivative at that point.

Back
Top