Piecewise Forcing: Switch, Solve, and Match

Solving across a switch

A discontinuous forcing function changes the input to a differential equation at a stated time. The most reliable representation is piecewise: write one forcing expression before the switch and another after it. Solve on each interval, then use the state at the switch to connect the pieces.


For a linear equation with a finite step in its forcing, the state does not acquire an instantaneous jump merely because the input jumps. In a first-order equation, the derivative may change at the switch while the solution stays continuous.


In a second-order equation with finite coefficients and a finite forcing step, both the solution and its first derivative remain continuous; a higher derivative can change. An impulse is a different kind of input and needs different matching conditions.


The workflow is: identify each interval, solve the initial interval from the given initial condition, evaluate the needed state variables at the switch, and use those values as the initial data for the next interval.


Check the completed answer from both sides of the switch. Matching values is a necessary check; matching a derivative when a finite forcing step allows it to change can be an incorrect extra condition.

An input is zero before t = 3 and equals 7(t − 3) after t = 3. Which piecewise expression represents it?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

For y′ + 4y = f(t), the forcing f(t) has a finite step at t = 5. Which statement is appropriate when connecting interval solutions at t = 5?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Solve y′ + y = 0 for t < 2 and y′ + y = 6 for t > 2, with y(0) = 4 and y continuous at t = 2. What is y(t) for t > 2?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors