Practice Heaviside Step Functions in Differential Equations with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.
Question 1 / 12
0 of 12 answered
Let f(t) be a function defined as f(t)={cos(t)−10≤t<πt≥π. Find the Laplace transform, F(s)=L{f(t)}.
What this quiz covers
This quiz focuses on Heaviside Step Functions, giving you a quick way to practice the rules, question types, and explanations that matter most for Differential Equations.
How to use this quiz
Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.
All questions
Question 1
Let f(t) be a function defined as f(t)={cos(t)−10≤t<πt≥π. Find the Laplace transform, F(s)=L{f(t)}.
s2+1s−e−πs(s2+1s+s1)
s2+1s+e−πs(s2+1s−s1) (correct answer)
s2+1s−e−πs(s2+1s−s1)
s2+1s+e−πs(s2+1s+s1)
Explanation: First, represent f(t) using the Heaviside step function uπ(t).
f(t)=cos(t)(1−uπ(t))−1⋅uπ(t)=cos(t)−(cos(t)+1)uπ(t).
To find the Laplace transform of the second term using the second shifting theorem, L{g(t−c)uc(t)}=e−csG(s), we must express cos(t)+1 as a function of (t−π).
Let g(t)=cos(t)+1. We need to find L{g(t)uπ(t)}=e−πsL{g(t+π)}.
g(t+π)=cos(t+π)+1=−cos(t)+1.
So, L{g(t+π)}=L{−cos(t)+1}=−s2+1s+s1.
Therefore, L{(cos(t)+1)uπ(t)}=e−πs(s1−s2+1s).
The complete transform is:
F(s)=L{cos(t)}−L{(cos(t)+1)uπ(t)}=s2+1s−e−πs(s1−s2+1s)=s2+1s+e−πs(s2+1s−s1).
Question 2
Find the inverse Laplace transform y(t) of the function Y(s)=s32+s2+9(s−1)e−4s.
Explanation: We find the inverse transform of each term separately.
For the first term: L−1{s32}=L−1{s2+12!}=t2.
For the second term, we use the second shifting theorem, L−1{e−csF(s)}=f(t−c)uc(t).
Here, c=4 and F(s)=s2+9s−1.
We find f(t)=L−1{F(s)} first.
F(s)=s2+9s−s2+91=s2+32s−31s2+323.
f(t)=cos(3t)−31sin(3t).
Now, we apply the shift: f(t−4)u4(t)=(cos(3(t−4))−31sin(3(t−4)))u4(t).
Combining the two parts, the complete inverse transform is y(t)=t2+(cos(3(t−4))−31sin(3(t−4)))u4(t).
Question 3
Solve the initial value problem y′+2y=f(t), with y(0)=3 and f(t)={050≤t<1t≥1.
y(t)=3e−2t+25(1−e−2t)u1(t)
y(t)=25(1−e−2(t−1))u1(t)
y(t)=3e−2t−25(1−e−2(t−1))u1(t)
y(t)=3e−2t+25(1−e−2(t−1))u1(t) (correct answer)
Explanation: First, write the forcing function as f(t)=5u1(t).
Take the Laplace transform of the entire equation:
L{y′}+2L{y}=L{5u1(t)}[sY(s)−y(0)]+2Y(s)=s5e−s
Substitute y(0)=3:
(s+2)Y(s)−3=s5e−sY(s)=s+23+s(s+2)5e−s.
To find the inverse transform of the second term, use partial fraction decomposition for s(s+2)5=sA+s+2B. This gives A=5/2 and B=−5/2. So, s(s+2)5=25(s1−s+21).
Let G(s)=25(s1−s+21), then g(t)=L−1{G(s)}=25(1−e−2t).
The second term in Y(s) is e−sG(s), so its inverse transform is g(t−1)u1(t)=25(1−e−2(t−1))u1(t).
The inverse transform of the first term is L−1{s+23}=3e−2t.
Combining the parts, the solution is y(t)=3e−2t+25(1−e−2(t−1))u1(t).
Question 4
The solution to the initial value problem y′+2y=5u1(t), y(0)=3 is y(t)=3e−2t+25(1−e−2(t−1))u1(t).
Using the provided solution to the initial value problem, what is the value of y(2)?
3e−4
25+21e−4
3e−4+25−25e−2 (correct answer)
3e−4+25−25e−4
Explanation: The solution is given by y(t)=3e−2t+25(1−e−2(t−1))u1(t).
To find y(2), we substitute t=2 into the expression.
Since 2>1, the Heaviside function u1(2) is equal to 1.
So, we evaluate the entire expression at t=2:
y(2)=3e−2(2)+25(1−e−2(2−1))u1(2)y(2)=3e−4+25(1−e−2(1))(1)y(2)=3e−4+25(1−e−2)y(2)=3e−4+25−25e−2.
Distractor A results from ignoring the forcing term (evaluating only the homogeneous part). Distractor B results from incorrectly using the unshifted function g(t) instead of g(t−1). Distractor D results from an algebraic error in the exponent.
Question 5
The staircase function, defined as f(t)=⌊t⌋ for t≥0, can be expressed as an infinite sum of Heaviside functions: f(t)=∑n=1∞un(t). What is the Laplace transform of f(t)?
s(es−1)1 (correct answer)
s(1−e−s)1
es−11
1−e−se−s
Explanation: The Laplace transform of the infinite sum is the sum of the Laplace transforms:
F(s)=L{∑n=1∞un(t)}=∑n=1∞L{un(t)}.
The Laplace transform of a single Heaviside function is L{un(t)}=se−ns.
So, F(s)=∑n=1∞se−ns=s1∑n=1∞e−ns.
The sum is a geometric series with first term a=e−s and common ratio r=e−s. Since ∣r∣=e−s<1 for s>0, the sum converges to 1−ra=1−e−se−s.
Therefore, F(s)=s1(1−e−se−s).
To match the answer choices, we can multiply the numerator and denominator by es:
F(s)=s1((1−e−s)ese−ses)=s1(es−11)=s(es−1)1.
Question 6
Given that Y(s)=s(s2+1)(s+3)e−πs, find the inverse Laplace transform y(t).
(3−3cos(t)+sin(t))uπ(t)
(3+3cos(t)+sin(t))uπ(t)
(3−3cos(t)−sin(t))uπ(t)
(3+3cos(t)−sin(t))uπ(t) (correct answer)
Explanation: This problem requires using the second shifting theorem, L−1{e−csG(s)}=g(t−c)uc(t).
Here, c=π and G(s)=s(s2+1)s+3.
First, we find g(t)=L−1{G(s)} using partial fraction decomposition.
s(s2+1)s+3=sA+s2+1Bs+C.
Solving for the coefficients gives A(s2+1)+(Bs+C)s=s+3, which leads to A=3,C=1,B=−3.
So, G(s)=s3−s2+13s+s2+11.
The inverse transform is g(t)=3−3cos(t)+sin(t).
Now, we must find g(t−π).
g(t−π)=3−3cos(t−π)+sin(t−π).
Using the identities cos(t−π)=−cos(t) and sin(t−π)=−sin(t), we get:
g(t−π)=3−3(−cos(t))+(−sin(t))=3+3cos(t)−sin(t).
Finally, the solution is y(t)=g(t−π)uπ(t)=(3+3cos(t)−sin(t))uπ(t).
Question 7
Find the Laplace transform of the function f(t)=cos(2t)(uπ/2(t)−u3π/2(t)).
s2+4s(e−πs/2−e−3πs/2)
s2+4s(e−3πs/2−e−πs/2) (correct answer)
s2+4s(e−πs/2+e−3πs/2)
−s2+4s(e−πs/2+e−3πs/2)
Explanation: We need to compute L{cos(2t)uπ/2(t)}−L{cos(2t)u3π/2(t)}.
For the first term, with c=π/2, we must write cos(2t) as a function of (t−π/2).
2t=2(t−π/2)+π. Using the identity cos(x+π)=−cos(x), we have cos(2t)=cos(2(t−π/2)+π)=−cos(2(t−π/2)).
So, L{cos(2t)uπ/2(t)}=L{−cos(2(t−π/2))uπ/2(t)}=−e−πs/2L{cos(2t)}=−e−πs/2s2+4s.
For the second term, with c=3π/2, we write cos(2t) as a function of (t−3π/2).
2t=2(t−3π/2)+3π. Using the identity cos(x+3π)=−cos(x), we have cos(2t)=cos(2(t−3π/2)+3π)=−cos(2(t−3π/2)).
So, L{cos(2t)u3π/2(t)}=−e−3πs/2L{cos(2t)}=−e−3πs/2s2+4s.
Combining the results: F(s)=−e−πs/2s2+4s−(−e−3πs/2s2+4s)=s2+4s(e−3πs/2−e−πs/2).
Question 8
Consider the initial value problem representing an undamped harmonic oscillator with a finite-duration force: y′′+4y=8sin(t)(1−uπ(t)), with initial conditions y(0)=0 and y′(0)=0. What is the solution y(t) for t≥π?
−38sin(2t) (correct answer)
38sin(t)−34sin(2t)
0
−38cos(t)−34cos(2t)
Explanation: First, take the Laplace transform of the IVP. The forcing function is f(t)=8sin(t)−8sin(t)uπ(t).
We rewrite the second term: sin(t)=sin((t−π)+π)=−sin(t−π).
So f(t)=8sin(t)+8sin(t−π)uπ(t).
\{L}\{f(t)\} = \frac{8}{s^2+1} + \frac{8e^{-\pi s}}{s^2+1}.
The transformed DE is (s2+4)Y(s)=s2+18(1+e−πs).
Y(s)=(s2+1)(s2+4)8(1+e−πs).
Using partial fractions, (s2+1)(s2+4)8=s2+18/3−s2+48/3.
Let G(s)=s2+18/3−s2+48/3. Its inverse transform is g(t)=38sin(t)−34sin(2t).
Then y(t)=g(t)+g(t−π)uπ(t).
g(t−π)=38sin(t−π)−34sin(2(t−π))=−38sin(t)−34sin(2t).
For t≥π, uπ(t)=1, so the solution is y(t)=g(t)+g(t−π).
y(t)=(38sin(t)−34sin(2t))+(−38sin(t)−34sin(2t))=−38sin(2t).
Question 9
What is the Laplace transform of the function f(t)=(t2+1)u2(t)?
e−2s(s32+s1)
e−2s(s32+s5)
e−2s(s32+s24+s5) (correct answer)
e−2s(s32+s24+s4)
Explanation: To find the Laplace transform of f(t)=g(t)uc(t), we must use the second shifting theorem, L{g(t)uc(t)}=e−csL{g(t+c)}.
In this case, g(t)=t2+1 and c=2.
We need to find L{g(t+2)}.
g(t+2)=(t+2)2+1=(t2+4t+4)+1=t2+4t+5.
Now, we take the Laplace transform of this new polynomial:
L{t2+4t+5}=L{t2}+4L{t}+L{5}=s32+s24+s5.
Finally, we multiply by e−cs=e−2s to get the final answer:
F(s)=e−2s(s32+s24+s5).
Distractor A represents the common mistake of applying e−csL{g(t)} instead of e−csL{g(t+c)}.
Question 10
A function f(t) is defined piecewise as f(t)=⎩⎨⎧t214−t0≤t<11≤t<3t≥3. Which of the following expressions correctly represents f(t) using Heaviside step functions uc(t)?
t2+(1−t2)u1(t)+(3−t)u3(t) (correct answer)
t2u0(t)+u1(t)+(4−t)u3(t)
t2(u0(t)−u1(t))+u1(t)+(4−t)u3(t)
t2+(1−t2)u1(t)+(5−t)u3(t)
Explanation: A standard way to write a piecewise function f(t)=⎩⎨⎧g0(t)g1(t)g2(t)0≤t<c1c1≤t<c2t≥c2 is f(t)=g0(t)+[g1(t)−g0(t)]uc1(t)+[g2(t)−g1(t)]uc2(t).
In this case, g0(t)=t2, g1(t)=1, and g2(t)=4−t. The points of discontinuity are c1=1 and c2=3.
Applying the formula:
f(t)=t2+(1−t2)u1(t)+((4−t)−1)u3(t)f(t)=t2+(1−t2)u1(t)+(3−t)u3(t).
Let's verify:
For 0≤t<1, u1=0,u3=0, so f(t)=t2. Correct.
For 1≤t<3, u1=1,u3=0, so f(t)=t2+(1−t2)=1. Correct.
For t≥3, u1=1,u3=1, so f(t)=t2+(1−t2)+(3−t)=1+3−t=4−t. Correct.
Question 11
The convolution integral ∫0te−(t−τ)u2(τ)dτ can be evaluated using properties of Heaviside functions. What is the result for t=5?
e−5+e−3−1
1−e−3 (correct answer)
e−2−e−5
1−e−3+e−5
Explanation: For t=5, we evaluate ∫05e−(5−τ)u2(τ)dτ. Since u2(τ)=0 for τ<2 and u2(τ)=1 for τ≥2, the integral becomes ∫25e−(5−τ)dτ=∫25eτ−5dτ=e−5∫25eτdτ=e−5[eτ]25=e−5(e5−e2)=1−e−3. Choice A incorrectly includes extra exponential terms that don't arise from the integration. Choice C gives the wrong limits and signs. Choice D adds an incorrect e−5 term that would come from mishandling the exponential factor.
Question 12
A system is governed by dtdy+2y=g(t) where g(t)=∑n=1∞(−1)n+1un(t) and y(0)=0. What is the behavior of y(t) as t→∞?
y(t) oscillates between 21 and −21 with decreasing amplitude
y(t) approaches 21 asymptotically with exponential decay of oscillations
y(t) oscillates between 21 and 0 with period approaching 1 (correct answer)
y(t) grows without bound due to the infinite sum of step functions
Explanation: The forcing function g(t)=u1(t)−u2(t)+u3(t)−u4(t)+… creates a square wave that alternates between 1 and 0. For t∈[n,n+1), we have g(t)=(−1)n+1. The solution to y′+2y=g(t) with y(0)=0 is found using integrating factors. For each interval [n,n+1), the solution is y(t)=2(−1)n+1(1−e−2(t−n))+y(n)e−2(t−n). As t increases through each interval, y(t) exponentially approaches 2(−1)n+1 from its value at the start of the interval. Since the forcing alternates sign every unit of time, and the exponential decay is rapid (time constant 21), the solution oscillates between approximately 21 and 0, spending most of each interval close to the steady-state value 21 or −21 corresponding to the current forcing level. However, since the forcing switches between 1 and 0 (not 1 and -1), the oscillation is between 21 and 0. Choice A incorrectly assumes symmetric oscillation about zero. Choice B misses the periodic switching. Choice D ignores the stabilizing effect of the decay term.