Skip to content

Instantly share code, notes, and snippets.

@JoeJoe1313
Last active January 3, 2026 21:17
Show Gist options
  • Select an option

  • Save JoeJoe1313/e95292595763ce75b41a12c43520295c to your computer and use it in GitHub Desktop.

Select an option

Save JoeJoe1313/e95292595763ce75b41a12c43520295c to your computer and use it in GitHub Desktop.
Trigonometric Identities the Euler Way
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "2c9e7ca0",
"metadata": {},
"source": [
"Let's derive the identity for the product of cosine and cosine functions. Using (3) and (4), we have\n",
"\n",
"$$\n",
"\\cos\\alpha \\cos\\beta = \\frac{1}{4}\\left(e^{i\\alpha} + e^{-i\\alpha}\\right)\\left(e^{i\\beta} + e^{-i\\beta}\\right) =\n",
"$$\n",
"\n",
"$$\n",
"= \\frac{1}{4}\\left[e^{i(\\alpha + \\beta)} + e^{i(\\alpha - \\beta)} + e^{-i(\\alpha - \\beta)} + e^{-i(\\alpha + \\beta)}\\right] =\n",
"$$\n",
"\n",
"$$\n",
"= \\frac{1}{2}\\left[\\cos(\\alpha + \\beta) + \\cos(\\alpha - \\beta)\\right].\n",
"$$\n",
"\n",
"# Conclusion\n",
"\n",
"The key advantage of using Euler's formula is that it transforms trigonometric problems into algebraic manipulations with exponentials, and I find this beautiful."
]
},
{
"cell_type": "markdown",
"id": "56fc4761",
"metadata": {},
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "blog",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
@JoeJoe1313
Copy link
Author

Euler's_formula

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment