# Calculate cotangent

Input |
---|

cot(x) |

Alternate form assuming x is real |

-(sin(2 x))/(cos(2 x) – 1) |

Roots |

x = 1/2 (2 pi n + pi), n element Z |

Series expansion at x=0 |

1/x – x/3 – x^3/45 – (2 x^5)/945 + O(x^6) (Laurent series) |

Derivative |

d/dx(cot(x)) = -csc^2(x) |

Indefinite integral |

integral cot(x) dx = log(sin(x)) + constant |