calculus2-integrals

✍️ Calculus II - Basic Function Integrals

https://github.com/quantum-software-development/calculus2-integrals

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.4%) to scientific vocabulary

Keywords

calculus-2 integrals latex-code mathematics python3
Last synced: 6 months ago · JSON representation ·

Repository

✍️ Calculus II - Basic Function Integrals

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
calculus-2 integrals latex-code mathematics python3
Created over 1 year ago · Last pushed 7 months ago
Metadata Files
Readme Funding License Citation Support

README.md


##

✍️ Calculus 2 - Function Integrals - Resolution of Mathematics Exercises

AI Data Science - PUCSP University - Math Repository - Professor Eric Bacconi Gonçalves


https://github.com/user-attachments/assets/0b67b15b-57eb-45b5-bba0-a4445b112ee6


Sponsor Quantum Software Development


Introduction to the Repository

Welcome to the "Basic Function Integrals" repository! This repository was created to provide an introduction to integral calculus II through practical examples. Here, you will find detailed solutions to various integrals of polynomial, trigonometric, and logarithmic functions. This material is suitable for both beginners and those who want to review fundamental concepts of calculus II.

This repository pertains to the Calculus II and Probability course of the Machine Learning discipline in the second semester of 2024 for the Data Science and Artificial Intelligence undergraduate program at the Pontifical Catholic University of São Paulo (PUC-SP).

Fundamental Concepts

This repository covers the basic concepts of integration, which is the process of finding the antiderivative of a function. Integration is an essential tool in calculus and is used to calculate areas under curves, volumes of solids of revolution, among other applications.

Why Integrals are Important for AI Data Scientists

Integrals are a crucial mathematical tool for AI Data Scientists due to their wide-ranging applications in data analysis, machine learning, and artificial intelligence. Here are a few key reasons:

  1. Probability and Statistics: Many machine learning algorithms rely heavily on probability theory. Integrals are used to calculate probabilities, especially when dealing with continuous random variables. For instance, the probability of a certain outcome within a range can be found by integrating the probability density function over that range.

  2. Optimization Algorithms: Machine learning models, particularly those in deep learning, often involve optimizing a cost function. These functions are typically minimized or maximized by calculating gradients, which involve integration in continuous spaces. Understanding the integral calculus behind these processes helps in fine-tuning algorithms for better performance.

  3. Expectation and Variance: In the analysis of machine learning models, integrals are used to compute expected values (means) and variances of continuous random variables. These metrics are essential for evaluating model performance and understanding the underlying data distribution.

  4. Continuous Data and Functions: When dealing with continuous data, integrals allow data scientists to perform crucial operations like calculating areas under curves (e.g., ROC AUC), smoothing data, or analyzing cumulative distributions. This understanding is key to making accurate predictions and assessments in AI models.

  5. Neural Networks: In the realm of neural networks, integrals are fundamental to understanding how different layers interact, especially in cases involving activation functions or backpropagation, where continuous change is a core element.

Conclusion

Mastering integrals and their applications is vital for AI Data Scientists. Whether it’s in probability theory, optimization, or data analysis, integrals provide the mathematical foundation needed to build, understand, and improve complex machine learning models. By grasping these fundamental concepts, you’ll be better equipped to tackle the challenges and opportunities in the field of artificial intelligence.

Solved Exercises

The exercises solved in this repository cover indefinite integrals and are presented with step-by-step solutions. Each example includes the original integral, decomposition into simpler terms (when applicable), the integration of each term, and the final answer.

Exercise List

Below are the exercises solved in this repository. They have been written in LaTeX to ensure a clear and precise presentation. Feel free to use and improve the code as needed.

Exercises: Find the following integrals 👇

Exercicise A:

${\huge \bf \int \left(x^{\frac{3}{2}} + 2x + 1\right) \, dx}$

Solution:: We can integrate each term separately:

$\huge \bf \int x^{\frac{3}{2}} \, dx + \int 2x \, dx + \int 1 \, dx$

1st:

$\huge \bf \int x^{\frac{3}{2}} dx$

$\huge \bf \frac{x^{\frac{3}{2} + 1}}{\frac{3}{2} + 1} \rightarrow \frac{x^{\frac{5}{2}}}{\frac{5}{2}} \rightarrow \frac{2}{5}x^{\frac{5}{2}}$


2st:

$\huge \bf \int 2x dx\$


$\huge \bf \frac{x^{1+1}}{1+1} \rightarrow 2 \cdot \frac{x^2}{2} \rightarrow x^2$


3st:

$\huge \bf \int 1 dx$


The indefinite integral of (1) with respect to (x) is given by: ☟

$\huge \bf \int 1 \, dx \rightarrow x + k$


Where $(k)$ is the constant of integration

$\huge \bf \ x + k$


Final Result:

$\huge \bf \int \left(x^{\frac{3}{2}} + 2x + 1\right) \, dx \rightarrow \frac{2}{5}x^{\frac{5}{2}} + x^2 + x + k$

Exercicise B:

$\huge \bf \int \sqrt[3]{x^2} \, dx$


First, express the cube root as a fractional exponent: ☟

$\huge \bf \int x^{\frac{2}{3}} \, dx$


Integrating:

$$\huge \bf \frac{x^{\frac{2}{3} + 1}}{\frac{2}{3} + 1} \rightarrow \frac{x^{\frac{5}{3}}}{\frac{5}{3}} \rightarrow \frac{3}{5}x^{\frac{5}{3}}$$


