Let

f(x) = x^2 if x ≤ 1
ax + b if x > 1.
Find the values of a and b so that f is continuous and has a derivative at x = 1.

See:

http://www.jiskha.com/display.cgi?id=1296841563