Differentiable / continuous functions

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
jem05
Messages
54
Reaction score
0

Homework Statement


give an example of a function f: R --> R that is differentiable n times at 0, and discontinous everywhere else.

Homework Equations


---

The Attempt at a Solution



i got one, and i proved everything, i just want to make sure what i did is correct:

f:x n+1 when x is rational
0 when x is irrational

by the way, does the example hold if i invert them, that is 0 if rational and xn+1 if irrational?
(nothing changes right?)
thank you

oh, and x^n does not work, instead of x^n+1, right?
 
Last edited:
Physics news on Phys.org
jem05 said:

Homework Statement


give an example of a function f: R --> R that is differentiable n times at 0, and discontinous everywhere else.

Homework Equations


---

The Attempt at a Solution



i got one, and i proved everything, i just want to make sure what i did is correct:

f:x n when x is rational
0 when x is irrational

btw, does the example hold if i invert them, that is 0 if rational and xn if irrational? (nothing changes right?)
thank you
Your function is differentiable (and hence continuous) everywhere on R, except at a finite number of points. Indeed, your function is differentiable on at least [itex]\mathbb{R}\setminus\mathbb{Q}[/itex].
 
Last edited: