A system is modeled by the initial value problem , with initial conditions and . What is the system's response for ?
Opening subject page...
Loading your content
Differential Equations Quiz
Practice Odes With Discontinuous Inputs 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 / 20
0 of 20 answered
A system is modeled by the initial value problem y′′+2y′+y=3δ(t−1), with initial conditions y(0)=0 and y′(0)=0. What is the system's response y(t) for t>0?
This quiz focuses on Odes With Discontinuous Inputs, giving you a quick way to practice the rules, question types, and explanations that matter most for Differential Equations.
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.
A system is modeled by the initial value problem y′′+2y′+y=3δ(t−1), with initial conditions y(0)=0 and y′(0)=0. What is the system's response y(t) for t>0?
Explanation: Taking the Laplace transform of the equation gives (s2+2s+1)Y(s)=3e−s. This simplifies to (s+1)2Y(s)=3e−s, so Y(s)=(s+1)23e−s. Let H(s)=(s+1)23. The inverse Laplace transform of H(s) is h(t)=3te−t. According to the second shifting theorem, the inverse transform of e−csH(s) is h(t−c)uc(t). Here, c=1, so y(t)=h(t−1)u1(t)=3(t−1)e−(t−1)u1(t).
The response of a mechanical system initially at rest to an external force is described by the displacement y(t)=e−(t−2)sin(t−2)u2(t). What is the instantaneous change in velocity, y′(2+)−y′(2−), at time t=2?
Explanation: The velocity is y′(t). For t<2, the system is at rest, so y(t)=0 and the velocity y′(t)=0. Thus, y′(2−)=0. For t>2, u2(t)=1, so y(t)=e−(t−2)sin(t−2). We find the velocity by differentiating with respect to t using the product rule: y′(t)=−e−(t−2)sin(t−2)+e−(t−2)cos(t−2). To find the velocity just after the impulse, we evaluate this expression at t=2+. y′(2+)=−e−(2−2)sin(2−2)+e−(2−2)cos(2−2)=−e0sin(0)+e0cos(0)=0+1=1. The instantaneous change in velocity is y′(2+)−y′(2−)=1−0=1. This jump in the first derivative is characteristic of the response of a second-order system to a Dirac delta impulse.
An RLC circuit with inductance L=1 H, resistance R=2 Ω, and capacitance C=1 F is initially inert (zero charge and current). At time t=π seconds, a constant voltage of 1 V is applied. What is the charge q(t) on the capacitor for t>π?
Explanation: When analyzing RLC circuits with delayed voltage inputs, you need to set up and solve a second-order differential equation with shifted initial conditions. For this RLC circuit, Kirchhoff's voltage law gives us Ldt2d2q+Rdtdq+Cq=V(t). With the given values (L=1, R=2, C=1) and voltage applied at t=π, this becomes dt2d2q+2dtdq+q=1 for t>π. The solution has the form q(t)=qh(t)+qp(t). The characteristic equation r2+2r+1=0 gives (r+1)2=0, so r=−1 (repeated root). This yields qh(t)=(A+Bt)e−t. The particular solution for the constant forcing function is qp=1. Since the voltage starts at t=π with zero initial charge and current, we use shifted conditions: q(π)=0 and q′(π)=0. Substituting u=t−π transforms this to a problem starting at u=0, giving us q(u)=1−(1+u)e−u. Converting back: q(t)=1−(1+t−π)e−(t−π). Answer choice D is correct. Choice A has the wrong sign on the exponential term. Choice B ignores the time shift entirely, treating the voltage as applied from t=0. Choice C includes an unnecessary unit step function and incorrect form. Study tip: Always identify when voltage sources are delayed and shift your time variable accordingly. The initial conditions must be applied at the moment the source turns on, not at t=0.
The Laplace transform of the solution to an initial value problem is given by Y(s)=s2−1se−2s. What is the solution y(t)?
Explanation: When you encounter a Laplace transform with an exponential factor like e−2s, this signals a time shift (translation) in the original function. The key insight is recognizing how to handle both the exponential factor and the rational function separately. To find y(t), you need to use the time-shifting property: if L−1{F(s)}=f(t), then L−1{e−asF(s)}=f(t−a)ua(t), where ua(t) is the unit step function. First, identify F(s)=s2−1s. The inverse Laplace transform of this is cosh(t), since L−1{s2−1s}=cosh(t). With the factor e−2s, this becomes cosh(t−2)u2(t) by the time-shifting property. Looking at the wrong answers: Choice A incorrectly expands the hyperbolic cosine using exponentials but makes sign and algebra errors in the process. Choice B gives cosh(t)u2(t), which ignores the time shift—this would be correct if there were no e−2s factor. Choice C gives sinh(t−2)u2(t), which would correspond to L−1{s2−1e−2s}, but our numerator has s, not 1. Study tip: Always decompose problems with e−as factors into two steps: find the inverse transform of the rational part first, then apply the time-shifting property. Remember that L−1{s2−a2s}=cosh(at) and L−1{s2−a21}=asinh(at).
A system is modeled by the differential equation y′′+4y′+5y=f(t) with y(0)=y′(0)=0. If the input is an impulse at time t=c, f(t)=δ(t−c), what is the impulse response y(t)?
Explanation: When you encounter a differential equation with an impulse function (Dirac delta), you're dealing with finding the system's impulse response - how it reacts to a sudden, instantaneous input at time t=c. To solve y′′+4y′+5y=δ(t−c) with zero initial conditions, start by finding the characteristic equation: r2+4r+5=0. Using the quadratic formula: r=2−4±16−20=2−4±2i=−2±i. This gives us complex roots with real part α=−2 and imaginary part β=1. For an impulse at t=c, the response has the form of the homogeneous solution shifted by c and multiplied by the unit step function uc(t). With complex roots −2±i, the impulse response is: y(t)=e−2(t−c)sin(t−c)uc(t). Looking at the wrong answers: Choice A uses cosine instead of sine - but impulse responses for second-order systems with zero initial conditions always involve sine, not cosine. Choice B has the exponential decay starting from t=0 rather than t=c, ignoring the time shift in the impulse. Choice D has the wrong exponential decay rate (−1 instead of −2) and wrong frequency (argument 2(t−c) instead of (t−c)). Study tip: For impulse responses, remember that the time shift in the input (t−c) must appear consistently throughout the solution, and complex roots α±βi give responses involving eα(t−c)sin(β(t−c)) for zero initial conditions.
The impulse response of a linear time-invariant system is h(t)=e−tsin(t). This is the solution to ay′′+by′+cy=δ(t) with zero initial conditions. What is the system's step response, i.e., the solution for an input of u0(t)?
Explanation: When you encounter problems connecting impulse and step responses, remember that these are fundamental relationships in linear systems theory. The step response is the integral of the impulse response. Since the impulse response is h(t)=e−tsin(t), the step response is found by integrating: y(t)=∫0th(τ)dτ=∫0te−τsin(τ)dτ To evaluate this integral, use integration by parts twice. Let u=sin(τ) and dv=e−τdτ. After applying integration by parts twice (since the sine function cycles through derivatives), you get: ∫e−τsin(τ)dτ=−21e−τ(cos(τ)+sin(τ))+C Evaluating from 0 to t: y(t)=−21e−t(cos(t)+sin(t))+21(1)=21(1−e−t(cos(t)+sin(t))) This confirms answer B is correct. A represents the derivative of the impulse response, not its integral. C is missing the sine term that appears when integrating e−tsin(t). D simply multiplies the impulse response by the unit step, which doesn't give the step response—that's a common misconception about how these responses relate. Study tip: Remember the key relationship: step response = integral of impulse response. Practice integration by parts with exponential-trigonometric products, as they appear frequently in control systems problems. The pattern always yields both sine and cosine terms in the result.
The solution to the initial value problem y′+2y=f(t) with y(0)=0 is given by y(t)=∫0te−2(t−τ)f(τ)dτ. If the input is a delayed step function f(t)=3u1(t), what is the resulting output y(t)?
Explanation: When you encounter a differential equation with a delayed input function, you're working with convolution integrals where the limits of integration are crucial. The unit step function u1(t) equals 0 for t<1 and 1 for t≥1, meaning the input "turns on" at t=1. Since f(τ)=3u1(τ) is zero when τ<1, the integral y(t)=∫0te−2(t−τ)f(τ)dτ has no contribution until τ≥1. For t≥1, the effective lower limit becomes τ=1, giving us: y(t)=∫1t3e−2(t−τ)dτ=3e−2t∫1te2τdτ Evaluating this integral: 3e−2t⋅21[e2τ]1t=23e−2t(e2t−e2)=23(1−e−2(t−1)) Since this solution is valid only for t≥1, we multiply by u1(t), giving us answer C. Answer A incorrectly uses the undelayed step response formula. Answer B has the correct exponential form but missing the factor of 21 that comes from the integration. Answer D represents only the homogeneous solution term and ignores the steady-state response. Key strategy: When dealing with delayed inputs in convolution integrals, always adjust your integration limits to account for when the input function is actually non-zero. The delay appears in both the exponential term and the unit step function.
Find the solution to the initial value problem y′′+9y=tu2(t), with initial conditions y(0)=0 and y′(0)=0.
Explanation: To apply the second shifting theorem, we must write the forcing function g(t)=tu2(t) in the form f(t−2)u2(t). Let t−2=v, so t=v+2. Thus, tu2(t)=((t−2)+2)u2(t)=(t−2)u2(t)+2u2(t). The Laplace transform is L{tu2(t)}=e−2sL{t+2}=e−2s(s21+s2)=e−2ss21+2s. The transformed ODE is (s2+9)Y(s)=e−2ss22s+1. So, Y(s)=e−2sH(s) where H(s)=s2(s2+9)2s+1. Partial fraction decomposition gives H(s)=s2/9+s21/9−s2+9(2/9)s+1/9. The inverse transform is h(t)=92+91t−92cos(3t)−271sin(3t). The final solution is y(t)=h(t−2)u2(t).
A system is described by y′′+y=f(t) with y(0)=0,y′(0)=0. The input is a square wave starting at t=0, given by f(t)=u0(t)−2uπ(t)+2u2π(t)−…. What is the solution y(t) on the interval π≤t<2π?
Explanation: When you encounter a differential equation with discontinuous forcing functions like unit step functions, you need to solve it piecewise and apply the principle of superposition. The key insight is that each unit step function "turns on" a new forcing term at specific times. For the interval π≤t<2π, the forcing function f(t)=u0(t)−2uπ(t)+2u2π(t)−… simplifies to f(t)=1−2=−1 since u0(t)=1 and uπ(t)=1 while u2π(t)=0 in this interval. The solution consists of two parts: the response to u0(t) from t=0 and the response to −2uπ(t) starting at t=π. For y′′+y=1 with zero initial conditions, the solution is 1−cos(t). When the forcing changes to −2 at t=π, this adds a response −2(1−cos(t−π)) with the time shift reflecting when this forcing began. Therefore, y(t)=1−cos(t)−2(1−cos(t−π)) for π≤t<2π. Choice A omits the initial response from t=0. Choice C ignores the effect of the step change at t=π. Choice D incorrectly adds rather than subtracts the second term, missing that −2uπ(t) creates a negative contribution. Remember: with piecewise forcing functions, track each "switching point" separately and use superposition to combine all active responses, being careful with the signs of each contribution.
Consider the initial value problem y′+y=f(t), with y(0)=1, where the forcing function f(t) is a rectangular pulse of height 2 for 1≤t<2, and 0 otherwise. Which expression correctly describes the solution y(t)?
Explanation: The forcing function can be written using Heaviside functions as f(t)=2(u1(t)−u2(t)). Taking the Laplace transform of the ODE: sY(s)−y(0)+Y(s)=L{f(t)}. With y(0)=1, we get (s+1)Y(s)−1=s2e−s−s2e−2s. Solving for Y(s): Y(s)=s+11+e−ss(s+1)2−e−2ss(s+1)2. The term s+11 corresponds to e−t. For the other terms, let H(s)=s(s+1)2=s2−s+12. Its inverse transform is h(t)=2−2e−t=2(1−e−t). Applying the second shifting theorem, L−1{e−sH(s)}=h(t−1)u1(t) and L−1{e−2sH(s)}=h(t−2)u2(t). Combining everything gives the solution y(t)=e−t+h(t−1)u1(t)−h(t−2)u2(t)=e−t+2(1−e−(t−1))u1(t)−2(1−e−(t−2))u2(t).
What is the solution to the initial value problem y′′+3y′+2y=δ(t) with initial conditions y(0)=1 and y′(0)=0?
Explanation: When you encounter a differential equation with a delta function (impulse) and initial conditions, you're dealing with a problem that requires finding both the homogeneous solution and accounting for the impulse response. First, solve the homogeneous equation y′′+3y′+2y=0. The characteristic equation is r2+3r+2=0, which factors as (r+1)(r+2)=0, giving roots r=−1 and r=−2. So the homogeneous solution is yh(t)=c1e−t+c2e−2t. For the delta function δ(t), the solution has a jump discontinuity in the first derivative at t=0. The jump magnitude equals the coefficient of δ(t) (which is 1), so y′(0+)−y′(0−)=1. Since y′(0−)=0, we have y′(0+)=1. Using initial conditions: y(0)=c1+c2=1 and y′(0+)=−c1−2c2=1. Solving this system: from the first equation, c1=1−c2. Substituting: −(1−c2)−2c2=1, so −1+c2−2c2=1, giving c2=−2 and c1=3. Therefore, y(t)=3e−t−2e−2t, which is answer C. Answer A uses the wrong initial condition for y′. Answer B ignores the original initial conditions entirely. Answer D has the coefficients backwards. Key strategy: With impulse functions, always account for the jump discontinuity in the derivative—this changes your effective initial conditions for the homogeneous solution.
An RLC circuit with resistance R=3Ω, inductance L=1H, and capacitance C=0.5F is governed by the equation Lq′′+Rq′+C1q=E(t). If the circuit starts with zero charge and zero current, and a constant voltage of E(t)=10V is applied at time t=2s, what is the charge q(t) on the capacitor for t>0?
Explanation: When you encounter RLC circuit problems with delayed inputs, you're dealing with shifted differential equations that require careful attention to initial conditions and the timing of the applied voltage. First, substitute the given values into the governing equation: 1⋅q′′+3q′+0.51q=E(t), which simplifies to q′′+3q′+2q=E(t). The characteristic equation r2+3r+2=0 factors as (r+1)(r+2)=0, giving roots r=−1,−2. Since the voltage E(t)=10 is applied only for t≥2, you need E(t)=10u(t−2). For t<2, the circuit remains at rest with zero charge and current. At t=2, the system "starts" responding to the constant voltage. The solution for t≥2 takes the form q(t)=qh+qp, where the homogeneous solution is qh=c1e−(t−2)+c2e−2(t−2) (shifted to start at t=2) and the particular solution is qp=5 (since 210=5). Applying initial conditions q(2)=0 and q′(2)=0 gives c1=−10 and c2=5, yielding q(t)=u(t−2)[5−10e−(t−2)+5e−2(t−2)]. Choice A incorrectly uses unshifted exponentials. Choice C has the wrong particular solution coefficient. Choice D has incorrect signs in the exponential terms, which would violate the initial conditions. Strategy tip: In delayed differential equation problems, always shift your time variable in both the exponentials and initial conditions to match when the input actually begins.
Determine the solution to the initial value problem y′+y=u(t−1)+δ(t−2), given y(0)=0.
Explanation: When you encounter a differential equation with unit step functions u(t−a) and Dirac delta functions δ(t−a), you're dealing with piecewise forcing functions that "turn on" at specific times. The key insight is that each term contributes to the solution only after its activation time, and the form of each contribution depends on the type of function. For this first-order linear ODE y′+y=u(t−1)+δ(t−2), the homogeneous solution has integrating factor et. The unit step u(t−1) acts like a constant forcing function starting at t=1, producing a particular solution of the form 1−e−(t−1) that's "turned on" by multiplying by u(t−1). The delta function δ(t−2) creates an instantaneous impulse at t=2, contributing a decaying exponential e−(t−2) that begins at that moment, activated by u(t−2). Choice B correctly captures both behaviors: u(t−1)[1−e−(t−1)]+u(t−2)e−(t−2). Choice A incorrectly uses e−t instead of the shifted exponentials, missing that solutions should start fresh at their activation times. Choice C has the wrong decay rate for the delta impulse term—it should decay as e−(t−2), not e−(t−1). Choice D omits the unit step functions entirely, meaning the solution would be active for all t rather than starting at the proper times. Remember: unit steps and delta functions create solutions that begin at their shift points, so your exponential decay should always be measured from those activation times.
A system is modeled by the initial value problem y′+2y=f(t) with y(0)=0, where the input f(t) is a single rectangular pulse of magnitude 1 for 0≤t<1. What is the solution y(t)?
Explanation: The forcing function can be written using Heaviside step functions as f(t)=u(t)−u(t−1), which is 1−u(t−1) for t≥0. Taking the Laplace transform of the ODE gives sY(s)−y(0)+2Y(s)=L{1−u(t−1)}. With y(0)=0, we get (s+2)Y(s)=s1−se−s. Solving for Y(s): Y(s)=s(s+2)1−s(s+2)e−s. Using partial fractions, s(s+2)1=21(s1−s+21). So, Y(s)=21(s1−s+21)−21e−s(s1−s+21). Let G(s)=21(s1−s+21), whose inverse Laplace transform is g(t)=21(1−e−2t). The solution is y(t)=g(t)−u(t−1)g(t−1). Substituting g(t) gives y(t)=21(1−e−2t)−21u(t−1)(1−e−2(t−1)).
Solve the initial value problem y′+y=u(t−1)t with the initial condition y(0)=1.
Explanation: When you encounter a differential equation with a unit step function like u(t−1), you need to solve it piecewise since the forcing function changes at t=1. First, solve for t<1 where u(t−1)=0. The equation becomes y′+y=0, giving y=Ce−t. Using the initial condition y(0)=1, we get C=1, so y(t)=e−t for t<1. For t≥1, where u(t−1)=1, the equation becomes y′+y=t. This is a first-order linear equation. The homogeneous solution is e−t, and using the method of undetermined coefficients, the particular solution is yp=t−1. So the general solution is y=Ae−t+t−1. To find A, use continuity at t=1. From the left: y(1−)=e−1. From the right: y(1+)=Ae−1+1−1=Ae−1. Therefore A=1. This gives us y(t)=e−t+u(t−1)(t−1), which is answer C. Answer A incorrectly uses t instead of (t−1) in the step function term. Answer B includes an unnecessary exponential term e−(t−1) that would come from solving the shifted equation incorrectly. Answer D represents (1−e−(t−1)), which suggests confusion with the integrating factor method. Study tip: For piecewise differential equations, always check continuity at the switching point and remember that unit step functions "turn on" their argument at the specified time.
Find the solution to the initial value problem y′′+4y=δ(t−π/2), with initial conditions y(0)=0 and y′(0)=0.
Explanation: When you encounter a differential equation with a Dirac delta function (impulse) on the right side, you're dealing with a forced oscillation problem that requires finding the impulse response of the system. The homogeneous equation y′′+4y=0 has characteristic equation r2+4=0, giving r=±2i. This means the natural frequency is ω=2, and the homogeneous solution involves sin(2t) and cos(2t). For an impulse δ(t−π/2) applied to this second-order system, the response is the impulse response function multiplied by the unit step function u(t−π/2). The impulse response for y′′+ω2y=δ(t−a) with zero initial conditions is ω1sin(ω(t−a))u(t−a). With ω=2 and a=π/2, this gives 21sin(2(t−π/2))u(t−π/2). Using the identity sin(2(t−π/2))=sin(2t−π)=−sin(2t), the solution becomes −21sin(2t)u(t−π/2). Choice A incorrectly uses coefficient 1 instead of 21 and doesn't account for the phase shift. Choice B has the correct coefficient but wrong sign—it misses the negative sign from the trigonometric identity. Choice C incorrectly uses cosine instead of sine, suggesting confusion about which trigonometric function appears in the impulse response. Remember: for impulse problems, always check your trigonometric identities carefully when simplifying the phase-shifted terms, as sign errors are common pitfalls.
The equation y′′−2y′+y=g(t) has initial conditions y(0)=1 and y′(0)=0, where g(t)=⎩⎨⎧t4−t0if 0≤t<2if 2≤t<4if t≥4. Which expression correctly represents L{g(t)}?
Explanation: We rewrite g(t)=t[u(t)−u(t−2)]+(4−t)[u(t−2)−u(t−4)]. Using the shifting property and the fact that L{t}=s21, we get L{g(t)}=s21−e−2sL{(t+2)}+e−4sL{(t+4−4)}. After simplification, this yields choice C.
The transfer function H(s)=s2+2s+21 represents a system subjected to the input f(t)=u(t−1)−2u(t−2)+u(t−3). What is the steady-state behavior of the output as t→∞?
Explanation: The poles of H(s) are at s=−1±i, both having negative real parts, making the system stable. The input f(t) has ∑ of step coefficients = 1−2+1=0, meaning the final value of the input is zero. For a stable system with zero final input value, the steady-state output approaches zero. This is confirmed by the final value theorem: limt→∞y(t)=lims→0sY(s)=0.
A second-order system has the response y(t)=e−tcos(2t)+21[u(t−π)−u(t−2π)]e−(t−π)sin(2(t−π)) for t>0. What was the form of the discontinuous input that produced this response?
Explanation: The first term e−tcos(2t) represents the homogeneous response to initial conditions. The second term has the form of a response to a rectangular pulse input. The coefficient 21 comes from the system's transfer function, and the factor [u(t−π)−u(t−2π)] indicates the pulse duration. Since the impulse response would be 21e−tsin(2t) for this underdamped system, a unit rectangular pulse from t=π to t=2π produces exactly the observed forced response term.
The convolution integral y(t)=∫0th(t−τ)f(τ)dτ is used to find the response of y′′+4y′+4y=f(t) where f(t)=∑k=0∞(−1)kδ(t−k). What is the pattern of y(t) for large t?
Explanation: When you encounter convolution problems involving impulse functions and differential equations, you're dealing with system response analysis. The key insight is understanding how the system's impulse response function behaves and how repeated impulses affect the overall response. First, solve the homogeneous equation y′′+4y′+4y=0. The characteristic equation r2+4r+4=0 gives (r+2)2=0, so r=−2 is a repeated root. This means the impulse response function is h(t)=te−2tu(t), where u(t) is the unit step function. The forcing function f(t)=∑k=0∞(−1)kδ(t−k) represents alternating unit impulses at integer times: positive at t=0,2,4,... and negative at t=1,3,5,... Each impulse contributes a response that decays exponentially with the factor e−2(t−k) for t>k. Since the exponential decay dominates and the system is stable (both characteristic roots have negative real parts), the overall response oscillates but with decreasing amplitude as t increases. Choice A is wrong because the exponential decay e−2t dominates any polynomial growth. Choice C is incorrect because the responses from previous impulses don't completely die out between impulses, preventing true periodicity. Choice D fails because the system is stable—the negative characteristic roots ensure bounded responses. Remember: for stable linear systems (negative characteristic roots), bounded inputs always produce bounded outputs that eventually decay, regardless of oscillatory behavior in the forcing function.