Real Analysis & Calculus Revision Guide

Real Analysis Complete Real Analysis & Calculus Revision Guide Continuity • Uniform Continuity • Differentiability • Monotone Functions • Sequences • Limit Points • Topology & Theorems 1. Boundedness Theorem If a function f is continuous on a closed interval [a,b], then it is bounded. There exist real numbers M and m such that: m ≤ f(x) ≤ M for all x ∈ [a,b] Example f(x)=x² on [-2,2] Minimum value = 0 Maximum value = 4 Hence f(x) is bounded. Continuous functions on closed intervals never "blow up" to infinity. 2. Extreme Value Theorem If f is continuous on [a,b], then f attains both: Absolute Maximum Absolute Minimum Example f(x)=x² on [-1,2] Minimum = 0 at x=0 Maximum = 4 at x=2 3. Intermediate Value Theorem (IVT) If f is continuous on [a,b] and k lies between f(a) and f(b), then there exists c∈(a,b) such that: f(c)=k Example f(x)=x³ f(1)=1 and f(2)=8 Since 5 lies between 1 and 8, ...

Advanced Integration Techniques with SageMath: Visual Guides, Riemann Sums, Step-by-Step Examples, and Real-World Applications(Part 5)

📉 Mastering Improper Integrals with SageMath: From ∞ to Real Insight

Improper integrals pop up whenever the limits of integration stretch to infinity or the integrand becomes unbounded. These integrals appear in physics, engineering, probability theory, and even philosophical debates about infinity! 😲

In this post, we'll explore three types of improper integrals using SageMath:

Each example includes:


🔍 Type 1: — Infinity on the Horizon

🔢 Example 1:

Let’s integrate sin(x) from 0 to .

This integral diverges, since the sine function oscillates endlessly.

👉 Your Turn: Replace sin(x) with exp(-x)—does it converge? Why?


🔢 Example 2:

Explore ​

👉 Challenge: Try adjusting the lower limit to x=1. Does divergent still hold?


🔁 Type 2: — Across the Infinite Plane

🔢 Example 3:

🧠 Try This: Change the exponent to 2 or 1.5. When does it still converge?


📊 Visual Comparison Lab:

Consider the oscillatory integral:

As a increases, oscillations tighten.

🔬 Mini-Lab: 

Try plotting sin(a*x^2) instead. What changes? Which function is more "averaged out" over infinity?


⚠️ Type 3:— Discontinuous at a Boundary

🔢 Example 4:

💡 Zoom In:

Try plotting from x=0.01 to x=1. Notice how the curve shoots up near zero.


🔎 Zoomed View of Singularities

🔢 Example:

Here, the function spikes sharply at x=1. Zooming in to the interval (1,1.1) magnifies this behavior.

🎯 Zoom Lab: Try plotting on (1.001, 1.1) to really feel the singularity. What happens as


🌱 The   Threshold

Let’s analyze:

p

Behavior

p≤1

Diverges

p>1

Converges

Why is p=1 the tipping point?

Because the area under 1/x grows without bound—its decay is just too slow. Once p>1, the function shrinks fast enough to trap the area.

🧠 Concept Check: 

Sketch or mentally picture the decay for p = 0.5. Why does it fail to converge?


🎯 Interactive Challenge: Singular but Convergent?

Try this classic:

Despite the singularity at x=0, the integral converges!

🧪 Extra Task: Now try

 What’s the threshold p value here?


🤔 Explore Tan(x) and Cot(x)

Functions like tan(x) and cot(x) have vertical asymptotes at multiples of π. These are great for seeing bounded intervals with internal singularities.

👉 Test Case:

(Hint: vertical asymptote at )

What does SageMath say? Does it warn you? Does it split the integral?


💬 Reflection Prompts

  • Symbolic vs Numeric: 

            SageMath defaults to symbolic integration. If that fails (e.g., due to singularities or non-                        elementary antiderivatives), it tries numeric.

  • Your Role: 

           Try using  after  when symbolic output is too messy or returns unevaluated.

🔜 What’s Next?

Coming soon: Special Functions from Improper Integrals!

🧬 Gamma Function

  • Generalizes the factorial
  • Used in probability and statistics (e.g., waiting times, exponential families)

🧬 Beta Function

  • Appears in Bayesian inference, physics, and combinatorics
  • Defined using a bounded improper integral

💡 Sneak Peek Challenge:

Try computing:

Can SageMath handle it? What does it return?


We Want to Hear From You!



 

Comments

Popular posts from this blog

Heuristic Computation and the Discovery of Mersenne Primes

Understanding the Laplacian of 1/r and the Dirac Delta Function Mathematical Foundations & SageMath Insights

Neural Network Generalization in the Over-Parameterization Regime: Mechanisms, Benefits, and Limitations