#####

Final Result:


$$\huge \bf \int \sqrt[3]{x^2} dx \rightarrow \frac{3}{5}x^{\frac{5}{3}} + k$$


Exercicise C:


$$\huge \bf \int \frac{1}{x^3} \, dx$$

Solution of the integral:

$$\huge \bf \int x^n \, dx = \frac{x^{n+1}}{n+1} + k$$

Applying the rule to the given function:

$$\huge \bf \int x^{-3} \, dx = \frac{x^{-2}}{-2} + C = -\frac{1}{2x^2} + k$$

Solution of the integral:

$$\huge \bf \frac{1}{2x^2} + k$$

Final Result:

$$\huge \bf \int \frac{1}{x^3} \, dx = -\frac{1}{2x^2} + k$$

Exercicise D:


$$\huge \bf \int \frac{x^2 + x + 1}{\sqrt{x}} \, dx$$

💡 Solution:: We can integrate each term separately:

$$\huge \bf \int \left(\frac{x^2}{\sqrt{x}} + \frac{x}{\sqrt{x}} + \frac{1}{\sqrt{x}}\right) \, dx$$

This simplifies to:

$$\huge \bf \int \left(x^{\frac{3}{2}} + x^{\frac{1}{2}} + x^{-\frac{1}{2}}\right) \, dx$$

Integrating each term:

$$\huge \bf \int x^{\frac{3}{2}} \, dx = \frac{2}{5}x^{\frac{5}{2}}$$

$$\huge \bf \int x^{\frac{1}{2}} \, dx = \frac{2}{3}x^{\frac{3}{2}}$$

$$\huge \bf \int x^{-\frac{1}{2}} \, dx = 2x^{\frac{1}{2}}$$

#####

Final Result:

$$\huge \bf \int \frac{x^2 + x + 1}{\sqrt{x}} \, dx = \frac{2}{5}x^{\frac{5}{2}} + \frac{2}{3}x^{\frac{3}{2}} + 2x^{\frac{1}{2}} + k$$


Contribute

Contributions are welcome! If you want to add more examples, correct errors, or improve the documentation, please submit a pull request. Let's learn and grow together on the journey of integral calculus.

How to Contribute

Any contributions are highly appreciated. You can contribute in two ways:

  1. Create an issue and tell us your idea 💡. Make sure that you use the new idea label in this case;

  2. Fork the project and submit a full requesto with your new idea. Before doing that, please make sure that you read and follow the Contributions Guide. ⊹★🔭๋࣭

Main Contributors

Copyright 2025 Quantum Software Development. Code released under the MIT License license.

Owner

  • Name: Quantum Software Development
  • Login: Quantum-Software-Development
  • Kind: organization

Quantum 4 All !

Citation (CITATION.cff)

cff-version: 1.2.0
title: Quantum-Software-Development 
message: If you really want to cite this repository, here's how you should cite it.
type: software
authors:
  - given-names: Quantum-Software-Development - calculus2-Integrals
repository-code: https://github.com/Quantum-Software-Development/calculus2-Integrals
license: MIT License 

GitHub Events

Total
  • Delete event: 61
  • Issue comment event: 9
  • Push event: 62
  • Pull request event: 121
  • Create event: 64
Last Year
  • Delete event: 61
  • Issue comment event: 9
  • Push event: 62
  • Pull request event: 121
  • Create event: 64

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 4
  • Total pull requests: 161
  • Average time to close issues: 37 minutes
  • Average time to close pull requests: 4 days
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.04
  • Merged pull requests: 134
  • Bot issues: 0
  • Bot pull requests: 71
Past Year
  • Issues: 0
  • Pull requests: 77
  • Average time to close issues: N/A
  • Average time to close pull requests: 9 days
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.08
  • Merged pull requests: 50
  • Bot issues: 0
  • Bot pull requests: 71
Top Authors
Issue Authors
  • FabianaCampanari (2)
  • dependabot[bot] (1)
Pull Request Authors
  • FabianaCampanari (110)
  • dependabot[bot] (96)
Top Labels
Issue Labels
dependencies (1) python (1)
Pull Request Labels
dependencies (96) python (96) no-pr-activity (1)

Dependencies

.github/workflows/blank.yml actions
  • actions/checkout v4 composite
.github/workflows/stale.yml actions
  • actions/stale v9 composite
.github/workflows/static.yml actions
  • actions/checkout v4 composite
  • actions/configure-pages v5 composite
  • actions/deploy-pages v4 composite
  • actions/upload-pages-artifact v3 composite
package-lock.json npm
package.json npm
  • @primer/css 21.1.1
requirements.txt pypi
  • Django ==5.0.6
  • beautifulsoup4 ==4.10.0
  • ipywidgets ==7.6.5
  • joblib ==1.2.0
  • jupyter ==1.0.0
  • keras ==2.13.1
  • matplotlib ==3.4.3
  • nltk ==3.8.2
  • notebook ==6.4.12
  • numpy ==1.22.0
  • pandas ==1.3.3
  • psycopg2-binary ==2.9.1
  • requests ==2.32.0
  • scikit-learn ==1.5.0
  • scipy ==1.11.1
  • seaborn ==0.11.2
  • spacy ==3.1.3
  • sqlalchemy ==1.4.23
  • tensorflow ==2.12.1