When a piecewise function contains parameters, imposing continuity (and possibly differentiability) at the junction point provides the equations that determine them.

Example — Determining the parameters for continuity

Let f(x)={x2+bxx<2ln(2x+a)x2f(x) = \begin{cases} x^2+bx & x<2 \\ \ln(2x+a) & x\ge 2\end{cases} Find a,ba,b so that ff is continuous and differentiable at x=2x=2.

Continuity: limx2(x2+bx)=4+2b\lim_{x\to 2^-}(x^2+bx) = 4+2b;  f(2)=ln(4+a)\ f(2) = \ln(4+a). We need: 4+2b=ln(4+a).4+2b = \ln(4+a).

Differentiability: f(x)={2x+bx<222x+ax2f'(x) = \begin{cases}2x+b & x<2 \\ \dfrac{2}{2x+a} & x\ge 2\end{cases}. The left limit of the derivative is 4+b4+b, the right one is 24+a\dfrac{2}{4+a}. We need: 4+b=24+a,from which4+a=24+b.4+b = \frac{2}{4+a}, \qquad\text{from which}\qquad 4+a = \frac{2}{4+b}.

Substituting into the first condition: 4+2b=ln ⁣(24+b).4+2b = \ln\!\left(\frac{2}{4+b}\right). It is a transcendental equation: it is solved numerically (or by trial), not with elementary algebraic methods.

The example shows an important point: continuity and differentiability give two distinct conditions. Continuity links the values of the two formulae; differentiability links their slopes. Together they form a system that, in general, may even be transcendental.

Topics: Continuita
Concepts: Continuita · Derivabilita · Funzione definita a tratti
Skills: Ragionare per casi · Risolvere equazioni