A(-1,1) and P(a,b) are two points, where a and b are constants. The gradient of AP is 2. Find an expression for b in terms of a.