The slope of the tangent at (x,y) to a curve passing through (1,π4) is given by yx−cos2(yx), then the equation of the curve is