Find all values of $a$ and $b$ that make the following function differentiable for all values of $x$ Problem
Find all values of $a$ and $b$ that make the following function differentiable for all values of $x$:
$$
f(x) = 
\begin{cases}
 ax + b, x &gt; - 1\\
 bx^2 - 3, x \leq -1\\   
\end{cases}  
$$

I was reviewing all my works for the last 3 years, and suddenly I found this problem in one of my homework assignment. Unfortunately, this assignment lacks the solution. I was 100% sure that I used to solve it correctly, but without a textbook I couldn't recall my poor memory. I knew this is a very basic question for the first calculus course, but I totally forgot how to start, could anyone give me a "tiny" hint? Thank you.
The only value of $x$ that gives any trouble is $x=-1$. You want $f$ to be continuous there, which gives you one equation in $a$ and $b$, and you want it to have the same derivative whichever formula you use, and that gives you a second equation.
Plug in "-1" for x in both equations.
Set the 2 equations equal to each other.  Simplify as much as possible.
Go back to the original two equations and take the derivative of each one.
Plug "-1" into the derivative equations for x.
Set the 2 derivative equations equal to each other and simplify.
You now should have 2 equations (from steps 2 and 5).  Solve these together using substitution.