Solving a linear differential equation with constant coefficients

Magnetons
Messages
22
Reaction score
3
Mentor note: Moved from a technical math section, so missing the template.
TL;DR Summary:
I'm trying to solve the differential equations (D^2
-4D + 3 )y = 2xexp(3x) + 3exp(x)Cos2x

17368548071261076612500810769027.jpg

On this page , I've solve particular integral by 2 ways, 1st is above the line in which ( see 7th equality from top ) firstly I've done the expansion and operate on x and then integrate ..

Below the line I do integration first and then done the expansion .
The answer is different by both ways.

Can someone tell me where I'm doing mistake?
 

Attachments

  • 17368547572525911660487752301438.jpg
    17368547572525911660487752301438.jpg
    61.8 KB · Views: 52
Last edited by a moderator:
Physics news on Phys.org
Have you checked that both solutions fit the DE?

If one doesn't then you know where your mistake lies.
 
is there is any rule that we can't integrate first ..
 
Magnetons said:
is there is any rule that we can't integrate first ..
I taught differential equations a number of times, but out of the several textbooks we used, I never saw any technique like the one you used. In any case, it seems to me that you have an error in your work. In the first line you have a denominator of ##D^2 - 4D + 3##. A couple lines later that changed to ##D^2 + 2D##. Obviously those are different, and you can't get from the first expression to the latter one. Also, you seem to have ignored the fact that one of the terms in your nonhomogeneous equation is ##3e^x\cos(2x)##.

The usual technique is to find solutions to the homogeneous equation, which would be ##(D^2 - 4D + 3)y = 0##. This factors to ##(D - 3)(D - 1)y = 0##, so a pair of solutions would be ##y_1 = e^{3x}## and ##y_2 = e^x##.

Once you have found a set of solutions to the homogeneous problem, you can tackle the nonhomogeneous problem. One technique is the method of annihilators, which can be used to determine solutions to your nonhomogeneous problem. As an alternative, you could try Laplace Transforms.
 
As we can see the non homogeneous part is in the form of e^(ax).V( x) in our case v is a polynomial 2x .
In this case we change f(D) in the denominator to f(D+a) and then only operate it with polynomial and leave the e^ax.
 
Mark44 said:
I taught differential equations a number of times, but out of the several textbooks we used, I never saw any technique like the one you used. In any case, it seems to me that you have an error in your work. In the first line you have a denominator of ##D^2 - 4D + 3##. A couple lines later that changed to ##D^2 + 2D##. Obviously those are different, and you can't get from the first expression to the latter one. Also, you seem to have ignored the fact that one of the terms in your nonhomogeneous equation is ##3e^x\cos(2x)##.

The usual technique is to find solutions to the homogeneous equation, which would be ##(D^2 - 4D + 3)y = 0##. This factors to ##(D - 3)(D - 1)y = 0##, so a pair of solutions would be ##y_1 = e^{3x}## and ##y_2 = e^x##.

Once you have found a set of solutions to the homogeneous problem, you can tackle the nonhomogeneous problem. One technique is the method of annihilators, which can be used to determine solutions to your nonhomogeneous problem. As an alternative, you could try Laplace Transforms.
Although Annihilator approach is nice.
I would tackle the particular solution using UC method [undetermined coefficients].

Although the Annihilator method is typically faster IRC.

OP. Have you taken linear algebra, and aware of linear independence? It cuts the works when using UC method.
 
Magnetons said:
As we can see the non homogeneous part is in the form of e^(ax).V( x) in our case v is a polynomial 2x .
No, that isn't true. The right side is ##2xe^{3x} + 3e^x \cos(2x)##. This is not something of the form ##e^{ax}## times a polynomial.
Magnetons said:
In this case we change f(D) in the denominator to f(D+a) and then only operate it with polynomial and leave the e^ax.
I have no idea what you're doing here. Note also that I pointed out at least two of your mistakes, neither of which you seem to have addressed.
 
Mark44 said:
No, that isn't true. The right side is ##2xe^{3x} + 3e^x \cos(2x)##. This is not something of the form ##e^{ax}## times a polynomial.

I have no idea what you're doing here. Note also that I pointed out at least two of your mistakes, neither of which you seem to have addressed.
IMG_20250115_115028.jpg

I'm applying this rule on my first partial integral..

Yes, I've addressed the mistakes that's why I'm trying to expalining what I'm doing in solution .
 
Last edited:
Magnetons said:
Yes, I've addressed the mistakes that's why I'm trying to expalining what I'm doing in solution .
I don't see anything you've written that addresses the mistakes I pointed out in post #4. All I've seen is a theorem you're using in your work. This theorem seems to be an application of the Laplace method for solving differential equations.
 
  • #10
Magnetons said:
Below the line I do integration first and then done the expansion .
The answer is different by both ways.
It's hard to read your scribbling, but it seems like the difference between the two results is just a multiple of ##e^{3x}##. If you plug that into the original differential equation, you'll see it vanishes because ##e^{3x}## is part of the homogeneous solution.

Mark44 said:
No, that isn't true. The right side is 2xe3x+3excos⁡(2x). This is not something of the form eax times a polynomial.
The OP is using the principle of superposition and solving for the contribution from each term separately.
 
Back
Top