Skip to main content

Integral Problems Discussion

In this post, I would like to write a solution to an integral problem (possibly more problems in the future) as well as give insights that are usually not taught, in spite of its importance. Without any longer, let us delve into the problem.

Problem 1

Find the value of the integral:
[ \int \frac{\sqrt{4x-x^2}}{x} dx ]

Insight 1

First of all, in dealing with integrals, we should usually try to avoid forms with square roots. Moreover, it is usually harder to manipulate the equation if we have multiple $x$ terms in a square root.
Thus, in this problem, the most troublesome part is $\sqrt{4x-x^2}$.
After knowing this, several ideas to simplify this form might come up. 
The first most common ways to deal with $x$ and $x^2$ terms is by completing the square. In this case, $4x-x^2$ can be written as $-(x-2)^2+4$. However, the problem with this approach is that the denominator is $x$, so if we want to do a substitution of $u=x-2$, the denominator would be in the form of $u+2$, which would not help us in solving this problem. If the denominator were $x-2$, this approach might be an appropriate way to solve the problem. So, this approach does not simplify much the problem.
Since completing the square does not work here, we should try another method. Notice that we can factor out $4x-x^2$ into $x$ and $4-x$. Conveniently, we can cancel out the $x$ terms from the numerator and denominator as the following.
[ \int \frac{\sqrt{4x-x^2}}{x} dx ]
[ = \int \frac{\sqrt{x} \cdot \sqrt{4-x}}{(\sqrt{x})^2} dx ]
[ = \int \frac{\sqrt{4-x}}{\sqrt{x}} dx ]
At first, this might not look simpler. Nonetheless, we have achieved our first goal, which is to remove the two $x$ terms from the square root.

Insight 2

Now, our next goal is to remove the square root entirely. We can do this by using substitution. (In many cases, square roots correlates to trigonometric substitutions.)
The hard part is now is the substitution that we want. Remember, our goal is to remove the square root entirely, so we should make both $\sqrt{4-x}$ and $\sqrt{x}$ an integer. As such, $4-x$ and $x$ should both be a perfect square. Looking at this, you might recall a somewhat similar form $sin^2u$ and $1-sin^2u$, which are both perfect squares, because $1-sin^2x=cos^2x$. Adjusting to the given $4$, we also get that $4sin^2u$ and $4-4sin^2u$ are also perfect squares. Therefore, $4sin^2u$ is the perfect substitution for this. By considering $x=4sin^2u$, we can get:
[ x=4sin^2u]
[ dx = 8 \cdot sinu \cdot cosu \cdot du]
[ \int \frac{\sqrt{4-4sin^2u}}{\sqrt{4sin^2u}} dx ]
[ = \int \frac{2cosu}{2sinu} \cdot 8 \cdot sinu \cdot cosu \cdot du]
[ = 8 \int \cos^2{u} \cdot du]

Final Wrap Up

This is a common form which can be easily solved by considering the identity $cos^2u=\frac{cos2u+1}{2}$. Thus, we finish off and get our answer.
[8 \int \cos^2{u} du]
[ = 8 \int \frac{cos2u+1}{2} du]
[ = 4 \int (\cos2u+1) \cdot du]
[ = 2sin2u + 4u + C]

Dont forget to substitute back to $x$. Recall that $x=4sin^2u$. 
Several important substitutions:
[sinu = \frac{\sqrt{x}}{2}]
[u=\sin^{-1}(\sqrt{\frac{x}{4}})]
[cos^2u = 1-sin^2u = 1-\frac{x}{4}]
[cosu = \frac{\sqrt{4-x}}{2}]
[sin2u = 2 \cdot sinu \cdot cosu =\frac{\sqrt{4x-x^2}}{2}]
So, we get that
[2sin2u + 4u + C]
[ =  \sqrt{4x-x^2} + 4 \cdot sin^{-1}(\sqrt{\frac{x}{4}}) + C]

Problem 2

Find the value of the integral:
[ \int sec^3{x} \ dx ]

Comments

Popular posts from this blog

Proof for fun!

This post will be about several proofs of random theorems or formulas that I enjoy proving and I would like to share them with everyone. I hope that everyone could see the beauty of mathematical proofs from this post. Formula 1 For a positive integer $n$, it always holds true that: [\lim_{x \to 0} \frac{1-\prod_{i=1}^n cos(a_i x)}{x^2} = \frac{1}{2} \cdot \sum_{i=1}^n a_i^2] Note for some who might not be used to the notation, $\prod$ here is just like $\sum$ but instead of summation of terms, it is the product of all the terms. For example $\prod_{i=1}^3 i = 1 \cdot 2 \cdot 3 = 6$ Simple Example: [\lim_{x \to 0} \frac{1-cos3x \cdot cos4x \cdot cos5x}{x^2} = \frac{3^2+4^2+5^2}{2} = 25] Proof: In dealing with problem where there exist $n$ term products, we should try to build it from the most simple case of $n=1$, and then try to prove for $n=k+1$ using the equality from $n=k$ (similar to a domino effect ). In mathematics, we call this method as  induction . First step i...

Binary Search the Answer (BSTA)

 First and foremost, this post serves as my first ever competitive programming-related post and also as a testing of the equations and code snippets in this blog. Therefore, tips and advice are highly appreciated. In this post, I would like to write about a commonly used Divide and Conquer algorithm called Binary Search The Answer (BSTA). Many programmers might already know about binary search but some might not be familiar with BSTA.  What is BSTA? To recall, binary search is an algorithm for searching a value in a static sorted array by considering the median value and reducing the problem's scope by half, as shown  here . Binary search the answer uses a similar principle to a normal binary search of halving the range of the problem. However, we do not binary search a position with a certain value. Instead, we binary search the maximum/minimum value that satisfies the given constraints. In one iteration, we consider the average $mid$ of the current possible range and ...