The particular problem I have in mind is the following:
[math]y''' - y'' + y' - y = cosx + 2e^x[/math]
I know the general way of solving non-homogenous differential equations of higher orders with constant coefficients.
First, we are supposed to define it's analogous homogenous equation, then it's characteristic equation based on its homogenous equation, in the following way:
[math]a^3 - a^2 + a - 1 = 0[/math]
Then, I find roots of this equation, which end up being a1 = 1, a2 = i and a3 = -i.
Based on this, I define the general solution of the homogenous equation, being the following:
[math]y = C_1e^x + C_2cosx + C_3sinx[/math]
with C_1, C_2 and C_3 being real numbers.
The functions preceded by the C constants I gathered from the rule of solving homogenous linear differential equations with constant coefficients. Basically, for a being a prime real root of the characteristic equation, the particular solution is in the form y = e^(ax). For complex roots in the form a = m + ni and a_1 = m - ni, the particular solutions are in the form y1 = e^(mx)cosnx, y2 = e^(mx)sinnx, y3 = xe^(mx)cosnx, y4 = xe^(mx)sinnx...... y(2k-1) = x^(k-1)e^(mx)cosnx, y2k = x^(k-1)e^(mx)sinnx. Then, I acquired the general solution by simply multiplying each particular solution with a C constant and getting a sum of them.
Then, I'm supposed to find F1(x) and F2(x) (and more if present) based on the terms on the right hand side of the non-homogenous starting equation that have the term e^(ax) within them (as far as I know).
So, in my particular problem, I have F1(x) = cosx, and F2(x) = 2e^x. (Correct me if I'm wrong)
Based on the rule for solving non-homogenous constant-coefficient DE, I determine a = 0, and b = 1 for the first equation, and s as the exponent on which to raise an x term in the upcoming solution to the particular equation number one. s ends up being the ''order'' of the root of the characteristic equation that equals the number which is not 0 ( so number b in this case, which is 1). One is the root of the first order of the characteristic equation, so s = 1. The equation into which I am putting a, b and s is the following:
[math]y_p = x^se^(ax)*(P(x)cosbx + Q(x)sinbx)[/math]
So, based on the preceding values of a, b and s, my y_p1 looks like the following:
[math]y_p1 = xcosx[/math]
For F2(x), I simply repeat the steps I followed for F1(x), and get that a = 1, b = 0, s = 1, and thus y_p2 ends up looking like this:
[math]y_p2 = 2xe^x[/math]
Thus, my particular solution for the non-homogenous equation ends up being the sum of y_p1 and y_p2, which is:
[math]y_p = xcosx + 2xe^x[/math]
The general solution of the non-homogenous is, by definition, just the sum of the particular solution of the non-homogenous differential equation and the general solution of the homogenous DE, so I won't write it, because the official solution agrees with my solution for the homogenous equation.
However, the official solution says the particular non-homogenous equation is the following:
[math]y_p = -xcosx/4 - xsinx/4 + xe^x[/math]
How did they get this?
DISCLAIMER: I do know that, in case I had a polynomial function as my Q_n(x) within my F_n(x), I would have to write it in the general way (if I had, for example F_1(x) = (24x^2 - 4)e^x, I would have a = 1, b = 0, and y_p1 = x^s * e*x(Ax^2 + Bx + C). However, I do not know how to write the ''general formula'' which to plug into the non-homogenous equation to get the coefficients I need when the function I have for Q(x) within F(x) is not polynomial. In my case, they're either a ''constant'' ( 2e^x, so Q(x) is just 2) or a trigonometric function (what's the general way to write cos(x) ??).
Thank you in advance.
[math]y''' - y'' + y' - y = cosx + 2e^x[/math]
I know the general way of solving non-homogenous differential equations of higher orders with constant coefficients.
First, we are supposed to define it's analogous homogenous equation, then it's characteristic equation based on its homogenous equation, in the following way:
[math]a^3 - a^2 + a - 1 = 0[/math]
Then, I find roots of this equation, which end up being a1 = 1, a2 = i and a3 = -i.
Based on this, I define the general solution of the homogenous equation, being the following:
[math]y = C_1e^x + C_2cosx + C_3sinx[/math]
with C_1, C_2 and C_3 being real numbers.
The functions preceded by the C constants I gathered from the rule of solving homogenous linear differential equations with constant coefficients. Basically, for a being a prime real root of the characteristic equation, the particular solution is in the form y = e^(ax). For complex roots in the form a = m + ni and a_1 = m - ni, the particular solutions are in the form y1 = e^(mx)cosnx, y2 = e^(mx)sinnx, y3 = xe^(mx)cosnx, y4 = xe^(mx)sinnx...... y(2k-1) = x^(k-1)e^(mx)cosnx, y2k = x^(k-1)e^(mx)sinnx. Then, I acquired the general solution by simply multiplying each particular solution with a C constant and getting a sum of them.
Then, I'm supposed to find F1(x) and F2(x) (and more if present) based on the terms on the right hand side of the non-homogenous starting equation that have the term e^(ax) within them (as far as I know).
So, in my particular problem, I have F1(x) = cosx, and F2(x) = 2e^x. (Correct me if I'm wrong)
Based on the rule for solving non-homogenous constant-coefficient DE, I determine a = 0, and b = 1 for the first equation, and s as the exponent on which to raise an x term in the upcoming solution to the particular equation number one. s ends up being the ''order'' of the root of the characteristic equation that equals the number which is not 0 ( so number b in this case, which is 1). One is the root of the first order of the characteristic equation, so s = 1. The equation into which I am putting a, b and s is the following:
[math]y_p = x^se^(ax)*(P(x)cosbx + Q(x)sinbx)[/math]
So, based on the preceding values of a, b and s, my y_p1 looks like the following:
[math]y_p1 = xcosx[/math]
For F2(x), I simply repeat the steps I followed for F1(x), and get that a = 1, b = 0, s = 1, and thus y_p2 ends up looking like this:
[math]y_p2 = 2xe^x[/math]
Thus, my particular solution for the non-homogenous equation ends up being the sum of y_p1 and y_p2, which is:
[math]y_p = xcosx + 2xe^x[/math]
The general solution of the non-homogenous is, by definition, just the sum of the particular solution of the non-homogenous differential equation and the general solution of the homogenous DE, so I won't write it, because the official solution agrees with my solution for the homogenous equation.
However, the official solution says the particular non-homogenous equation is the following:
[math]y_p = -xcosx/4 - xsinx/4 + xe^x[/math]
How did they get this?
DISCLAIMER: I do know that, in case I had a polynomial function as my Q_n(x) within my F_n(x), I would have to write it in the general way (if I had, for example F_1(x) = (24x^2 - 4)e^x, I would have a = 1, b = 0, and y_p1 = x^s * e*x(Ax^2 + Bx + C). However, I do not know how to write the ''general formula'' which to plug into the non-homogenous equation to get the coefficients I need when the function I have for Q(x) within F(x) is not polynomial. In my case, they're either a ''constant'' ( 2e^x, so Q(x) is just 2) or a trigonometric function (what's the general way to write cos(x) ??).
Thank you in advance.