---
title: "Solve ODE by Laplace transform y''+2y'+2y=5sinx"
subject: "Mathematics III"
chapter: 3
key: "semester_3/mathematics_iii:solve-ode-by-laplace-transform-y-17"
source: https://www.bctengineer.com/q/semester_3/mathematics_iii/solve-ode-by-laplace-transform-y-17
site: BCT Engineering
---

# Solve ODE by Laplace transform y''+2y'+2y=5sinx

Mathematics III · Chapter 3: Laplace Transform

- Asked in: 2079 Baishakh, 5 marks
- Video: [Differential Equation - Laplace Transformation: d^2 y/dx^2 +2dy/dx+2y=5sinx ,y(0)=0 ,dy/dx=0 at x=0](https://www.youtube.com/watch?v=cHWSkVxa2Ck) — Calculus Physics Chem Accounting Tam Mai Thanh Cao
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_3/mathematics_iii/solve-ode-by-laplace-transform-y-17
- Whole chapter: https://www.bctengineer.com/md/semester_3/mathematics_iii/chapter-3

## Question

Using Laplace transform, solve the initial value problem: y'' + 2y' + 2y = 5 sin x, y(0) = y'(0) = 0.

## Short answer

Using Laplace transform gives Y = 5/[(s^2+1)(s^2+2s+2)], which by partial fractions becomes (-2s+1)/(s^2+1) + (2s+3)/((s+1)^2+1). Inverting yields y(x)= sin x - 2 cos x + e^{-x}(2 cos x + sin x).

## Answer

y″ + 2y′ + 2y = 5 sin x, y(0) = y′(0) = 0. Here x is the independent variable (use t in the transform).

**Step 1: Transform.** With Y = L[y]:

```text
(s² + 2s + 2) Y = 5/(s² + 1)
Y = 5 / [ (s² + 1)(s² + 2s + 2) ]
```

**Step 2: Partial fractions.**

```text
Y = (As + B)/(s² + 1) + (Cs + D)/((s + 1)² + 1)
```

Solving (compare coefficients) gives A = −2, B = 1, C = 2, D = 3:

```text
Y = (−2s + 1)/(s² + 1) + (2s + 3)/((s + 1)² + 1)
```

Check of the numerator: (−2s + 1)(s² + 2s + 2) + (2s + 3)(s² + 1) = 5 ✓.

**Step 3: Invert.** Write (2s + 3) = 2(s + 1) + 1:

```text
y = −2 cos x + sin x + e^(−x) (2 cos x + sin x)
```

**Answer: y(x) = sin x − 2 cos x + e^(−x)(2 cos x + sin x)**

**Check:** y(0) = −2 + 2 = 0 ✓. y′ = cos x + 2 sin x − e^(−x)(2 cos x + sin x) + e^(−x)(cos x − 2 sin x), so y′(0) = 1 − 2 + 1 = 0 ✓.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. (s^2 + 2s + 2)Y =
   A. 5/(s^2-1)
   B. 5s/(s^2+1)
   C. 5/(s^2+1)
   D. 5/(s^2+1) + 2
   Answer: C. Zero initial values. (Key point: Transform)

2. Y = 5/[(s^2+1)(s^2+2s+2)] uses
   A. A/(s^2+1) + B/((s+1)^2+1)
   B. A/(s+1) + B/(s+2)
   C. As/(s^2+1) + C/(s+1)
   D. (As+B)/(s^2+1) + (Cs+D)/((s+1)^2+1)
   Answer: D. Both are irreducible quadratics. (Key point: Partial fractions form)

3. (2s+3) over (s+1)^2+1 is written as
   A. 2(s+1) + 1 to apply the first shift
   B. 2s + 3 unchanged
   C. 2(s-1) + 5
   D. (s+1) + 2
   Answer: A. Gives e^(-x)(2 cos x + sin x). (Key point: Technique)

4. y(x) =
   A. sin x + 2 cos x + e^(-x)(2 cos x + sin x)
   B. sin x - 2 cos x + e^(-x)(2 cos x + sin x)
   C. sin x - 2 cos x + e^(x)(2 cos x + sin x)
   D. sin x - 2 cos x - e^(-x)(2 cos x + sin x)
   Answer: B. y(0) = -2 + 2 = 0. (Key point: Solution)

## Close variants set in other exams

- [Solve ODE by Laplace transform x''+2x'+5x=e^(−t)sint](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-x) — Mathematics III, chapter 3, asked 17×
- [Solve ODE by Laplace transform y''+2y'−3y=sint](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y) — Mathematics III, chapter 3, asked 14×
- [Solve ODE by Laplace transform y''+y=sin3t](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-nine) — Mathematics III, chapter 3, asked 12×
- [Solve ODE by Laplace transform y''+3y'+2y=e^(−t)](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-two) — Mathematics III, chapter 3, asked 18×
- [Solve ODE by Laplace transform y''+4y'+3y=0](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-four) — Mathematics III, chapter 3, asked 18×
- [Solve ODE by Laplace transform y''+4y'+3y=eᵗ](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-five) — Mathematics III, chapter 3, asked 16×
- [Solve ODE by Laplace transform y''+4y'+3y=0](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-eight) — Mathematics III, chapter 3, asked 13×
- [Solve ODE by Laplace transform y''−3y'+2y=4x+e^(3x)](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-ten) — Mathematics III, chapter 3, asked 14×
- [Solve ODE by Laplace transform y''−10y'+9y=5t](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-eleven) — Mathematics III, chapter 3, asked 13×
- [Solve ODE by Laplace transform x''+4x'+4x=6e^(−t)](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-x-two) — Mathematics III, chapter 3, asked 16×

## Related in Mathematics III

- [Solve ODE by Laplace transform y''+2y=r(t)](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-13) — Mathematics III, chapter 3, asked 5×
- [Solve ODE by Laplace transform y''+2y'+5y=e^(−t)sint](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-six) — Mathematics III, chapter 3, asked 2×
- [Solve ODE by Laplace transform y''+y'−2y=x](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-seven) — Mathematics III, chapter 3, asked 5×
- [Solve ODE by Laplace transform y''+3y'+2y=eᵗ](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-three) — Mathematics III, chapter 3, asked 4×
- [Solve ODE by Laplace transform y'''+2y''−y'−2y=0](https://www.bctengineer.com/question.md?key=semester_3%2Fmathematics_iii%3Asolve-ode-by-laplace-transform-y-15) — Mathematics III, chapter 3, asked 3×

## Related in other subjects

- [Initial value problem y''+2y'+5y=0](https://www.bctengineer.com/question.md?key=semester_2%2Fmathematics%3Ainitial-value-problem-y-2y) — Mathematics, chapter 4, asked 3×
- [Initial value problem y''−4y'+3y](https://www.bctengineer.com/question.md?key=semester_2%2Fmathematics%3Ainitial-value-problem-y-4y) — Mathematics, chapter 4, asked 3×
- [Solve y''+3y'+2y=e^(2x) sin x](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Ade-d2-3d-2-e2x-sinx) — Mathematics I, chapter 4, asked 2×
- [Initial value theorem; find x(0), x(1)](https://www.bctengineer.com/question.md?key=semester_4%2Fapplied_mathematics%3Ainitial-value-theorem) — Applied Mathematics, chapter 2
