# Work

Work is the total amount of effort required to perform a task.

In general, if an object moves along a straight line with position function `s(t)`, then the force `F` on the object (in the same direction) is defined by Newton’s Second Law of Motion as the product of its mass and its acceleration: `F=m(d^2s)/(dt^2)`.

In the SI metric system, the mass is measured in kilograms (kg), the displacement in meters (m), the time in seconds (s), and the force in newtons (`N=(kg*m)/s^2`).

Thus, a force of 1 N acting on a mass of 1 kg produces an acceleration of 1 `m/s^2`.

In the U. S. System the fundamental unit is chosen to be the unit of force, which is the pound.

If force is constant then it is easy to calculate work: work is the product of the force and the distance that the object moves: `W=Fd`.

If `F` is measured in newtons and `d` in meters, then the unit for `W` is a newton-meter, which is called a joule (J). If `F` is measured in pounds and `d` in feet, then the unit for `W` is a foot-pound (ft-lb), which is about 1.36 J.

For instance, suppose you lift a 1 kg bag off the floor to put it on a table that is 0.8 m high. The force you exert is equal and opposite to that exerted by gravity, so `F=mg=1*9.8=9.8\ N` and `W=Fd=9.8*0.7~~6.86\ J`.

But if a 30-lb weight is lifted 7 ft off the ground, then the force is given as `F=30\ lb`, so the work done is `W=Fd=30*7=120\ ft-lb`.

Here we didn't multiply by `g=9.8` because we were given the weight (a force) and not the mass.

As can be seen there is no problem with calculating work, when force is constant, but what to do if work is variable?

Let's suppose that the object moves along the x-axis in the positive direction, from `x=a` to `x=b`, and at each point `x` between `a` and `b` a force `f(x)` acts on the object, where `f` is a continuous function.

We divide the interval `[a,b]` into `n` subintervals with endpoints `x_0,x_1,...x_n` and equal width `Delta x=(b-a)/n`. We choose a sample point `x_i^(**)` in the i-th subinterval `[x_(i-1),x_i]`. Then the force at that point is `f(x_i^(**))`. If `n` is large, then `Delta x` is small, and since `f` is continuous, the values of `f` don't change very much over the interval `[x_(i-1),x_i]`. In other words, `f` is almost constant on the interval and so the work `W_i` that is done in moving the particle from `x_(i-1)` to `x_i` is `W_i~~f(x_i^(**))Delta x`. Thus, we can approximate the total work by `W=sum_(i=1)^nf(x_i^(**))Delta x`.

This approximation becomes better as we make `n` larger. Therefore, we define the work done in moving the object from `a` to `b` as the limit of this quantity as `n->oo`: `W=lim_(n->oo)sum_(i=1)^n f(x_i^**)Delta x`.

We recognize in this limit definite integral.

**The work done in moving the object from `a` to **`b` is `W=int_a^b f(x)dx`.

**Example 1**. When a particle is located at a distance `x` feet from the origin, a force of `x^3+1` pounds acts on it. How much work is done in moving it from `x=2` to `x=4`?

`W=int_2^4(x^3+1)dx=(1/4x^4+x)|_2^4=(1/4*4^4+4)-(1/4*2^4+2)=62`.

Thus, the work done is 62 ft-lb.

In the next example we use a law from physics: **Hooke's Law** states that the force required to maintain a spring stretched `x` units beyond its natural length is proportional to `x`: `f(x)=kx` where `k` is a positive constant (called the spring constant).

Hooke's Law holds provided that `x` is not too large.

**Example 2**. A force of 60 N is required to hold a spring that has been stretched from its natural length of 5 cm to a length of 15 cm. How much work is done in stretching the spring from 15 cm to 20 cm?

According to Hooke's Law, the force required to hold the spring stretched `x` meters beyond its natural length is `f(x)=kx`.

When the spring is stretched from 5 cm to 15 cm, the amount stretched is 10 cm=0.1m. This means that `f(0.1)=60`, so `0.1k=60` or `k=600`.

Therefore, `f(x)=600x`.

Thus, the work done in stretching the spring from 15 cm to 20 cm is `W=int_0.1^(0.15)600xdx=300x^2|_(0.1)^(0.15)=300(0.15^2-0.1^2)=3.75\ J`.

**Example 3**. Suppose that you have a rope that weighs `4 (lbs)/(ft)`. End of this rope of attached to the bucket. You drop bucket into the well and now it is full of water. Its weight is 30 lbs. Find the work done to lift a bucket if depth of well is 50 feet.

First we need to make convention about `x`. Let `x` be the distance between ground and bucket. So, when `x=0` bucket is in the bottom and when `x=50` we are done.

At any point `x` we need to pull up `50-x` feets of rope plus bucket.

So, for any `x` force is `f(x)=4(50-x)+30=230-4x`.

Now, the work done is `W=int_0^(50)(230-4x)dx=(230x-2x^2)|_0^50=130*50-2*50^2=1500\ ft-lb`.

Now let's see on a slightly harder example, where we need to understand how the work formula was derived.

**Example 4**. A tank has the shape of an inverted circular cone with height 10 m and base radius 5 m. It is filled with water to a height of 9 m. Find the work required to empty the tank by pumping all of the water to the top of the tank. (The density of water is 1000 `(kg)/m^3`).

First of all we need to make convention about `x`. Let `x` measure depths of tank. So, `x=0` is top of the tank and `x=10` is bottom of the tank. In this convention we see that water is in interval `[1,10]`.

Let's divide the interval `[1,10]` into `n` subintervals with endpoints `x_0,x_1,...,x_n` and choose `x_i^(**)` in the i-th subinterval. This divides the water into `n` layers. The i-th layer (purple area) is approximated by a circular cylinder with radius `r_i` and height `Delta x`. We can compute `r_i` from similar triangles: `(r_i)/(10-x_i^(**))=5/10` or `r_i=1/2(10-x_i^(**))`.

Thus, an approximation to the volume of the i-th layer of water is `V_i~~pi r_i^2 Deltax=pi/4(10-x_i^(**))^2Delta x`.

And so its mass is `m_i=text(density)xxtext(volume)~~1000pi/4(10-x_i^(**))^2Delta x=250pi(10-x_i^(**))^2Delta x`.

The force required to raise this layer must overcome the force of gravity, that is `F_i=m_ig`, where `g=9.8 m/s^2`, so `F_i=m_ig~~250pi(10-x_i^(**))^2Delta x*9.8=2450pi(10-x_i^(**))^2Delta x`.

Each particle in the i-th layer must travel a distance of approximately `x_i^(**)`. The work done to raise this layer to the top is approximately the product of the force and the distance `x_i^(**)`: `W_i~~F_ix_i^(**)=2450pix_i^(**)(10-x_i^(**))^2Delta x`.

To find the approximate total work done in emptying the entire tank, we add the contributions of each of the layers: `W~~sum_(i=1)^n2450pix_i^**(10-x_i^**)^2Delta x`.

To find actual work we need to take the limit as `n->oo`: `W=lim_(n->oo)sum_(i=1)^n2450pix_i^**(10-x_i^**)^2Delta x`. We recognize in this limit definite integral, so

`W=int_1^(10)2450pix(10-x)^2dx=2450pi int_1^(10)(100x-20x^2+x^3)dx=`

`=2450pi(50x^2-20/3 x^3+1/4x^4)|_1^(10)=2450pi*3159/4~~6.079xx10^6\ J`.