I am looking for a function $f : \mathbb{R_{0}^2} \to \mathbb{R_0}$ (where $\mathbb{R}_0$ is the set of non-negative reals) such that $f(x,y) = g(ax + by)$ for some $a,b > 0$ and $g : \mathbb{R_0} \to \mathbb{R}_0$, $f$ is continuous everywhere but not differentiable everywhere?
You are free to choose any $a,b,g$ (they are not given). The construction I came up with is $f(x,y) = |x+y-1|$.
Is that correct? Can I get a better example that looks more natural? (What I mean by natural is, something that looks differentiable to an amateur eye, but is not.)