y=cosx的导数为y'=-sinx,则y=cosx在点x=π/2处的切线的斜率为y'=-sin(π/2)=-1,y(π/2)=cos(π/2)=0,则切线过点(π/2,0),<br>则切线方程为(y-0)/(x-π/2)=-1,即y=-x+π/2.