- #1

- 42

- 0

## Homework Statement

y''+y=5cos(x)

## Homework Equations

y=Acos(x)+Bsin(x)

e^ix=cos(x)+isin(x)

## The Attempt at a Solution

I tried using compbinations of these equations to try and solve but i'm lost. Any suggestions would be greatly appreciated!

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter physicsnewb7
- Start date

- #1

- 42

- 0

y''+y=5cos(x)

y=Acos(x)+Bsin(x)

e^ix=cos(x)+isin(x)

I tried using compbinations of these equations to try and solve but i'm lost. Any suggestions would be greatly appreciated!

- #2

fzero

Science Advisor

Homework Helper

Gold Member

- 3,119

- 289

is the solution to the homogenous equation. The particular solution must be linearly independent from them. Try multiplying by some power of x to generate a guess for the particular solution.

- #3

- 42

- 0

try multiplying what by a power of x?

- #4

fzero

Science Advisor

Homework Helper

Gold Member

- 3,119

- 289

try multiplying what by a power of x?

The solutions to the homogeneous equation. Try A x

- #5

- 42

- 0

is y= -2.5xcos(x) right?

- #6

fzero

Science Advisor

Homework Helper

Gold Member

- 3,119

- 289

Recheck your algebra, the sin term is actually the particular solution.

- #7

- 42

- 0

- #8

fzero

Science Advisor

Homework Helper

Gold Member

- 3,119

- 289

You have a trig function on the RHS, so the particular solution must be related to a trig function. The sin and cos are already used in the solutions to the homogeneous equations, so the particular solution can't just be sin or cos. Hence you try powers of x times sin and cos. It's just a matter of substituting the guess into the equation and examining powers and coefficients. You could even guess that you should try x cos x and x sin x because there are no powers of x on the RHS.

- #9

- 42

- 0

Thank you very much you have been very helpful. I appreciate it

Share: