Since `costext[(]x text[)]=sin(pi/2-x),`
Using the Chain Rule, we may rewrite the right-hand side:
Since `cos(pi/2-x)=sintext[(]x text[)],`