Useful examples of pathological functions
The Weierstrass function is continuous everywhere and differentiable nowhere.
The Dirichlet function (the indicator function for the rationals) is continuous nowhere.
A modification of the Dirichlet function is continuous at all irrational values and discontinuous at rational values.
The Devil's Staircase is uniformly continuous but not absolutely. It increases from 0 to 1, but the derivative is 0 almost everywhere.
Also: Conway base 13 function.
This function has the following properties.
1. On every closed interval $[a, b]$, it takes every real value.
2. It is continuous nowhere.
Here's an example of a strictly increasing function on ℝ which is continuous exactly at the irrationals.
Pick your favorite absolutely convergent series ∑an in which all the terms are positive (mine is ∑1/2n) and your favorite enumeration of the positive rationals: ℚ={q1,q2,...}. For a real number x, define f(x) to be the sum of all the an for which qn ≤ x.