1. Find the equation of the curve which passes through the origin and whose gradient at (x,y) is sin x+cos x.
2. At any point (x,y) on a curve, dy/dx= -2x+1. The line y=x+2 is tangent to the curve at point A. (a) Find the coordinates of A. (b) Find the equation of the curve.