Let
$$ f(x)= \begin{cases} a-x & x \leq 1, \\ \frac{1}{bx} & x>1. \end{cases} $$
Considering this piecewise defined function find values of $a,b$ such that the function is differentiable at $x=1$. Give the value of $f'(1)$.
I don't know how to go about this question without having any actual numerical values. Any help would be greatly appreciated.