Integrating a vector function · Mathematics Class 11–12 | StemPy Lab
Course 14.3·Lesson 2 of 3
Integrating a vector function
To integrate a vector function, integrate each component. A constant vector appears, which an initial condition fixes. From the acceleration you find the velocity and then the position. The integral of the velocity is the displacement. The integral of the speed is the distance travelled, which is also the arc length of the path.
about 30 min1 simulation2 practice questions
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
integrate a vector function and use initial conditions to find the constant vector;
find velocity and position from the acceleration;
find displacement, distance travelled and the length of a path.
Integrating component by component
An antiderivative of v(t)=⟨vx(t),vy(t)⟩ is found one component at a time:
∫v(t)dt=⟨∫vx(t)dt,∫vy(t)dt⟩+C.
The constant of integration is now a constant vectorC=⟨C1,C2⟩, one constant for each component. A definite integral is also found by components:
∫abv(t)dt=⟨∫abvxdt,∫abvydt⟩.
The fundamental theorem holds for vectors: ∫abr′(t)dt=r(b)−r(a). So the integral of the velocity is the displacement.
From acceleration to position
Example. A particle has the acceleration a(t)=⟨2,−6t⟩m/s2. At t=0 its velocity is ⟨1,5⟩m/s and its position is ⟨0,2⟩m. Find v and r.
Velocity.v(t)=⟨2t+C1,−3t2+C2⟩. At t=0 it is ⟨C1,C2⟩=⟨1,5⟩. So v(t)=⟨2t+1,5−3t2⟩.
Position.r(t)=⟨t2+t+D1,5t−t3+D2⟩. At t=0 it is ⟨D1,D2⟩=⟨0,2⟩. So r(t)=⟨t2+t,2+5t−t3⟩.
At t=2s.v(2)=⟨5,−7⟩m/s and r(2)=⟨6,4⟩m. Check: 2+10−8=4.
The two constants, one for the velocity and one for the position, need two pieces of information. You must be given the initial velocity and the initial position.
Displacement, distance and the length of a path
For a particle moving from t=a to t=b:
the displacement is r(b)−r(a)=∫abvdt, a vector;
the distance travelled is ∫ab∣v∣dt, a number that never decreases;
the length of the path, or arc length, is the same integral, L=∫ab∣r′(t)∣dt=∫abx′2+y′2dt.
The average velocity is the displacement divided by the time. The average speed is the distance divided by the time. They are different, in size as well as in kind.
Example. A particle has v(t)=⟨2t,t2−1⟩m/s and r(0)=⟨0,0⟩.
The position.r(t)=⟨t2,3t3−t⟩.
The speed.∣v∣2=4t2+(t2−1)2=t4+2t2+1=(t2+1)2, so the speed is t2+1.
Distance for 0≤t≤3s.∫03(t2+1)dt=9+3=12m.
Displacement.r(3)−r(0)=⟨9,6⟩m. Its size is 117≈10.82m.
Averages. The average speed is 312=4m/s. The average velocity is 3⟨9,6⟩=⟨3,2⟩m/s, whose size is 13≈3.61m/s, less than 4.
The distance, 12 m, is larger than the size of the displacement, 10.82 m, because the path is curved.
The path of the particle r(t) = (t squared, t cubed over 3 minus t) for t from 0 to 3, a curve that dips a little below the x-axis near t = 1 and then climbs steeply. A green arrow goes straight from the starting point at the origin to the end point (9, 6), marked displacement, size 10.82 metres. The curve is longer than the arrow, with the label distance travelled 12 metres.
When the speed does not simplify
Most speeds do not simplify to a nice expression. Then the integral of the speed has to be done by a computer. The lesson on parametric curves gave a method that adds the lengths of many short chords. The program below does the same with the velocity vector, and finds the distance and the displacement.
Practise with new numbers
Try it in Python
The first part of the program finds the velocity and the position from the acceleration of the first example, by adding small steps. The second part finds the distance and the displacement of the second example.
Common mistakes
Forgetting the constant vector. Each integration adds one constant for each component.
Using the initial position for the velocity constant. The first constant comes from v(0), the second from r(0).
Calling the integral of the velocity the distance. It is the displacement. Distance needs the speed.
Integrating the speed with the wrong sign. The speed is never negative.
Remember these
∫vdt is found component by component, with a constant vector.
Displacement =∫abvdt. Distance =∫ab∣v∣dt.
The length of a path is ∫∣r′∣dt.
Average velocity is a vector, the displacement over time. Average speed is the distance over time.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find r(t) if r′(t)=⟨2t,3t2⟩ and r(0)=⟨1,−1⟩.
A ball has a(t)=⟨0,−9.8⟩m/s2, v(0)=⟨6,8⟩m/s and r(0)=⟨0,0⟩m. Where is it at t=1s?
A point has the constant velocity ⟨3,4⟩m/s. Find the distance and the size of the displacement in 5s.
A particle has v(t)=⟨−sint,cost⟩ for 0≤t≤π. Find the distance travelled and the size of the displacement.
Evaluate ∫01⟨et,2t⟩dt.
References
OpenStax, Calculus Volume 3, Chapter 3, section 3.2 on the calculus of vector-valued functions.