- #1

- 47

- 0

## Homework Statement

This is NOT a homework problem, but it is similar. Anyway, let's say we have:

y''+3y' = 2t^4

This is easy to solve by hand. For the particular solution you get:

Yp = At+Bt^2+Ct^3+Dt^4+Et^5

Now, to solve for the coefficients, you can solve them by hand, or you can use some sort of program. Myself, I tried using matlab but could not get it to work. So I am hoping someone with matlab experience can help me, since I do not want to do all this mundane work by hand!

## Homework Equations

You have to take the derivative (1st and second) of Yp and then plug back into the original equation, then equate coefficients. Although it can be done by hand, surely there has to be a better way to do this with Mathematica or matlab?

## The Attempt at a Solution

I tried using matlab, as I said, but could not get it to work. If someone has an idea, or wants to see my matlab code (which is only 4-5 lines) I would be happy to send it. Otherwise, if someone can help with either matlab or mathematica, please let me know. Thanks.