First-Order ODEs with the Laplace Transform
To solve a first-order linear ODE y′ + ay = g(t) with the Laplace transform, transform both sides using L{y′} = sY(s) − y(0), solve the resulting algebraic equation for Y(s), then invert. For example, y′ + 2y = 4 with y(0) = 1 gives Y(s) = (s + 4)/(s(s + 2)) = 2/s − 1/(s + 2), so y(t) = 2 − e^(−2t).
Why the Laplace Transform Works for First-Order ODEs
A first-order linear ODE with constant coefficients has the form y′(t) + a·y(t) = g(t) with an initial value y(0). The Laplace transform replaces the derivative with an algebraic expression: L{y′} = sY(s) − y(0). The initial condition enters the equation at this step, so there is no separate constant of integration to find at the end. After transforming, the ODE becomes (s + a)Y(s) − y(0) = G(s), which you solve for Y(s) like any linear equation: Y(s) = [y(0) + G(s)]/(s + a).
Key Formulas
Step-by-Step Method
1. Write the ODE in the form y′ + ay = g(t) and note y(0). 2. Transform each term: y′ becomes sY − y(0), ay becomes aY, and g(t) becomes G(s) from a transform table. 3. Collect the Y terms and solve: Y(s) = [y(0) + G(s)]/(s + a). 4. Split Y(s) into partial fractions so each term matches a table entry. 5. Invert term by term to get y(t). 6. Check: substitute y(t) back into the ODE and confirm y(0).
Worked Example 1: Constant Input
Solve y′ + 2y = 4 with y(0) = 1. Transforming gives sY − 1 + 2Y = 4/s. Collecting terms, (s + 2)Y = 1 + 4/s = (s + 4)/s, so Y(s) = (s + 4)/(s(s + 2)). Partial fractions: (s + 4)/(s(s + 2)) = A/s + B/(s + 2). At s = 0, A = 4/2 = 2; at s = −2, B = (−2 + 4)/(−2) = −1. So Y(s) = 2/s − 1/(s + 2) and y(t) = 2 − e^(−2t). Check: y′ = 2e^(−2t), and y′ + 2y = 2e^(−2t) + 4 − 2e^(−2t) = 4. Also y(0) = 2 − 1 = 1. The solution starts at 1 and settles at the steady-state value 4/2 = 2 with time constant 1/2.
Worked Example 2: Sinusoidal Input
Solve y′ + y = sin t with y(0) = 0. Transforming gives (s + 1)Y = 1/(s² + 1), so Y(s) = 1/((s + 1)(s² + 1)). Partial fractions give Y(s) = (1/2)/(s + 1) + (−(1/2)s + 1/2)/(s² + 1). Inverting term by term: y(t) = (1/2)e^(−t) − (1/2)cos t + (1/2)sin t. The e^(−t) term is the transient, which dies out; the sine and cosine terms are the steady-state response at the input frequency. Substituting back confirms y′ + y = sin t and y(0) = 1/2 − 1/2 = 0.
First-Order ODEs in Engineering
Many physical systems are first order. An RC circuit driven by a voltage source obeys RC·v′ + v = vin(t), so a = 1/(RC) and the time constant is τ = RC. A tank draining through a valve, a thermometer settling to a new temperature and a DC motor's speed under a constant load follow the same pattern. In every case the homogeneous part decays as e^(−t/τ), and the Laplace method gives the complete response (transient plus steady state) in one pass.
Frequently Asked Questions
Try the LapCalc calculator
Exact Laplace transforms with every step, free, plus free calculators for partial fractions, ODEs, circuits, control and Fourier series. Premium adds the inverse Laplace calculator and AI explanations.
Open LapCalc