BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Problem Set 6: a triangle wave on a spring, steps and delta functions, impulse and step responses, and convolution

Four problems on periodic inputs, jumps and kicks. You drive an undamped spring with a triangle wave and find when a periodic solution exists, when it is the only one and what happens near resonance; write functions with jumps in terms of the unit step and find their generalized derivatives with delta functions; find the unit impulse response and the unit step response of a second-order operator, and the operators that have three given impulse responses; and compute convolutions, checking that they solve their differential equations with rest initial conditions.

You need this first

Full reading path (36 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
  26. Inhomogeneous equations, particular solutions and stability (18.03)
  27. Particular solutions: the exponential input theorem (18.03)
  28. Resonance and beats (18.03)
  29. Introduction to Fourier series (18.03)
  30. Fourier series: even and odd functions, convergence and other periods (18.03)
  31. Particular solutions via Fourier series, and how we hear (18.03)
  32. Introduction to the Laplace transform (18.03)
  33. Laplace transforms of derivatives and solving initial value problems (18.03)
  34. The convolution formula (18.03)
  35. The unit step and discontinuous inputs (18.03)
  36. Impulse inputs, the delta function and the weight function (18.03)
On this page · 6 sections
  1. How to answer
  2. Problem 22
  3. Problem 23
  4. Problem 24
  5. Problem 25
  6. More practice: MIT's own Part I exercises

This set practises four lessons: particular solutions from Fourier series, the convolution formula, the unit step and discontinuous inputs, and impulse inputs, the delta function and the weight function. It follows MIT's Problem Set 6, in our own words.

MIT's sheet has two parts. Part II holds MIT's own four problems (80 points), and MIT's solutions are on OpenCourseWare. All four are written out below, with hints and solutions in our own words, following the method of MIT's solutions and checked again independently. Part I (16 points at MIT) is short; the last section of this page lists it.

MIT labels each problem with the day of its lecture in the Spring 2010 calendar, whose numbers differ from the lecture numbers of this site. MIT's Problem 22 belongs to Lecture 17 here, Problem 23 to Lectures 22 and 23, Problem 24 to Lecture 23, and Problem 25 to Lectures 21 and 23.

One difference in method. The lessons of this site follow Prof. Mattuck's lectures, which reach the unit step, the delta function, the weight function and convolution through the Laplace transform. MIT's Problem Set 6 was written for a term in which these were treated directly in the time domain, before the Laplace transform. The solutions below follow MIT's time-domain method, and use the Laplace transform of the lessons as a second route in the checks. In MIT's words the weight function w(t)w(t) of the lessons is the unit impulse response, and the response to the unit step is the unit step response v(t)v(t).

How to answer#

Work each problem on paper first. Then type your result in the answer box and press Check. A formula box takes plain typing, for example exp(-t)*sin(t)/2, and accepts every correct way of writing the answer. Type w0 for ω0\omega_0, omega for ω\omega, pi for π\pi, k for kk, t for tt, D for the operator DD and exp(-t) for e−te^{-t}. A number box wants a decimal number, and its question says how exact your value must be: keep all the digits your calculator shows while you work. The points of each part are MIT's, taken from its solutions; how a part's points are shared between its answer boxes is ours. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Parts that ask you to sketch, to show or to verify something have no answer box, or a box for only a piece of them: compare your work with the solution and mark it yourself. Your score is kept in this browser only.

Problem 22#

Problem

A triangle wave drives a spring

20 points

Let g(t)g(t) be the function of period 2π2\pi with g(t)=tg(t) = t for −π2≤t≤π2-\frac{\pi}{2} \le t \le \frac{\pi}{2} and g(t)=π−tg(t) = \pi - t for π2≤t≤3π2\frac{\pi}{2} \le t \le \frac{3\pi}{2}: a triangle wave.

The triangle wave g(t) over two periods, computed from asin(sin t), which is t between −π/2 and π/2 and π − t between π/2 and 3π/2.

Its Fourier series was found in Problem 21(f) of MIT's Problem Set 5, and MIT's solution to this problem quotes it:

Fourier series of the triangle wave
g(t)=4π(sin⁡t−132sin⁡3t+152sin⁡5t−⋯ )g(t) = \frac{4}{\pi}\left(\sin t - \frac{1}{3^2}\sin 3t + \frac{1}{5^2}\sin 5t - \cdots\right)
In words

g(t) equals 4 over pi, times the quantity sine t minus 1 over 3 squared, times sine 3 t plus 1 over 5 squared, times sine 5 t minus and so on

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 22(a), p. 1

This wave is the input of an undamped spring with natural frequency ω0>0\omega_0 > 0:

The driven spring
x¨+ω02 x=g(t)\ddot x + \omega_0^2\,x = g(t)
In words

x double dot plus omega nought squared x equals g(t)

Source: MIT 18.03 Problem Set 6, Part II, Problem 22(a), p. 1

(MIT writes the natural frequency as ωn\omega_n. This page writes ω0\omega_0, as the lesson does, where ωn\omega_n is the nnth frequency of the input.)

(a)4 points

Find a periodic solution xpx_p of the equation, as a series (if there is one).

Hint

The equation is linear, so you may answer the input one term at a time and add the answers.

Hint

For a single term Asin⁡ωtA\sin\omega t on the right, try x=csin⁡ωtx = c\sin\omega t and find cc. When does this fail?

Solution

The idea. By superposition, the response to a sum of sines is the sum of the responses to each sine, and each of those is a sine of the same frequency.

One term

Put x=csin⁡ωtx = c\sin\omega t into x¨+ω02x=Asin⁡ωt\ddot x + \omega_0^2x = A\sin\omega t. The left side is c(ω02−ω2)sin⁡ωtc(\omega_0^2 - \omega^2)\sin\omega t, so c=A/(ω02−ω2)c = A/(\omega_0^2 - \omega^2), as long as ω≠ω0\omega \ne \omega_0:

Response to one sine
x=Asin⁡ωtω02−ω2solvesx¨+ω02 x=Asin⁡ωtx = \frac{A\sin\omega t}{\omega_0^2 - \omega^2} \quad\text{solves}\quad \ddot x + \omega_0^2\,x = A\sin\omega t
In words

x equals capital A sine omega t over the quantity omega nought squared minus omega squared, solves x double dot plus omega nought squared x equals capital A sine omega t

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 22(a), p. 1

Add the terms

The input has the frequencies 1,3,5,…1, 3, 5, \dots Use the one-term result for each, with the coefficients of the series of gg:

A periodic solution
xp=4π(sin⁡tω02−12−132 sin⁡3tω02−32+152 sin⁡5tω02−52−⋯ )x_p = \frac{4}{\pi}\left(\frac{\sin t}{\omega_0^2 - 1^2} - \frac{1}{3^2}\,\frac{\sin 3t}{\omega_0^2 - 3^2} + \frac{1}{5^2}\,\frac{\sin 5t}{\omega_0^2 - 5^2} - \cdots\right)
In words

x sub p equals 4 over pi, times the quantity sine t over the quantity omega nought squared minus 1 squared, minus 1 over 3 squared, times sine 3 t over the quantity omega nought squared minus 3 squared, plus 1 over 5 squared, times sine 5 t over the quantity omega nought squared minus 5 squared, minus and so on

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 22(a), p. 1

This works as long as ω0\omega_0 is not an odd integer, so that no denominator is zero. Every term has period 2π2\pi, so xpx_p is periodic with period 2π2\pi.

Check the result

For ω0=2\omega_0 = 2 the first two coefficients are 43π=0.4244\dfrac{4}{3\pi} = 0.4244 and −49π(4−9)=0.0283-\dfrac{4}{9\pi(4 - 9)} = 0.0283: the second one is positive because both the input coefficient and the denominator are negative. A limit: for a very stiff spring (large ω0\omega_0) every denominator is close to ω02\omega_0^2, so xp≈g(t)/ω02x_p \approx g(t)/\omega_0^2, the solution of ω02x=g\omega_0^2x = g in which the spring follows the input with no delay. That is what a stiff spring does.

(b)4 points

For which positive values of ω0\omega_0 is there no periodic solution?

Hint

Look at the denominators of your series. For which ω0\omega_0 does one of them vanish?

Hint

When a denominator vanishes the spring is driven exactly at its natural frequency. What does the lesson on resonance say about the solutions then?

Solution

The idea. A periodic solution fails to exist exactly when the input contains a sine at the natural frequency of the spring: that term is in resonance.

Which frequencies the input has

The series of gg has a term sin⁡mt\sin mt with a coefficient different from zero for every odd mm, and no other terms. So the spring is in resonance with one term of the input when ω0=1,3,5,…\omega_0 = 1, 3, 5, \dots An even integer is harmless: gg has no term of even frequency.

Why resonance leaves no periodic solution

MIT's solution states the answer. The reason, in our words: for ω0=m\omega_0 = m, the response to the term Asin⁡mtA\sin mt is no longer a sine but

The resonant response
x=−A2m tcos⁡mtsolvesx¨+m2x=Asin⁡mtx = -\frac{A}{2m}\,t\cos mt \quad\text{solves}\quad \ddot x + m^2x = A\sin mt
In words

x equals minus capital A over the quantity 2 m, times t cos m t solves x double dot plus m squared x equals capital A sine m t

Source: MIT 18.03 Problem Set 6, Part II, Problem 22(b) (our own solution)

whose swings grow without bound. All the other terms of the input still give bounded sines, and the solutions of the homogeneous equation are bounded too. So every solution contains the growing term and none is periodic.

Check the result

Differentiate x=−A2mtcos⁡mtx = -\frac{A}{2m}t\cos mt twice: x¨=Asin⁡mt+Am2tcos⁡mt\ddot x = A\sin mt + \frac{Am}{2}t\cos mt. Adding m2x=−Am2tcos⁡mtm^2x = -\frac{Am}{2}t\cos mt leaves Asin⁡mtA\sin mt, as it should. It is the companion, for a sine input, of the resonant solution tsin⁡ω0t2ω0\dfrac{t\sin\omega_0t}{2\omega_0} for a cosine input in the lesson on resonance.

(c)4 points

Write ωr\omega_r for the smallest value you found in part (b). What does the periodic solution look like, approximately, when ω0\omega_0 is just below ωr\omega_r? And when ω0\omega_0 is just above ωr\omega_r?

Hint

Which term of the series for xpx_p has a very small denominator when ω0\omega_0 is close to ωr\omega_r?

Hint

Look at the sign of that denominator on each side of ωr\omega_r, and compare the sign of the term with the sign of sin⁡t\sin t in the input.

Solution

The idea. Near a resonance one term of the series has a very small denominator and swamps all the others.

The dominant term

The smallest value is ωr=1\omega_r = 1. For ω0\omega_0 close to 11 the first term of xpx_p dominates:

Near the first resonance
xp≈4π sin⁡tω02−1x_p \approx \frac{4}{\pi}\,\frac{\sin t}{\omega_0^2 - 1}
In words

x sub p is approximately 4 over pi, times sine t over the quantity omega nought squared minus 1

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 22(c), p. 1

Its amplitude is large, because ω02−1\omega_0^2 - 1 is small.

Below and above

For ω0\omega_0 just below 11 the denominator is negative: xpx_p is close to a large negative multiple of sin⁡t\sin t. The input's own largest term is a positive multiple of sin⁡t\sin t, so the spring moves against the input: it is in antiphase. For ω0\omega_0 just above 11 the denominator is positive and the spring moves with the input, in phase, again with a large amplitude.

The periodic solution for natural frequency 0.9 (solid) and 1.1 (dashed), computed from the first three terms of the series, with the input g. Below resonance the spring moves against the input, above resonance with it.

Check the result

With ω0=0.9\omega_0 = 0.9 the coefficient of sin⁡t\sin t is 4π(0.81−1)=−6.70\dfrac{4}{\pi(0.81 - 1)} = -6.70, and with ω0=1.1\omega_0 = 1.1 it is 4π(1.21−1)=6.06\dfrac{4}{\pi(1.21 - 1)} = 6.06. The next term is tiny beside them: for ω0=0.9\omega_0 = 0.9 the coefficient of sin⁡3t\sin 3t is 0.01730.0173.

(d)4 points

For which values of ω0\omega_0 is there more than one periodic solution? (MIT's solution calls this a tricky question.)

Hint

Every solution is xpx_p plus a solution acos⁡ω0t+bsin⁡ω0ta\cos\omega_0t + b\sin\omega_0t of the homogeneous equation. The first has period 2π2\pi. What is the period of the second?

Hint

A sum of two periodic functions is periodic when some whole number of periods of the one equals some whole number of periods of the other.

Solution

The idea. The general solution is xpx_p plus the free oscillation of the spring. It is periodic when the two periods, 2π2\pi and 2π/ω02\pi/\omega_0, fit into a common period.

The general solution

When ω0\omega_0 is not an odd integer, xpx_p of part (a) exists and has period 2π2\pi. The general solution is

General solution
x=xp+acos⁡ω0t+bsin⁡ω0tx = x_p + a\cos\omega_0t + b\sin\omega_0t
In words

x equals x sub p plus a cos omega nought t plus b sine omega nought t

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 22(d), p. 1

and the added part has period 2π/ω02\pi/\omega_0.

A common period

The sum repeats after a time TT that is both a whole number mm of periods 2π2\pi and a whole number nn of periods 2π/ω02\pi/\omega_0: 2πm=2πn/ω02\pi m = 2\pi n/\omega_0, so ω0=n/m\omega_0 = n/m, a rational number. Then every choice of aa and bb gives a periodic solution, with period 2πm2\pi m: there are infinitely many. So the answer is: ω0\omega_0 rational, but not an odd integer.

Irrational values (our addition)

MIT's solution stops there. If ω0\omega_0 is irrational, xpx_p is the only periodic solution. Suppose x=xp+hx = x_p + h repeats after a time TT, where hh is a free oscillation that is not zero. Then xp(t+T)−xp(t)x_p(t + T) - x_p(t), which is made of sines and cosines of odd integer frequencies, would cancel h(t+T)−h(t)h(t + T) - h(t), which has the frequency ω0\omega_0. Sinusoids of different frequencies cannot cancel, so both differences are zero: TT is a multiple of 2π2\pi (because xpx_p contains sin⁡t\sin t) and a multiple of 2π/ω02\pi/\omega_0, which makes ω0\omega_0 rational after all.

Check the result

Take ω0=12\omega_0 = \frac{1}{2}: the free oscillation cos⁡t2\cos\frac{t}{2} has period 4π4\pi, which is two periods of xpx_p, so xp+acos⁡t2+bsin⁡t2x_p + a\cos\frac{t}{2} + b\sin\frac{t}{2} repeats after 4π4\pi for every aa and bb.

(e)4 points

For the values of ω0\omega_0 found in part (d), are all solutions of x¨+ω02x=g(t)\ddot x + \omega_0^2x = g(t) periodic?

Hint

In part (d), was there any condition on the constants aa and bb?

Solution

The idea. The argument of part (d) never used the values of aa and bb.

Every solution

For ω0=n/m\omega_0 = n/m (not an odd integer) every solution xp+acos⁡ω0t+bsin⁡ω0tx_p + a\cos\omega_0t + b\sin\omega_0t repeats after the time 2πm2\pi m. So yes: all solutions are periodic. When ω0\omega_0 is an even integer the free oscillation itself repeats after 2π2\pi, so all solutions have period 2π2\pi, the period of the input.

Check the result

For ω0=32\omega_0 = \frac{3}{2} the free oscillation has period 4π3\frac{4\pi}{3} and xpx_p has period 2π2\pi. The shortest time that is a whole number of both is 4π=12.574\pi = 12.57: three free periods and two periods of the input. (This number is our addition; MIT asks only the yes-or-no question.)

After: MIT 18.03 Problem Set 6, Part II, Problem 22

Problem 23#

Problem

Steps, jumps and delta functions

12 points

Three tools are needed. The unit step u(t−a)u(t - a) is 00 before t=at = a and 11 after it (the lesson on the unit step). The delta function δ(t−a)\delta(t - a) is a unit impulse at t=at = a, and formally u′=δu' = \delta (the lesson on the delta function). The generalized derivative of a function with jumps, which MIT's problem asks for, is its ordinary derivative wherever the function is smooth, plus a delta function for every jump: a jump of size cc at t=at = a, counted positive when the function jumps up, adds c δ(t−a)c\,\delta(t - a).

For each of the four functions below, (i) draw its graph, (ii) draw the graph of its generalized derivative, showing each delta function as a spike with its size written beside it, and (iii) write a formula for f(t)f(t) and one for f′(t)f'(t), using steps u(t−a)u(t - a), delta functions δ(t−a)\delta(t - a) and ordinary functions. A few single values of tt may stay undefined.

(a)3 points

f(t)=0f(t) = 0 for t<0t < 0 and f(t)=−tf(t) = -t for t>0t > 0.

Hint

Multiplying a function by u(t)u(t) switches it on at t=0t = 0. Does this ff jump anywhere?

Solution

The idea. Switch −t-t on with a unit step. The graph has a corner at t=0t = 0, not a jump, so no delta function appears.

The formulas

A ramp downwards
f(t)=−u(t) t,f′(t)=−u(t)f(t) = -u(t)\,t, \qquad f'(t) = -u(t)
In words

f(t) equals minus u(t) t, f prime (t) equals minus u(t)

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 23(a), p. 1

The graph of ff lies on the axis up to t=0t = 0 and then falls with slope −1-1. The graph of f′f' is 00 for t<0t < 0 and −1-1 for t>0t > 0: a step downwards, undefined at t=0t = 0 itself.

Check the result

ff is continuous at 00: both sides give 00. So the derivative has no delta function, and its integral from any negative time to t>0t > 0 is −t=f(t)-t = f(t), as it must be.

(b)3 points

f(t)=0f(t) = 0 for t<0t < 0 and f(t)=1−tf(t) = 1 - t for t>0t > 0.

Hint

Compare the values just before and just after t=0t = 0.

Solution

The idea. Now the function jumps up by 11 at t=0t = 0, and a jump up by 11 gives +δ(t)+\delta(t).

The formulas

A jump, then a ramp
f(t)=u(t) (1−t),f′(t)=−u(t)+δ(t)f(t) = u(t)\,(1 - t), \qquad f'(t) = -u(t) + \delta(t)
In words

f(t) equals u(t) the quantity 1 minus t, f prime (t) equals minus u(t) plus delta (t)

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 23(b), p. 1
The function of part (b), computed from u(t)(1−t)u(t)(1 - t): zero for negative tt, a jump up to 1 at t=0t = 0, then a fall with slope −1.

The graph of f′f' is the same downward step as in part (a), with one upward spike of size 11 at t=0t = 0.

Check the result

By the product rule, ddt(u(t)(1−t))=δ(t)(1−t)−u(t)\frac{d}{dt}\bigl(u(t)(1 - t)\bigr) = \delta(t)(1 - t) - u(t), and a delta function at 00 only feels the value of its factor at 00, which is 11. That gives δ(t)−u(t)\delta(t) - u(t) again.

(c)3 points

f(t)=0f(t) = 0 for t<0t < 0, f(t)=2t−1f(t) = 2t - 1 for 0<t<10 < t < 1, and f(t)=0f(t) = 0 for t>1t > 1.

Hint

The difference u(t)−u(t−1)u(t) - u(t - 1) is 11 between 00 and 11 and 00 elsewhere: a window.

Hint

There are two jumps. Find the size and the direction of each from the values of 2t−12t - 1 at the two ends of the window.

Solution

The idea. Cut the line 2t−12t - 1 out with a window. The function jumps at both ends of the window.

The formula for f

A windowed line
f(t)=(u(t)−u(t−1))(2t−1)f(t) = \bigl(u(t) - u(t - 1)\bigr)(2t - 1)
In words

f(t) equals the quantity u(t) minus u of the quantity t minus 1, the quantity 2 t minus 1

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 23(c), p. 1
The function of part (c), computed from (u(t)−u(t−1))(2t−1)(u(t) - u(t - 1))(2t - 1): a jump down to −1 at t=0t = 0, a rise with slope 2 to the value 1, and a jump down to 0 at t=1t = 1.

The derivative

Inside the window the slope is 22, outside it is 00. At t=0t = 0 the function jumps from 00 to −1-1, down by 11. At t=1t = 1 it jumps from 11 to 00, down by 11 again. Each jump down by 11 gives a delta function with a minus sign:

Its generalized derivative
f′(t)=2(u(t)−u(t−1))−δ(t)−δ(t−1)f'(t) = 2\bigl(u(t) - u(t - 1)\bigr) - \delta(t) - \delta(t - 1)
In words

f prime (t) equals 2 the quantity u(t) minus u of the quantity t minus 1, all minus delta (t) minus delta the quantity t minus 1

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 23(c), p. 1

The graph of f′f' is a box of height 22 over 0<t<10 < t < 1 with a downward spike of size 11 at each end.

Check the result

ff is zero far to the left and far to the right, so the integral of f′f' over all tt must be 00. It is: the box contributes 2×1=22 \times 1 = 2 and the two spikes contribute −1-1 each.

(d)3 points

f(t)=0f(t) = 0 for t<0t < 0, and for t>0t > 0 the function is tt minus the largest integer that is not larger than tt: f(t)=t−nf(t) = t - n for n<t<n+1n < t < n + 1, with n=0,1,2,…n = 0, 1, 2, \dots (MIT writes this with floor brackets around tt. It is a sawtooth: the part of tt after the decimal point.)

Hint

Start from the ramp u(t) tu(t)\,t. What must be taken away once tt passes 11, and again when it passes 22?

Hint

Taking away 11 from the time t=nt = n onwards is done by subtracting u(t−n)u(t - n).

Solution

The idea. The sawtooth is a ramp that is pulled down by 11 at every positive integer.

The formula for f

MIT's solution first writes ff as a sum of windowed pieces, (u(t)−u(t−1)) t+(u(t−1)−u(t−2))(t−1)+⋯(u(t) - u(t - 1))\,t + (u(t - 1) - u(t - 2))(t - 1) + \cdots, and then collects the terms. (In MIT's printed solution the third piece has the window u(t−1)−u(t−2)u(t - 1) - u(t - 2) again, a misprint for u(t−2)−u(t−3)u(t - 2) - u(t - 3).) The result is

The sawtooth
f(t)=u(t) t−u(t−1)−u(t−2)−u(t−3)−⋯f(t) = u(t)\,t - u(t - 1) - u(t - 2) - u(t - 3) - \cdots
In words

f(t) equals u(t) t minus u of the quantity t minus 1, minus u of the quantity t minus 2, minus u of the quantity t minus 3, minus and so on

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 23(d), p. 1
The sawtooth of part (d), computed from t−floor(t)t - \text{floor}(t) for positive tt: it rises with slope 1 and jumps down by 1 at t=1,2,3t = 1, 2, 3 and so on.

The derivative (our own; MIT's solution gives only f)

The slope is 11 for all t>0t > 0 between the jumps, and at each positive integer nn the function jumps down by 11. There is no jump at t=0t = 0, where both sides are 00:

Its generalized derivative
f′(t)=u(t)−δ(t−1)−δ(t−2)−δ(t−3)−⋯f'(t) = u(t) - \delta(t - 1) - \delta(t - 2) - \delta(t - 3) - \cdots
In words

f prime (t) equals u(t) minus delta the quantity t minus 1, all minus delta the quantity t minus 2, all minus delta the quantity t minus 3, all minus and so on

Source: MIT 18.03 Problem Set 6, Part II, Problem 23(d) (our own solution)

The graph of f′f' is the unit step with a downward spike of size 11 at every positive integer.

Check the result

Test the formula for ff at t=2.3t = 2.3: u(t) t=2.3u(t)\,t = 2.3, and the steps at 11 and 22 are switched on, so f=2.3−1−1=0.3f = 2.3 - 1 - 1 = 0.3, the part after the decimal point. The same answer comes from integrating f′f' from a negative time to 2.32.3: the step gives 2.32.3 and the two spikes passed on the way give −1-1 each.

After: MIT 18.03 Problem Set 6, Part II, Problem 23

Problem 24#

Problem

Impulse response and step response

24 points

An operator such as 2D2+4D+4I2D^2 + 4D + 4I stands for the system 2x¨+4x˙+4x=q(t)2\ddot x + 4\dot x + 4x = q(t) with input qq: DD means differentiation and II leaves a function as it is. MIT calls it an LTI operator: linear, and time-invariant because its coefficients are constant. Its unit impulse response w(t)w(t) is the solution with input δ(t)\delta(t) that is zero for t<0t < 0 (rest initial conditions): the weight function of the lesson. Its unit step response v(t)v(t) is the solution with input u(t)u(t) that is zero for t<0t < 0.

(a)4 points

Find the unit impulse response w(t)w(t) of the operator 2D2+4D+4I2D^2 + 4D + 4I.

Hint

For t>0t > 0 the input is zero, so ww solves the homogeneous equation 2x¨+4x˙+4x=02\ddot x + 4\dot x + 4x = 0. All that the kick does is set the values at t=0+t = 0^+, just after it.

Hint

A unit kick on a second-order system leaves the position where it was and makes the velocity jump by 11 divided by the coefficient of x¨\ddot x. Or take the route of the lesson: ww is the inverse Laplace transform of 1/(2s2+4s+4)1/(2s^2 + 4s + 4).

Solution

The idea. After the kick the system is free, so ww is a solution of the homogeneous equation for t>0t > 0, picked out by the two values the kick leaves behind at t=0+t = 0^+.

The free solutions

The characteristic polynomial 2s2+4s+4=2(s2+2s+2)2s^2 + 4s + 4 = 2(s^2 + 2s + 2) has the roots −1±i-1 \pm i, so the homogeneous equation has the solutions

General homogeneous solution
x=e−t (acos⁡t+bsin⁡t)x = e^{-t}\,(a\cos t + b\sin t)
In words

x equals e to the power minus t the quantity a cos t plus b sine t

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(a), p. 1

The values just after the kick

What the unit kick leaves behind
w(0)=0,w˙(0+)=12w(0) = 0, \qquad \dot w(0^+) = \frac{1}{2}
In words

w(0) equals 0, w dot (0 plus ) equals one half

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(a), p. 1

Why: integrate 2w¨+4w˙+4w=δ(t)2\ddot w + 4\dot w + 4w = \delta(t) over a very short time around 00. The right side gives 11. On the left only 2w¨2\ddot w can give something that does not shrink with the interval, namely 22 times the jump of w˙\dot w. So w˙\dot w jumps from 00 to 12\frac{1}{2}, and ww itself stays continuous.

Fit the constants

w(0)=0w(0) = 0 gives a=0a = 0. Then w=be−tsin⁡tw = be^{-t}\sin t has the slope bb at 00, so b=12b = \frac{1}{2}:

Unit impulse response
w(t)=12 u(t) e−tsin⁡tw(t) = \frac{1}{2}\,u(t)\,e^{-t}\sin t
In words

w(t) equals one half u(t) e to the power minus t sine t

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(a), p. 1

Check the result

The route of the lesson gives the same: 12s2+4s+4=12⋅1(s+1)2+1\dfrac{1}{2s^2 + 4s + 4} = \dfrac{1}{2}\cdot\dfrac{1}{(s + 1)^2 + 1}, and the inverse Laplace transform of 1(s+1)2+1\dfrac{1}{(s + 1)^2 + 1} is e−tsin⁡te^{-t}\sin t.

(b)4 points

Find the unit step response v(t)v(t) of the same operator.

Hint

For t>0t > 0 the input is the constant 11. Find a constant solution first, then add the general solution of the homogeneous equation.

Hint

A step is not a kick: both the position and the velocity start at 00.

Solution

The idea. For t>0t > 0 the equation is 2x¨+4x˙+4x=12\ddot x + 4\dot x + 4x = 1: a constant particular solution plus a free solution, fitted to rest initial conditions.

General solution for t>0t > 0

The constant xp=14x_p = \frac{1}{4} solves the equation, since then 4x=14x = 1. So

Solutions with input 1
x=14+e−t (acos⁡t+bsin⁡t),x˙=e−t((−a+b)cos⁡t+(−a−b)sin⁡t)x = \frac{1}{4} + e^{-t}\,(a\cos t + b\sin t), \qquad \dot x = e^{-t}\bigl((-a + b)\cos t + (-a - b)\sin t\bigr)
In words

x equals one quarter plus e to the power minus t the quantity a cos t plus b sine t, x dot equals e to the power minus t the quantity the quantity minus a plus b, cos t plus the quantity minus a minus b, sine t

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(b), p. 1

Rest initial conditions

x(0)=0x(0) = 0 gives 14+a=0\frac{1}{4} + a = 0, so a=−14a = -\frac{1}{4}. Then x˙(0)=−a+b=0\dot x(0) = -a + b = 0 gives b=−14b = -\frac{1}{4} too:

Unit step response
v(t)=14 u(t)(1−e−t (cos⁡t+sin⁡t))v(t) = \frac{1}{4}\,u(t)\Bigl(1 - e^{-t}\,(\cos t + \sin t)\Bigr)
In words

v(t) equals one quarter u(t) the quantity 1 minus e to the power minus t the quantity cos t plus sine t

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(b), p. 1

Check the result

At t=0t = 0 the bracket is 1−1=01 - 1 = 0. For large tt the response settles at 14\frac{1}{4}, the constant solution. A number: v(1)=14(1−e−1(cos⁡1+sin⁡1))=0.1229v(1) = \frac{1}{4}\bigl(1 - e^{-1}(\cos 1 + \sin 1)\bigr) = 0.1229.

(c)4 points

Verify that v˙=w\dot v = w. (It should be so, because the inputs are related in the same way: u˙=δ\dot u = \delta.)

Hint

Differentiate your vv for t>0t > 0 with the product rule. Then think about t=0t = 0: does vv jump there?

Solution

The idea. Differentiate the formula for vv and compare with ww.

Differentiate

Use the formula for x˙\dot x in part (b) with a=b=−14a = b = -\frac{1}{4}: then −a+b=0-a + b = 0 and −a−b=12-a - b = \frac{1}{2}, so for t>0t > 0

The derivative of the step response
v˙=e−t(0⋅cos⁡t+12sin⁡t)=12 e−tsin⁡t=w\dot v = e^{-t}\Bigl(0\cdot\cos t + \frac{1}{2}\sin t\Bigr) = \frac{1}{2}\,e^{-t}\sin t = w
In words

v dot equals e to the power minus t the quantity 0 times cos t plus one half sine t, equals one half e to the power minus t sine t equals w

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(c), p. 1

Check the result

For t<0t < 0 both vv and ww are zero. At t=0t = 0 the function vv is continuous (it starts at 00), so its generalized derivative has no delta function there, and v˙=w\dot v = w holds for all tt. A number: the slope of vv at t=1t = 1 is 12e−1sin⁡1=0.1548\frac{1}{2}e^{-1}\sin 1 = 0.1548.

(d)12 points

Go the other way. For each of the three functions below, find the operator p(D)p(D), a polynomial in DD with constant coefficients, that has it as its unit impulse response.

  1. 2u(t)2u(t).
  2. u(t) tu(t)\,t.
  3. u(t) t2u(t)\,t^2.

(Type DD as D, for example 3*D^2 + D.)

Hint

Differentiate the function, in the generalized sense, until a delta function appears. How many derivatives does it take? That is the order of the operator.

Hint

p(D)p(D) applied to the function must give exactly δ(t)\delta(t): no steps and no other terms left over. Choose the coefficients to make that happen. On the lesson's route, p(s)p(s) is 11 divided by the Laplace transform of the function.

Solution

The idea. The impulse response of an operator of order nn has its first jump in the derivative of order n−1n - 1. So count the derivatives needed to reach a delta function, then fix the coefficients so that p(D)w=δp(D)w = \delta exactly.

1. A jump in the value

2u(t)2u(t) jumps itself, so the operator is of first order, aD+bIaD + bI:

First order
(aD+bI) (2u)=2a δ(t)+2b u(t)(aD + bI)\,(2u) = 2a\,\delta(t) + 2b\,u(t)
In words

the quantity a capital D plus b capital I, (2 u) equals 2 a delta (t) plus 2 b u(t)

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(d)(i), p. 1

This is δ(t)\delta(t) when b=0b = 0 and a=12a = \frac{1}{2}: p(D)=12Dp(D) = \frac{1}{2}D.

2. A jump in the slope

w=u(t) tw = u(t)\,t has no jump, but its derivative w˙=u(t)\dot w = u(t) has, so the operator is of second order, a2D2+a1D+a0Ia_2D^2 + a_1D + a_0I. Since w¨=δ(t)\ddot w = \delta(t),

Second order
(a2D2+a1D+a0I) (u(t) t)=a2 δ(t)+a1 u(t)+a0 u(t) t(a_2D^2 + a_1D + a_0I)\,\bigl(u(t)\,t\bigr) = a_2\,\delta(t) + a_1\,u(t) + a_0\,u(t)\,t
In words

the quantity a two capital D squared plus a one capital D plus a nought capital I, (u(t) t ) equals a two delta (t) plus a one u(t) plus a nought u(t) t

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(d)(ii), p. 1

which is δ(t)\delta(t) when a2=1a_2 = 1 and a1=a0=0a_1 = a_0 = 0: p(D)=D2p(D) = D^2. (MIT's first argument reaches the same by noting that for t>0t > 0 the function tt must solve the homogeneous equation, a1+a0t=0a_1 + a_0t = 0, and that the slope at 0+0^+ must be 1/a21/a_2.)

3. A jump in the second derivative

w=u(t) t2w = u(t)\,t^2 has w˙=2u(t) t\dot w = 2u(t)\,t, w¨=2u(t)\ddot w = 2u(t) and third derivative 2δ(t)2\delta(t): a third-order operator. As before the lower terms would leave a step, a ramp and a parabola behind, so their coefficients are zero, and a3⋅2δ(t)=δ(t)a_3\cdot 2\delta(t) = \delta(t) gives a3=12a_3 = \frac{1}{2}:

Third order
p(D)=12D3,12D3(u(t) t2)=δ(t)p(D) = \frac{1}{2}D^3, \qquad \frac{1}{2}D^3\bigl(u(t)\,t^2\bigr) = \delta(t)
In words

p( capital D ) equals one half capital D cubed, one half capital D cubed (u(t) t squared ) equals delta (t)

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 24(d)(iii), p. 2

Check the result

On the lesson's route the transfer function 1/p(s)1/p(s) is the Laplace transform of ww. The transforms of 22, tt and t2t^2 are 2s\dfrac{2}{s}, 1s2\dfrac{1}{s^2} and 2s3\dfrac{2}{s^3}, and 11 divided by these gives s2\dfrac{s}{2}, s2s^2 and s32\dfrac{s^3}{2}: the same three polynomials.

After: MIT 18.03 Problem Set 6, Part II, Problem 24

Problem 25#

Problem

Convolution

24 points

The convolution of two functions is

Convolution
w(t)∗q(t)=∫0tw(t−τ) q(τ) dτw(t) * q(t) = \int_0^{t}w(t - \tau)\,q(\tau)\,d\tau
In words

w(t) * q(t) equals the integral from 0 to t of w of the quantity t minus tau, q( tau ) d tau

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(a), p. 2

(the lesson on convolution writes the variable of integration as uu; here uu is the unit step, so this page writes τ\tau, as MIT does). If ww is the unit impulse response of an operator, then w∗qw * q is the solution of the equation with input q(t)q(t) and rest initial conditions. In this problem every function is taken for t>0t > 0.

(a)6 points

The operator D+kID + kI has the unit impulse response w(t)=e−ktw(t) = e^{-kt} for t>0t > 0 (MIT's Part I, Problem 24, whose answer is printed on the sheet). Let q(t)=cos⁡ωtq(t) = \cos\omega t. Compute w(t)∗q(t)w(t) * q(t), and verify that it is the solution of x˙+kx=q(t)\dot x + kx = q(t) with rest initial conditions.

Hint

Write the integral out: ∫0te−k(t−τ)cos⁡ωτ dτ\int_0^t e^{-k(t - \tau)}\cos\omega\tau\,d\tau. The factor e−kte^{-kt} does not depend on τ\tau.

Hint

ekτcos⁡ωτe^{k\tau}\cos\omega\tau is the real part of e(k+iω)τe^{(k + i\omega)\tau}, which is easy to integrate. Or integrate by parts twice.

Solution

The idea. Take e−kte^{-kt} out of the integral and integrate a complex exponential, then take the real part.

The integral

Set up
x(t)=∫0te−k(t−τ)cos⁡ωτ dτ=e−kt Re⁡∫0te(k+iω)τ dτ=e−kt Re⁡ e(k+iω)t−1k+iωx(t) = \int_0^{t}e^{-k(t - \tau)}\cos\omega\tau\,d\tau = e^{-kt}\,\operatorname{Re}\int_0^{t}e^{(k + i\omega)\tau}\,d\tau = e^{-kt}\,\operatorname{Re}\,\frac{e^{(k + i\omega)t} - 1}{k + i\omega}
In words

x(t) equals the integral from 0 to t of e to the power minus k the quantity t minus tau, end of power, cos omega tau d tau equals e to the power minus k t R e the integral from 0 to t of e to the power the quantity k plus i omega, tau, end of power, d tau equals e to the power minus k t R e the quantity e to the power the quantity k plus i omega, t, end of power, minus 1, all over the quantity k plus i omega

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(a), p. 2

The real part

Multiply top and bottom by k−iωk - i\omega, so the denominator becomes k2+ω2k^2 + \omega^2, and take e−kte^{-kt} inside: the numerator is (k−iω)(cos⁡ωt+isin⁡ωt−e−kt)(k - i\omega)\bigl(\cos\omega t + i\sin\omega t - e^{-kt}\bigr), with real part kcos⁡ωt+ωsin⁡ωt−ke−ktk\cos\omega t + \omega\sin\omega t - ke^{-kt}:

The convolution
x(t)=kcos⁡ωt+ωsin⁡ωt−k e−ktk2+ω2x(t) = \frac{k\cos\omega t + \omega\sin\omega t - k\,e^{-kt}}{k^2 + \omega^2}
In words

x(t) equals the quantity k cos omega t plus omega sine omega t minus k e to the power minus k t, all over the quantity k squared plus omega squared

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(a), p. 2

Verify the equation

Differentiate:

Its derivative
x˙=−kωsin⁡ωt+ω2cos⁡ωt+k2e−ktk2+ω2\dot x = \frac{-k\omega\sin\omega t + \omega^2\cos\omega t + k^2e^{-kt}}{k^2 + \omega^2}
In words

x dot equals the quantity minus k omega sine omega t plus omega squared cos omega t plus k squared e to the power minus k t, all over the quantity k squared plus omega squared

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(a), p. 2

In x˙+kx\dot x + kx the sine terms cancel, the exponentials cancel, and the cosines add to (ω2+k2)cos⁡ωtk2+ω2=cos⁡ωt\dfrac{(\omega^2 + k^2)\cos\omega t}{k^2 + \omega^2} = \cos\omega t. And x(0)=k−kk2+ω2=0x(0) = \dfrac{k - k}{k^2 + \omega^2} = 0. So the convolution is the solution that starts from rest: of all the possible transients ce−ktce^{-kt} it has picked the one that makes x(0)=0x(0) = 0.

Check the result

A number, with k=1k = 1, ω=1\omega = 1 and t=πt = \pi: the formula gives 12(−1+0−e−π)=−0.5216\frac{1}{2}(-1 + 0 - e^{-\pi}) = -0.5216, and computing the integral ∫0πe−(π−τ)cos⁡τ dτ\int_0^{\pi}e^{-(\pi - \tau)}\cos\tau\,d\tau numerically gives the same value.

(b)6 points

The operator D2+ω02ID^2 + \omega_0^2I has the unit impulse response w(t)=1ω0sin⁡ω0tw(t) = \dfrac{1}{\omega_0}\sin\omega_0t for t>0t > 0 (again MIT's Part I, Problem 24, where the natural frequency is written ωn\omega_n). Let q(t)=1q(t) = 1. Compute w(t)∗q(t)w(t) * q(t), and verify that it is the solution of x¨+ω02x=q(t)\ddot x + \omega_0^2x = q(t) with rest initial conditions.

Hint

With q=1q = 1 the integral is 1ω0∫0tsin⁡ω0(t−τ) dτ\dfrac{1}{\omega_0}\int_0^t\sin\omega_0(t - \tau)\,d\tau. Mind the sign that the inner −τ-\tau gives when you integrate.

Solution

The idea. Convolving with 11 is integrating: w∗1=∫0tw(t−τ) dτw * 1 = \int_0^t w(t - \tau)\,d\tau.

The integral

The antiderivative of sin⁡ω0(t−τ)\sin\omega_0(t - \tau) with respect to τ\tau is +1ω0cos⁡ω0(t−τ)+\dfrac{1}{\omega_0}\cos\omega_0(t - \tau), because the inner derivative is −ω0-\omega_0:

The convolution
x(t)=1ω0∫0tsin⁡ω0(t−τ) dτ=1ω02[cos⁡ω0(t−τ)]0t=1−cos⁡ω0tω02x(t) = \frac{1}{\omega_0}\int_0^{t}\sin\omega_0(t - \tau)\,d\tau = \frac{1}{\omega_0^2}\Bigl[\cos\omega_0(t - \tau)\Bigr]_0^t = \frac{1 - \cos\omega_0t}{\omega_0^2}
In words

x(t) equals 1 over omega nought, times the integral from 0 to t of sine omega nought the quantity t minus tau, d tau equals 1 over omega nought squared, times ( cos omega nought the quantity t minus tau, ) sub 0 to the power t equals the quantity 1 minus cos omega nought t, all over omega nought squared

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(b), p. 2

Verify the equation

x˙=1ω0sin⁡ω0t\dot x = \dfrac{1}{\omega_0}\sin\omega_0t and x¨=cos⁡ω0t\ddot x = \cos\omega_0t, so x¨+ω02x=cos⁡ω0t+1−cos⁡ω0t=1\ddot x + \omega_0^2x = \cos\omega_0t + 1 - \cos\omega_0t = 1. Also x(0)=0x(0) = 0 and x˙(0)=0\dot x(0) = 0: rest initial conditions. Again the convolution has chosen, among all the solutions 1ω02+acos⁡ω0t+bsin⁡ω0t\dfrac{1}{\omega_0^2} + a\cos\omega_0t + b\sin\omega_0t, the one that starts from rest.

Check the result

x˙\dot x is ww itself, as in Problem 24(c): this xx is the unit step response of the operator, and it agrees with the answer MIT prints for its Part I, Problem 24. It swings between 00 and 2ω02\dfrac{2}{\omega_0^2} around the constant solution 1ω02\dfrac{1}{\omega_0^2}.

(c)6 points

Compute t2∗tt^2 * t and t∗t2t * t^2. Are they equal?

Hint

In t2∗tt^2 * t the first function is taken at t−τt - \tau and the second at τ\tau: the integrand is (t−τ)2 τ(t - \tau)^2\,\tau. Multiply out and integrate each power of τ\tau, treating tt as a constant.

Solution

The idea. Write each convolution as an integral of a polynomial in τ\tau.

The two integrals

t² ∗ t
t2∗t=∫0t(t−τ)2 τ dτ=∫0t(t2τ−2tτ2+τ3) dτ=12t4−23t4+14t4=112t4t^2 * t = \int_0^{t}(t - \tau)^2\,\tau\,d\tau = \int_0^{t}\bigl(t^2\tau - 2t\tau^2 + \tau^3\bigr)\,d\tau = \frac{1}{2}t^4 - \frac{2}{3}t^4 + \frac{1}{4}t^4 = \frac{1}{12}t^4
In words

t squared * t equals the integral from 0 to t of the quantity t minus tau, all squared tau d tau equals the integral from 0 to t of the quantity t squared tau minus 2 t tau squared plus tau cubed, d tau equals one half t to the power 4 minus two thirds t to the power 4 plus one quarter t to the power 4 equals 1 over 12 t to the power 4

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(c), p. 2
t ∗ t²
t∗t2=∫0t(t−τ) τ2 dτ=∫0t(tτ2−τ3) dτ=13t4−14t4=112t4t * t^2 = \int_0^{t}(t - \tau)\,\tau^2\,d\tau = \int_0^{t}\bigl(t\tau^2 - \tau^3\bigr)\,d\tau = \frac{1}{3}t^4 - \frac{1}{4}t^4 = \frac{1}{12}t^4
In words

t * t squared equals the integral from 0 to t of the quantity t minus tau, tau squared d tau equals the integral from 0 to t of the quantity t tau squared minus tau cubed, d tau equals one third t to the power 4 minus one quarter t to the power 4 equals 1 over 12 t to the power 4

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(c), p. 2

They are equal, as they must be: convolution is commutative.

Check the result

With the convolution formula of the lesson: the Laplace transforms of t2t^2 and tt are 2s3\dfrac{2}{s^3} and 1s2\dfrac{1}{s^2}, their product is 2s5\dfrac{2}{s^5}, and that is the transform of 2t44!=t412\dfrac{2t^4}{4!} = \dfrac{t^4}{12}. The lesson's quiz has the same convolution.

(d)6 points

Compute (t∗t)∗t(t * t) * t and t∗(t∗t)t * (t * t). Are they equal?

Hint

Find t∗tt * t first. It is a single power of tt with a number in front.

Hint

Then convolve that result with tt, once with the result in the first place (taken at t−τt - \tau) and once in the second place (taken at τ\tau).

Solution

The idea. Do the inner convolution first, then the outer one, in both orders.

t ∗ t

The inner convolution
t∗t=∫0t(t−τ) τ dτ=∫0t(tτ−τ2) dτ=12t3−13t3=16t3t * t = \int_0^{t}(t - \tau)\,\tau\,d\tau = \int_0^{t}\bigl(t\tau - \tau^2\bigr)\,d\tau = \frac{1}{2}t^3 - \frac{1}{3}t^3 = \frac{1}{6}t^3
In words

t * t equals the integral from 0 to t of the quantity t minus tau, tau d tau equals the integral from 0 to t of the quantity t tau minus tau squared, d tau equals one half t cubed minus one third t cubed equals one sixth t cubed

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(d), p. 2

The two triple convolutions

In (t∗t)∗t(t * t) * t the result 16t3\frac{1}{6}t^3 is taken at t−τt - \tau:

(t ∗ t) ∗ t
(t∗t)∗t=16∫0t(t−τ)3 τ dτ=16(12−33+34−15)t5=1120t5(t * t) * t = \frac{1}{6}\int_0^{t}(t - \tau)^3\,\tau\,d\tau = \frac{1}{6}\Bigl(\frac{1}{2} - \frac{3}{3} + \frac{3}{4} - \frac{1}{5}\Bigr)t^5 = \frac{1}{120}t^5
In words

(t * t) * t equals one sixth the integral from 0 to t of the quantity t minus tau, all cubed tau d tau equals one sixth the quantity one half minus three thirds plus three quarters minus one fifth, t to the power 5 equals 1 over 120, times t to the power 5

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(d), p. 2

In t∗(t∗t)t * (t * t) it is taken at τ\tau:

t ∗ (t ∗ t)
t∗(t∗t)=16∫0t(t−τ) τ3 dτ=16(14−15)t5=1120t5t * (t * t) = \frac{1}{6}\int_0^{t}(t - \tau)\,\tau^3\,d\tau = \frac{1}{6}\Bigl(\frac{1}{4} - \frac{1}{5}\Bigr)t^5 = \frac{1}{120}t^5
In words

t * (t * t) equals one sixth the integral from 0 to t of the quantity t minus tau, tau cubed d tau equals one sixth the quantity one quarter minus one fifth, t to the power 5 equals 1 over 120, times t to the power 5

Source: MIT 18.03 Problem Set 6: Part II Solutions, Part II solutions, pp. 1–2, Problem 25(d), p. 2

They are equal: the brackets may be moved, so convolution is associative in this example.

Check the result

The bracket of the first integral is 12−1+34−15=120\frac{1}{2} - 1 + \frac{3}{4} - \frac{1}{5} = \frac{1}{20}, the same as 14−15\frac{1}{4} - \frac{1}{5} in the second. With the Laplace transform: tt has the transform 1s2\dfrac{1}{s^2}, three of them multiply to 1s6\dfrac{1}{s^6} in any order, and that is the transform of t55!=t5120\dfrac{t^5}{5!} = \dfrac{t^5}{120}.

After: MIT 18.03 Problem Set 6, Part II, Problem 25

More practice: MIT's own Part I exercises#

Part I of MIT's Problem Set 6 (16 points at MIT, not scored here) has two items. They are not rewritten here.

ForExercises
MIT's Problem 22: periodic solutions and resonance, the lesson on particular solutions from Fourier seriesNotes exercises 7C-1 and 7C-2
MIT's Problem 24: step response and impulse response, the lesson on impulse inputs and the weight functionA problem of MIT's own: find the unit impulse response and the unit step response of the operators D+kID + kI and D2+ωn2ID^2 + \omega_n^2I. MIT prints the answers at the end of its sheet; the two impulse responses are the ones used in Problem 25 above

The two Notes exercises come from MIT's "18.03 Notes and Exercises", which is on MIT OpenCourseWare under the same licence as the rest of the course: open the exercises, section 7, try them, then compare with MIT's solutions (handwritten; 7C-1 and 7C-2 are on its third page). An exercise number such as 7C-2 means section 7, group C, exercise 2.

For MIT's Problems 23 and 25 the sheet's Part I has nothing. This set's Part I has no exercises from the course textbook (Edwards and Penney); the sheet names sections of that book only as reading, and the textbook is not openly licensed and is not used on this site.

Symbols on this page

Show the 53 symbols used here
δ\delta delta.
Dirac's delta function: a unit impulse at t = 0; δ(t − a) is a unit impulse at t = a. Say it: “delta”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
τ\tau tau.
The variable of integration in a convolution: the time at which the input acted. Say it: “tau” (sounds like “rhymes with cow”).
ω\omega omega.
The angular frequency of a sinusoidal input: of one term A sin ωt in Problem 22, and of the input cos ωt in Problem 25(a). Say it: “omega”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
aa a.
A constant: with b, the constants of the free solution a cos ω₀t + b sin ω₀t (Problem 22) and e^(−t)(a cos t + b sin t) (Problem 24); in Problem 23 the time t = a of a step, a delta function or a jump; in Problem 24(d) the coefficient of D in aD + bI. Say it: “a”.
cc c.
A constant: the unknown coefficient of the trial solution c sin ωt (Problem 22(a)), the size of a jump (Problem 23), and the constant of a transient c e^(−kt) (Problem 25(a)). Say it: “c”.
kk k.
The constant in the first-order operator D + kI (Problem 25(a)). Say it: “k”.
TT T.
A time after which a solution repeats: a period (Problem 22(d)). Say it: “capital T”.
xx x.
The unknown function of t: the response of a system to its input. Say it: “x”.
tt t.
Time. Say it: “t”.
dd d.
The d of dτ and of d/dt. Say it: “d”.
ii i.
The imaginary unit, i² = −1. Say it: “i”.
nn n.
A whole number: the index of a term of the input in the lesson's ω_n; in Problem 22(d) the number of free periods in the common period; in Problem 23(d) an integer at which the sawtooth jumps; in Problem 24(d) the order of an operator. Say it: “n”.
ee e.
Euler's number, 2.718… Say it: “e”.
mm m.
A whole number: an odd integer equal to the natural frequency at resonance (Problem 22(b)); in Problem 22(d) the number of periods 2π in the common period. Say it: “m”.
ff f.
A function with jumps that is zero for t < 0 (Problem 23). Say it: “f”.
gg g.
The triangle wave of period 2π that drives the spring: g(t) = t between −π/2 and π/2, and π − t between π/2 and 3π/2 (Problem 22). Say it: “g”.
vv v.
The unit step response of an operator: its response, from rest, to the input u(t). Say it: “v”.
DD D.
The differentiation operator d/dt; D² differentiates twice. Say it: “capital D”.
AA A.
The coefficient of a single sine term A sin ωt of the input (Problem 22). Say it: “capital A”.
bb b.
A constant: with a, the constants of the free solution (Problems 22 and 24); in Problem 24(d) the coefficient of I in aD + bI. Say it: “b”.
qq q.
The input of a system: the right side of its equation. Say it: “q”.
ss s.
The variable of the characteristic polynomial and of the Laplace transform. Say it: “s”.
hh h.
A free oscillation of the spring: a solution of the homogeneous equation (Problem 22(d)). Say it: “h”.
pp p.
The polynomial of an operator p(D); p(s) is the same polynomial in the variable s. Say it: “p”.
f′f' f prime.
The generalized derivative of f: its ordinary derivative, plus a delta function for each jump (Problem 23). Say it: “f prime”.
a1a_{1} a one.
The coefficient of D in the operator a₂D² + a₁D + a₀I (Problem 24(d)). Say it: “a one”.
a2a_{2} a two.
The coefficient of D² in the operator a₂D² + a₁D + a₀I (Problem 24(d)). Say it: “a two”.
uu u.
The unit step function: 0 for t < 0, 1 for t > 0; u(t − a) steps up at t = a. Say it: “u”.
ww w.
The unit impulse response (the weight function) of an operator: its response, from rest, to the input δ(t). Say it: “w”.
a0a_{0} a nought.
The coefficient of I in the operator a₂D² + a₁D + a₀I (Problem 24(d)). Say it: “a nought”.
ω0\omega_{0} omega nought.
The natural frequency of the undamped spring (MIT writes ω_n). Say it: “omega nought”.
a3a_{3} a 3.
The coefficient of D³ in a third-order operator (Problem 24(d)). Say it: “a three”.
u˙\dot{u} u dot.
The derivative of the unit step with respect to time, formally δ. Say it: “u dot”.
x˙\dot{x} x dot.
The derivative of x with respect to time. Say it: “x dot”.
u′u' u prime.
The derivative of the unit step, formally δ. Say it: “u prime”.
II I.
The identity operator, which leaves a function as it is. Say it: “capital I”.
ωr\omega_{r} omega r.
The smallest natural frequency at which the spring is in resonance with the input (Problem 22(c)). Say it: “omega r”.
ωn\omega_{n} omega n.
MIT's symbol for the natural frequency of the spring, written ω₀ on this page; in the lesson, the frequency of the n-th term of the input. Say it: “omega n”.
xpx_{p} x sub p.
A particular solution: the periodic solution of the driven spring in Problem 22, and the constant solution 1/4 in Problem 24(b). Say it: “x sub p”.
x¨\ddot{x} x double dot.
The second derivative of x with respect to time. Say it: “x double dot”.
w˙\dot{w} w dot.
The derivative of the unit impulse response w with respect to time. Say it: “w dot”.
w¨\ddot{w} w double dot.
The second derivative of the unit impulse response w with respect to time. Say it: “w double dot”.
v˙\dot{v} v dot.
The derivative of the unit step response v with respect to time. Say it: “v dot”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 57 words used here

Also used

particular solution.
Any one solution of the full equation, input term included; adding the complementary solution gives all the others. Explained in Inhomogeneous equations, particular solutions and stability.
Fourier series.
A way of writing a repeating function as a sum of sines and cosines whose frequencies are whole-number multiples of one frequency. Explained in Normal modes of a string and Fourier series.
convolution.
A way of combining two functions by sliding one across the other and adding up their overlapping products at each shift. Explained in The convolution formula.
unit step function.
The function that is 0 before time zero and 1 after it, used to switch inputs on. Explained in The unit step and discontinuous inputs.
discontinuity.
A point where a function is not continuous: its graph jumps, has a hole or shoots off to infinity there. Explained in Curve sketching with the first and second derivative.
impulse.
A very short, sharp input to a system whose total size, its integral over time, is fixed; modelled by the delta function. Explained in Impulse inputs, the delta function and the weight function.
delta function.
An idealised spike: zero everywhere except at one point, yet with total area one. It describes a sudden kick or a point source. Explained in Impulse inputs, the delta function and the weight function.
weight function.
A linear system's response to a sudden unit kick at time zero; adding up delayed copies of it, weighted by the input, gives any response. Explained in Impulse inputs, the delta function and the weight function.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.
Laplace transform.
A way of turning a function of time into a function of a new variable s, which changes differential equations into algebra. Explained in Introduction to the Laplace transform.
operator.
A rule that acts on a function, vector or state and turns it into another one, such as 'take the derivative'. Explained in The chain rule and higher derivatives.
period.
The time one full cycle of a repeating motion takes, such as one turn round a circle or one swing of a pendulum. Explained in Uniform circular motion: centripetal acceleration, period and frequency.
undamped.
With no damping at all, so an oscillation keeps the same size for ever. Explained in Complex characteristic roots and damped oscillations.
natural frequency.
The frequency at which a system oscillates on its own, with no damping and no outside force. Explained in Resonance.
frequency.
How often something repeats: the number of cycles, turns or waves each second, measured in hertz. Explained in Circular motion.
periodic.
Repeating itself exactly after a fixed interval of time or distance, called the period. Explained in Angles, radians and trigonometry.
linear.
The property that sums and multiples of solutions are again solutions, so the responses to separate inputs simply add. Explained in First-order linear equations and integrating factors.
superposition.
Adding effects: the total force, field or wave from several sources is the sum of what each would give alone. Explained in Superposition and standing waves.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
resonance.
The large response of an oscillating system when it is pushed at, or close to, its own natural frequency. Explained in Resonance.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
amplitude.
The size of an oscillation or wave: the largest distance from its middle position, or the number multiplying the sine. Explained in Oscillations and simple harmonic motion.
general solution.
The whole family of solutions of a differential equation, written with free constants that starting values or boundary conditions then fix. Explained in Differential equations and separation of variables.
sinusoidal.
Shaped like a sine curve: rising and falling smoothly and regularly, with a fixed wavelength or period. Explained in Constant coefficients: steady state, superposition and sinusoidal input.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
continuous.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
product rule.
The rule for the derivative of a product of two functions: (fg)′ = f′g + fg′. Explained in Circular motion: tangential acceleration and angular acceleration.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
initial condition.
The state of a system at the starting time, such as its position and speed, which picks out one solution of its equation. Explained in Introduction to first-order systems.
velocity.
How fast and in which direction something moves: the change in position in each unit of time. Explained in Speed and velocity.
characteristic polynomial.
The polynomial obtained by trying e^(rt) in a linear differential equation with constant coefficients; its roots give the exponents of the solutions. Explained in Second-order linear equations with constant coefficients.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
constant coefficients.
Of a linear differential equation: the numbers multiplying the unknown and its derivatives do not change with time. Explained in Constant coefficients: steady state, superposition and sinusoidal input.
parabola.
The U-shaped curve of y = ax² + bx + c, also the path of a thrown ball when air resistance is ignored. Explained in Quadratics and power laws.
transfer function.
For a linear system, the function that multiplies the transform of the input to give the transform of the response. Explained in Impulse inputs, the delta function and the weight function.
dummy variable.
The variable inside an integral or sum, which could be renamed without changing the result, like the t in ∫ f(t) dt. Explained in The second fundamental theorem of calculus.
real part.
For a complex number a + bi, the ordinary number a. Explained in Differential equations and exp(At).
transient.
The part of a system's response that dies away with time, leaving only the steady state. Explained in Driven oscillators and resonance.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
with respect to.
Taking that variable as the one that changes: a derivative with respect to t measures change as t changes, others held fixed. Explained in Average value, weighted averages and probability.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
commutative.
Of an operation: giving the same result in either order, as in a + b = b + a. Explained in Vectors.
associative.
Of an operation: giving the same result however the steps are grouped, as in (a + b) + c = a + (b + c). Explained in Vectors.

Academic

problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.
vanish.
To become zero; sometimes, of a fixed point or solution, to stop existing.
homogeneous.
Of a linear equation: with zero on the right-hand side, so that zero is a solution; its solutions form the homogeneous solution.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
dominate.
To be the largest contribution, so that the others hardly matter.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
formally.
Following the rules or symbols exactly as written, sometimes without checking that each step makes sense.
misprint.
A mistake in printed text, such as a wrong sign or number.
namely.
That is to say: introduces the exact thing that was just described in general terms.
of order.
Roughly equal to, within a factor of a few; of order one means neither much bigger nor much smaller than one.
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Credits and license

This page is a rewritten explanation based on MIT 18.03 Problem Set 6 from MIT 18.03 Differential Equations (Spring 2010), taught by Prof. Arthur Mattuck and Prof. Haynes Miller, published on MIT OpenCourseWare under CC BY-NC-SA 4.0.

MIT and the instructors do not endorse this site. All diagrams and plots on this page are generated by this site. This page is licensed CC BY-NC-SA 4.0: you may share and adapt it for non-commercial use with attribution, under the same license.