I wanted to solve the following integral using the residue theorem $\begin{align*}\int_{0}^{2\pi} \frac{\cos(3x)}{5-4\cos(3x)} \,dx\end{align*}$ and for that I thought I could replace it by $\begin{align*} \operatorname{Re}\biggl(\int_{0}^{2\pi} \frac{e^{3ix}}{5-4 e^{3ix}}\, dx\biggr) = \operatorname{Re}\biggl(\oint_\gamma \frac{z^{3}}{5-4 z^{3}} \frac{dz}{iz}\biggr)\end{align*}$ using $z=e^{ix}$ and $\gamma$ beeing a closed loop along the unit circle. Following this method, I could find that there are no singularities enclosed by the path so this should give me $\begin{align*}\int_{0}^{2\pi} \frac{\cos(3x)}{5-4\cos(3x)}\, dx=0\end{align*}$ which is wrong. I thought the mistake is in the step $\begin{align*}\int_{0}^{2\pi} \frac{\cos(3x)}{5-4\cos(3x)}\, dx=\operatorname{Re}\biggl(\int_{0}^{2\pi} \frac{e^{3ix}}{5-4 e^{3ix}}\, dx\biggr)\end{align*}$. Indeed I calculated these on Wolfra alpha and didn't get the same result. I don't understand when I can use the trick of substituting an integral with $\cos(x)$ by the real part of an integral with $e^{ix}$ or substituting an integral with $\sin(x)$ by the imaginary part of an integral with $e^{ix}$ multiplied by $i$, since $e^{ix}=\cos(x) + i\sin(x)$. So, I would like to know in general when I am allowed to use it, and when I should be more careful about it.
2026-04-08 08:52:25.1775638345
Why replacing $\cos(x)$ by $e^{ix}$ in an integral and taking the real part doesn't always work? When does it work?
168 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in COMPLEX-ANALYSIS
- Minkowski functional of balanced domain with smooth boundary
- limit points at infinity
- conformal mapping and rational function
- orientation of circle in complex plane
- If $u+v = \frac{2 \sin 2x}{e^{2y}+e^{-2y}-2 \cos 2x}$ then find corresponding analytical function $f(z)=u+iv$
- Is there a trigonometric identity that implies the Riemann Hypothesis?
- order of zero of modular form from it's expansion at infinity
- How to get to $\frac{1}{2\pi i} \oint_C \frac{f'(z)}{f(z)} \, dz =n_0-n_p$ from Cauchy's residue theorem?
- If $g(z)$ is analytic function, and $g(z)=O(|z|)$ and g(z) is never zero then show that g(z) is constant.
- Radius of convergence of Taylor series of a function of real variable
Related Questions in COMPLEX-INTEGRATION
- Contour integration with absolute value
- then the value of $ \frac{1-\vert a \vert^2}{\pi} \int_{\gamma} \frac{\vert dz \vert}{\vert z+a \vert^2} $.
- Checking that a function is in $L^p(\mathbb{C})$
- Calculate integral $\int_{0}^{2\pi} \frac{dx}{a^2\sin^2x+b^2\cos^2x}$
- Complex integral of $\cfrac{e^{2z}}{z^4}$
- Have I solved this complex gaussian integral correctly?
- Evaluate the integral $ I=\frac{1}{2\pi i}\int_{\vert z \vert =R}(z-3)\sin \left(\frac{1}{z+2}\right)dz$,
- Integrating using real parts
- Complex integral(s)of Hyperbolic functions for different contours
- Are the Poles inside the contour?
Related Questions in RESIDUE-CALCULUS
- How to get to $\frac{1}{2\pi i} \oint_C \frac{f'(z)}{f(z)} \, dz =n_0-n_p$ from Cauchy's residue theorem?
- contour integral involving the Gamma function
- The Cauchy transform of Marchenko-Pastur law
- Contour Integration with $\sec{(\sqrt{1-x^2})}$
- calculate $\int_{-\infty}^\infty\frac{e^{ix} \, dx}{x^3-3ix^2+2x+2i}$
- Integral $\int_{-\infty}^{\infty} \frac{ \exp\left( i a e^{u}\right) }{ e^{b \cosh(u)} - 1 } du$
- Solve the improper integral with techniques of complex analysis
- Compute the integral with use of complex analysis techniques
- $\int\limits_{-\infty}^\infty \frac{1}{e^{x^{2}}+1}dx$
- Residue Theorem: Inside vs. Outside
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Yep the mistake is there the problem is that the $\operatorname{Re}$ function is linear, but it doesn’t distribute over division. $$\operatorname{Re} \left(\frac{a}{b}\right)$$ is not the same as $$ \frac{\operatorname{Re} (a)}{\operatorname{Re}(b)}.$$
Therefore, you cannot change $$\frac{\cos(3x)}{5-4\cos(3x)} $$ to $$\operatorname{Re}\left(\frac{e^{3ix}}{5-4 e^{3ix}}\right).$$
Basically the only time this will work as is, is if you only have cos on the numerator of the fraction.