- 2069 Asar
Solve y''−y=x² cos x
Short answer
The complementary function is c₁eˣ + c₂e^(-x). The particular integral is ½(1 - x²) cos x + x sin x, giving y = c₁eˣ + c₂e^(-x) + ½(1 - x²) cos x + x sin x.
Solve: d²y/dx² − y = x² cos x.
The equation is (D² − 1)y = x² cos x.
Complementary function
m² − 1 = 0, so m = ±1.
CF = c₁eˣ + c₂e^(−x)
Particular integral
Write x² cos x as the real part of x²e^(ix):
PI = Re [ 1/(D² − 1) · x²e^(ix) ] = Re [ e^(ix) · 1/((D + i)² − 1) · x² ]
(D + i)² − 1 = D² + 2iD − 2 = −2[1 − iD − D²/2], so
PI = Re [ e^(ix) · (−1/2)(1 − iD − D²/2)⁻¹ x² ]
Expand (1 − u)⁻¹ = 1 + u + u² with u = iD + D²/2:
(1 + iD + D²/2 + (iD)² + …) = 1 + iD + (1/2 − 1)D² = 1 + iD − D²/2
Apply to x²: x² + 2ix − 1.
PI = Re [ −(1/2) e^(ix)(x² − 1 + 2ix) ] = −(1/2) [(x² − 1) cos x − 2x sin x] = ½(1 − x²) cos x + x sin x
General solution
y = c₁eˣ + c₂e^(−x) + ½(1 − x²) cos x + x sin x
(Check: with y_p = ½(1 − x²) cos x + x sin x, differentiating twice gives y_p'' − y_p = x² cos x.)
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Solve sin x dy/dx + y cos x = x sin x · Mathematics I, chapter 4
- Gamma function: ∫ sin⁶(x/2) cos⁶(x/2) dx · Mathematics I, chapter 2 · asked 3×
- DUIS: ∫ dx/(a²sin²x+b²cos²x)² · Mathematics I, chapter 2 · asked 2×
- Beta-Gamma: ∫ sin⁴x cos²x dx = (3π−4)/192 · Mathematics I, chapter 2 · asked 2×
- Show ∫ x sin x/(1+cos²x) dx = π²/4 · Mathematics I, chapter 2
- Show ∫ x/(sin x+cos x) dx · Mathematics I, chapter 2
- Solve an integral equation · Mathematics III, chapter 4
- RK-4: dy/dx = (1+x²)y · Numerical Method, chapter 6
- Gauss 3-point: sin x³ + cos x² · Numerical Method, chapter 5 · asked 2×
- Change order of integration: cos y/√((a−x)(a−y)) · Mathematics, chapter 2