Possible Duplicate:
How to link two curves?
I've come across the following problem a lot in analysis and physics, and I'm wondering what tricks people use to deal with it.
Let's say we have two smooth functions $f_1$ and $f_2$ defined on disjoint subsets of $\mathbb{R}$, say $(-\infty,a]$ and $[b,\infty)$ where $a<b$. I want to use a smooth function that is defined on all of $\mathbb{R}$ and agrees with $f_1$ on the first subset, and with $f_2$ on the second subset. How do I argue that such a function exists?
Usually $f_1$ and $f_2$ are something simple, like linear functions, and I could explicitly write it down... but I'm looking for a slicker (and quicker) argument.