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, ...

🎨 2D Plotting in SageMath: A Beginner-Friendly, Interactive Guide

SageMath offers a powerful set of tools for 2D plotting — whether you're visualizing simple functions, multiple graphs, piecewise definitions, parametric curves, or polar plots.

In this guide, you’ll not only learn the basics but also see the plots, try mini-challenges, and discover real-life applications.


1. Plotting 2D Graphs in SageMath

1.1 Graph of Explicit Functions

Let's start by plotting the function:

πŸ”₯ Mini-Challenge:

  • Change the color to 'green'
  • Increase the thickness to 2
  • Add a

2. Plotting Multiple Graphs Together

Now, let’s plot

together:


3. Piecewise Functions

3.1 Basic Piecewise Example

Real-Life Connection: 

Piecewise functions often model mechanical systems where behavior changes suddenly — like a car’s suspension after a speed bump.

πŸ”₯ Mini-Challenge:

  • Modify it so the right side is  instead of .
  • Add a title to the plot.

4. Implicit Plots

Curves defined implicitly like can create beautiful shapes.

Real-Life Connection: 

Implicit plots are used in physics for phase diagrams and energy surfaces.


5. Parametric Plotting

Example:

Real-Life Connection: 

Parametric curves describe particle trajectories, such as the path of an electron in a magnetic field.


6. Polar Plots

Plot beautiful spirals and flowers!

πŸ”₯ Mini-Challenge:

  • Try to make (Replace cos by sin and see the magic!)
  • Try different values of s like 1.5, 2.5, and 5.

 

 

  • Experiment with  to make smoother or rougher plots.

7. Region Plots

Shade regions defined by inequalities!

Real-Life Connection: 

Region plots are used in optimization and economics for feasible regions.


8. Plotting Polygons


9. Graphics Arrays

Combine multiple plots side-by-side:

πŸ–Ό️ Visual Example:


πŸš€ Wrapping Up

SageMath’s 2D plotting features are rich, colorful, and incredibly flexible — perfect for math students, physicists, engineers, and data enthusiasts.

Your Challenge:

  • Create a custom graphics array using parametric and polar plots combined.
  • Try plotting a real-world model, like a pendulum's path or a signal wave!

πŸš€ What's Next?

Now that you've mastered 2D plotting in SageMath, get ready to take things to the next level — 3D Plotting with SageMath! 🎨🌍
We'll explore how to create beautiful surfaces, curves in space, implicit 3D shapes, and even animated 3D visualizations.
Stay tuned for the next post where your graphs will come to life in three dimensions!

 

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