Hello, Zanderist!
Find and so that the function: .
. . is both continuous and differentiable.
To be continuous, be equal on "both branches".
. .
. .
. . Hence: . .[1]
To be differentiable, must be equal on "both branches."
. .
. .
. . Hence: .
Substitute into [1]: .