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 of the lessons is the unit impulse response, and the response to the unit step is the unit step response .
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 , omega for , pi for , k for , t for , D for the operator and exp(-t) for . 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#
A triangle wave drives a spring
Let be the function of period with for and for : a triangle wave.
Its Fourier series was found in Problem 21(f) of MIT's Problem Set 5, and MIT's solution to this problem quotes it:
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
This wave is the input of an undamped spring with natural frequency :
In words
x double dot plus omega nought squared x equals g(t)
(MIT writes the natural frequency as . This page writes , as the lesson does, where is the th frequency of the input.)
(a)4 points
Find a periodic solution 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 on the right, try and find . 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 into . The left side is , so , as long as :
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
Add the terms
The input has the frequencies Use the one-term result for each, with the coefficients of the series of :
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
This works as long as is not an odd integer, so that no denominator is zero. Every term has period , so is periodic with period .
Check the result
For the first two coefficients are and : the second one is positive because both the input coefficient and the denominator are negative. A limit: for a very stiff spring (large ) every denominator is close to , so , the solution of 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 is there no periodic solution?
Hint
Look at the denominators of your series. For which 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 has a term with a coefficient different from zero for every odd , and no other terms. So the spring is in resonance with one term of the input when An even integer is harmless: has no term of even frequency.
Why resonance leaves no periodic solution
MIT's solution states the answer. The reason, in our words: for , the response to the term is no longer a sine but
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
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 twice: . Adding leaves , as it should. It is the companion, for a sine input, of the resonant solution for a cosine input in the lesson on resonance.
(c)4 points
Write for the smallest value you found in part (b). What does the periodic solution look like, approximately, when is just below ? And when is just above ?
Hint
Which term of the series for has a very small denominator when is close to ?
Hint
Look at the sign of that denominator on each side of , and compare the sign of the term with the sign of 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 . For close to the first term of dominates:
In words
x sub p is approximately 4 over pi, times sine t over the quantity omega nought squared minus 1
Its amplitude is large, because is small.
Below and above
For just below the denominator is negative: is close to a large negative multiple of . The input's own largest term is a positive multiple of , so the spring moves against the input: it is in antiphase. For just above the denominator is positive and the spring moves with the input, in phase, again with a large amplitude.
Check the result
With the coefficient of is , and with it is . The next term is tiny beside them: for the coefficient of is .
(d)4 points
For which values of is there more than one periodic solution? (MIT's solution calls this a tricky question.)
Hint
Every solution is plus a solution of the homogeneous equation. The first has period . 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 plus the free oscillation of the spring. It is periodic when the two periods, and , fit into a common period.
The general solution
When is not an odd integer, of part (a) exists and has period . The general solution is
In words
x equals x sub p plus a cos omega nought t plus b sine omega nought t
and the added part has period .
A common period
The sum repeats after a time that is both a whole number of periods and a whole number of periods : , so , a rational number. Then every choice of and gives a periodic solution, with period : there are infinitely many. So the answer is: rational, but not an odd integer.
Irrational values (our addition)
MIT's solution stops there. If is irrational, is the only periodic solution. Suppose repeats after a time , where is a free oscillation that is not zero. Then , which is made of sines and cosines of odd integer frequencies, would cancel , which has the frequency . Sinusoids of different frequencies cannot cancel, so both differences are zero: is a multiple of (because contains ) and a multiple of , which makes rational after all.
Check the result
Take : the free oscillation has period , which is two periods of , so repeats after for every and .
(e)4 points
For the values of found in part (d), are all solutions of periodic?
Hint
In part (d), was there any condition on the constants and ?
Solution
The idea. The argument of part (d) never used the values of and .
Every solution
For (not an odd integer) every solution repeats after the time . So yes: all solutions are periodic. When is an even integer the free oscillation itself repeats after , so all solutions have period , the period of the input.
Check the result
For the free oscillation has period and has period . The shortest time that is a whole number of both is : three free periods and two periods of the input. (This number is our addition; MIT asks only the yes-or-no question.)
Problem 23#
Steps, jumps and delta functions
Three tools are needed. The unit step is before and after it (the lesson on the unit step). The delta function is a unit impulse at , and formally (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 at , counted positive when the function jumps up, adds .
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 and one for , using steps , delta functions and ordinary functions. A few single values of may stay undefined.
(a)3 points
for and for .
Hint
Multiplying a function by switches it on at . Does this jump anywhere?
Solution
The idea. Switch on with a unit step. The graph has a corner at , not a jump, so no delta function appears.
The formulas
In words
f(t) equals minus u(t) t, f prime (t) equals minus u(t)
The graph of lies on the axis up to and then falls with slope . The graph of is for and for : a step downwards, undefined at itself.
Check the result
is continuous at : both sides give . So the derivative has no delta function, and its integral from any negative time to is , as it must be.
(b)3 points
for and for .
Hint
Compare the values just before and just after .
Solution
The idea. Now the function jumps up by at , and a jump up by gives .
The formulas
In words
f(t) equals u(t) the quantity 1 minus t, f prime (t) equals minus u(t) plus delta (t)
The graph of is the same downward step as in part (a), with one upward spike of size at .
Check the result
By the product rule, , and a delta function at only feels the value of its factor at , which is . That gives again.
(c)3 points
for , for , and for .
Hint
The difference is between and and elsewhere: a window.
Hint
There are two jumps. Find the size and the direction of each from the values of at the two ends of the window.
Solution
The idea. Cut the line out with a window. The function jumps at both ends of the window.
The formula for f
In words
f(t) equals the quantity u(t) minus u of the quantity t minus 1, the quantity 2 t minus 1
The derivative
Inside the window the slope is , outside it is . At the function jumps from to , down by . At it jumps from to , down by again. Each jump down by gives a delta function with a minus sign:
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
The graph of is a box of height over with a downward spike of size at each end.
Check the result
is zero far to the left and far to the right, so the integral of over all must be . It is: the box contributes and the two spikes contribute each.
(d)3 points
for , and for the function is minus the largest integer that is not larger than : for , with (MIT writes this with floor brackets around . It is a sawtooth: the part of after the decimal point.)
Hint
Start from the ramp . What must be taken away once passes , and again when it passes ?
Hint
Taking away from the time onwards is done by subtracting .
Solution
The idea. The sawtooth is a ramp that is pulled down by at every positive integer.
The formula for f
MIT's solution first writes as a sum of windowed pieces, , and then collects the terms. (In MIT's printed solution the third piece has the window again, a misprint for .) The result is
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
The derivative (our own; MIT's solution gives only f)
The slope is for all between the jumps, and at each positive integer the function jumps down by . There is no jump at , where both sides are :
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
The graph of is the unit step with a downward spike of size at every positive integer.
Check the result
Test the formula for at : , and the steps at and are switched on, so , the part after the decimal point. The same answer comes from integrating from a negative time to : the step gives and the two spikes passed on the way give each.
Problem 24#
Impulse response and step response
An operator such as stands for the system with input : means differentiation and 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 is the solution with input that is zero for (rest initial conditions): the weight function of the lesson. Its unit step response is the solution with input that is zero for .
(a)4 points
Find the unit impulse response of the operator .
Hint
For the input is zero, so solves the homogeneous equation . All that the kick does is set the values at , just after it.
Hint
A unit kick on a second-order system leaves the position where it was and makes the velocity jump by divided by the coefficient of . Or take the route of the lesson: is the inverse Laplace transform of .
Solution
The idea. After the kick the system is free, so is a solution of the homogeneous equation for , picked out by the two values the kick leaves behind at .
The free solutions
The characteristic polynomial has the roots , so the homogeneous equation has the solutions
In words
x equals e to the power minus t the quantity a cos t plus b sine t
The values just after the kick
In words
w(0) equals 0, w dot (0 plus ) equals one half
Why: integrate over a very short time around . The right side gives . On the left only can give something that does not shrink with the interval, namely times the jump of . So jumps from to , and itself stays continuous.
Fit the constants
gives . Then has the slope at , so :
In words
w(t) equals one half u(t) e to the power minus t sine t
Check the result
The route of the lesson gives the same: , and the inverse Laplace transform of is .
(b)4 points
Find the unit step response of the same operator.
Hint
For the input is the constant . 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 .
Solution
The idea. For the equation is : a constant particular solution plus a free solution, fitted to rest initial conditions.
General solution for
The constant solves the equation, since then . So
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
Rest initial conditions
gives , so . Then gives too:
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
Check the result
At the bracket is . For large the response settles at , the constant solution. A number: .
(c)4 points
Verify that . (It should be so, because the inputs are related in the same way: .)
Hint
Differentiate your for with the product rule. Then think about : does jump there?
Solution
The idea. Differentiate the formula for and compare with .
Differentiate
Use the formula for in part (b) with : then and , so for
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
Check the result
For both and are zero. At the function is continuous (it starts at ), so its generalized derivative has no delta function there, and holds for all . A number: the slope of at is .
(d)12 points
Go the other way. For each of the three functions below, find the operator , a polynomial in with constant coefficients, that has it as its unit impulse response.
- .
- .
- .
(Type 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
applied to the function must give exactly : no steps and no other terms left over. Choose the coefficients to make that happen. On the lesson's route, is divided by the Laplace transform of the function.
Solution
The idea. The impulse response of an operator of order has its first jump in the derivative of order . So count the derivatives needed to reach a delta function, then fix the coefficients so that exactly.
1. A jump in the value
jumps itself, so the operator is of first order, :
In words
the quantity a capital D plus b capital I, (2 u) equals 2 a delta (t) plus 2 b u(t)
This is when and : .
2. A jump in the slope
has no jump, but its derivative has, so the operator is of second order, . Since ,
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
which is when and : . (MIT's first argument reaches the same by noting that for the function must solve the homogeneous equation, , and that the slope at must be .)
3. A jump in the second derivative
has , and third derivative : 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 gives :
In words
p( capital D ) equals one half capital D cubed, one half capital D cubed (u(t) t squared ) equals delta (t)
Check the result
On the lesson's route the transfer function is the Laplace transform of . The transforms of , and are , and , and divided by these gives , and : the same three polynomials.
Problem 25#
Convolution
The convolution of two functions is
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
(the lesson on convolution writes the variable of integration as ; here is the unit step, so this page writes , as MIT does). If is the unit impulse response of an operator, then is the solution of the equation with input and rest initial conditions. In this problem every function is taken for .
(a)6 points
The operator has the unit impulse response for (MIT's Part I, Problem 24, whose answer is printed on the sheet). Let . Compute , and verify that it is the solution of with rest initial conditions.
Hint
Write the integral out: . The factor does not depend on .
Hint
is the real part of , which is easy to integrate. Or integrate by parts twice.
Solution
The idea. Take out of the integral and integrate a complex exponential, then take the real part.
The integral
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
The real part
Multiply top and bottom by , so the denominator becomes , and take inside: the numerator is , with real part :
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
Verify the equation
Differentiate:
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
In the sine terms cancel, the exponentials cancel, and the cosines add to . And . So the convolution is the solution that starts from rest: of all the possible transients it has picked the one that makes .
Check the result
A number, with , and : the formula gives , and computing the integral numerically gives the same value.
(b)6 points
The operator has the unit impulse response for (again MIT's Part I, Problem 24, where the natural frequency is written ). Let . Compute , and verify that it is the solution of with rest initial conditions.
Hint
With the integral is . Mind the sign that the inner gives when you integrate.
Solution
The idea. Convolving with is integrating: .
The integral
The antiderivative of with respect to is , because the inner derivative is :
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
Verify the equation
and , so . Also and : rest initial conditions. Again the convolution has chosen, among all the solutions , the one that starts from rest.
Check the result
is itself, as in Problem 24(c): this 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 and around the constant solution .
(c)6 points
Compute and . Are they equal?
Hint
In the first function is taken at and the second at : the integrand is . Multiply out and integrate each power of , treating as a constant.
Solution
The idea. Write each convolution as an integral of a polynomial in .
The two integrals
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
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
They are equal, as they must be: convolution is commutative.
Check the result
With the convolution formula of the lesson: the Laplace transforms of and are and , their product is , and that is the transform of . The lesson's quiz has the same convolution.
(d)6 points
Compute and . Are they equal?
Hint
Find first. It is a single power of with a number in front.
Hint
Then convolve that result with , once with the result in the first place (taken at ) and once in the second place (taken at ).
Solution
The idea. Do the inner convolution first, then the outer one, in both orders.
t ∗ t
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
The two triple convolutions
In the result is taken at :
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
In it is taken at :
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
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 , the same as in the second. With the Laplace transform: has the transform , three of them multiply to in any order, and that is the transform of .
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.
| For | Exercises |
|---|---|
| MIT's Problem 22: periodic solutions and resonance, the lesson on particular solutions from Fourier series | Notes exercises 7C-1 and 7C-2 |
| MIT's Problem 24: step response and impulse response, the lesson on impulse inputs and the weight function | A problem of MIT's own: find the unit impulse response and the unit step response of the operators and . 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.