# Nakafa Framework: LLM
URL: https://nakafa.com/en/subject/high-school/12/mathematics/integral/integral-in-physics
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/12/mathematics/integral/integral-in-physics/en.mdx
Output docs content for large language models.
---
export const metadata = {
   title: "Integral in Physics",
   description: "Explore how integrals solve physics problems: calculate work with variable forces, spring energy, mass distributions, and center of mass effectively.",
   authors: [{ name: "Nabil Akbarazzima Fatih" }],
   date: "05/26/2025",
   subject: "Integrals",
};
## The Role of Integrals in the World of Physics
Have you ever wondered how physicists calculate the energy needed to launch a rocket into space? Or how they determine the forces acting on a water dam? The answer lies in one of the most powerful mathematical concepts: **integrals**.
In physics, many quantities we need cannot be calculated with simple formulas because they involve continuous changes. For example, the force acting on an object might change with position or time. This is where integrals become an invaluable tool.
The basic concept of integrals in physics is **accumulation**. If we have the rate of change of a quantity, integrals help us find the total quantity over a specific interval.
## Calculating Work with Integrals
Let's start with the most fundamental concept: **work**. In physics, work is defined as the product of force and displacement. But what if the force varies along the path?
Imagine a particle located at position  meters from the origin. The force acting on the particle is  Newtons. Now, what is the work required to move the particle from position  meter to position  meters?
Well, since the force changes with position, we cannot use the simple formula . We need to use integrals:
Let's solve it:
So, the required work is  or approximately  Joules.
## Hooke's Law and Spring Energy
Now let's discuss a very interesting application of integrals: **Hooke's Law**. Have you ever played on a trampoline or pressed a spring? The further we compress a spring, the greater the force required. This is what Hooke's Law explains.
According to Hooke's Law, the force required to stretch or compress a spring is proportional to its displacement from the equilibrium position:
where  is the spring constant and  is the displacement distance from the natural position.
Let's look at a real example. Suppose a force of  N is required to hold a spring that has been stretched from its original length of  cm to  cm. Now, what is the work required to stretch the spring from  cm to  cm?
First, we determine the spring constant. The displacement from the natural position is  cm =  m. Since , then:
So  N/m.
Now, to calculate the work to stretch the spring from  cm to  cm, we need to calculate the integral. The coordinates we use:
- Position  cm =  m from natural position
- Position  cm =  m from natural position
We can calculate the work with integrals:
## Calculating Mass from Density Functions
Another application of integrals in physics is calculating the **mass** of an object if we know its density function. This is very useful for objects with non-uniform density.
Suppose we have a rod of length  meters with linear density  kg/m, where  is the distance from one end of the rod. What is the total mass of the rod?
## Determining Center of Mass
Another very important concept is **center of mass**. For objects with non-uniform density, the center of mass can be calculated using integrals.
If we have a rod with density  over interval , then the center of mass coordinate is:
For the rod with density  above:
> The center of mass indicates the point where the entire mass of an object can be considered concentrated. This is very important in equilibrium analysis and object dynamics.
## Calculating Moment of Inertia
**Moment of inertia** is a quantity that shows how difficult it is for an object to rotate about a certain axis. For continuous objects, moment of inertia is calculated using integrals:
where  is the distance from the rotation axis and  is the mass element.
For a homogeneous rod with mass  and length  rotating about one of its ends:
## Exercises
1. A particle moves along the x-axis with force  Newtons. Calculate the work done to move the particle from  to  meters!
2. A spring has spring constant  N/m. How much energy is stored in the spring when stretched  meters from equilibrium position?
3. A wire of length  meters has linear density  kg/m. Determine the total mass of the wire and the position of its center of mass!
### Answer Key
1. **Calculating work with variable force**
   
   
   
   
   
   
   
   The work done is  Joules.
2. **Calculating spring energy**
   The potential energy stored in the spring is:
   
   
   
   
   
   
   The potential energy stored is  Joule.
3. **Calculating wire mass and center of mass**
   Total mass:
   
   
   
   Center of mass:
   
   
   
   
   
   
   
   The total mass of the wire is  kg and its center of mass is located at position  meters from the end.