Find the equation of tangent to the curve x=theta+sintheta and y=1+costheta at theta=pie/4.