What I've tried:

I have the inhomogeneous differential equation:


I find the particular solution to be on the form $$kt$$

by inserting the particular solution in the equation


and isolating for k, I get that:


and therefore the particular solution is


I also need the general solution for the homogenous equation


by finding the roots of the characteristic polynomial

$$z^2+7z=z(z+7)=0$$ $$z_1=0$$ $$z_2=-7$$

I get the general solution:


Now, according to my textbook, the general solution of an inhomogeneous differential equation is given by


Where $y_p(t)$ is the particular solution and $y_{hom}(t)$ is the general solution to the homogenous equation. Therefore I get the general solution to be


This is not consistent with Maple's result however

enter image description here

Can anyone see where I've gone wrong?


You have not gone wrong anywhere! It is just a question concerning the choice of the arbitrary constants $c_1,c_2$ and $C_1,C_2$ respectively. Therefore lets just take a brief look at the two given solutions

$$\begin{align} y_1(t)&=c_1+c_2e^{-7t}-2t\\ y_2(t)&=C_2+\frac{-C_1}{7}e^{-7t}-2t \end{align}$$

We can agree one the fact that the particular solution $-2t$ is the same in both $y_1(t)$ and $y_2(t)$. Therefore we do not have to worry about this term further. Now we can argue that $c_1=C_2$ since these are both arbitrary constants which have to be defined later one. Following a similiar agrumentation we can moreover say that $c_2=\frac{-C_1}{7}$ hence there is no restriction regarding their value.

Therefore Maple aswell as you by yourself provided the exact same solution beside the choice of some arbitrary constants.

  • $\begingroup$ Thanks, that makes sense! $\endgroup$ – Boris Grunwald Nov 19 '18 at 21:46

You went wrong when you thought what Maple wrote is different from your solution in any significant way.

Maple has swapped the roles of $c_1$ and $c_2$ compared to you. And Maple's $c_1$ is seven times larger than your $c_2$ and has opposite sign, but since the constants are arbitrary anyways this doesn't matter. So you and Maple describe the exact same collection of functions.


As others said, your solution is right (only the expressions of the constant differ). Here is how I would solve.

First notice that $y$ is missing, and solve for $z:=y'$:


An obvious particular solution is the constant $z=-2$. Then with the characteristic polynomial $p+7$, you can immediately write the general solution,


Now to get $y$, you integrate once, and obtain



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.