Differential equations particular solution

In summary: Insights on solving nonhomogeneous DEs.The Attempt at a SolutionThis makes no sense to me, why do I have to use the solution of the formy(t) = cxe^(2x)This is because y = ke^(2x) is a solution to the homogeneous equation y'' - y' - 2y = 0.A basis for the solution space of y'' - y' - 2y = 0 is the set {e^(-x}, e^(2x)}. This means that all possible solutions of the homogeneous equation are represented by y = Ae^(-x) + Be^(2x), with A and
  • #1
faradayscat
57
8

Homework Statement


Particular solution of

y" - y' - 2y = e^(2x)

Homework Equations


None

The Attempt at a Solution


This makes no sense to me, why do I have to use the solution of the form

y(t) = cxe^(2x)

For the problem above, but when I switch the signs and it becomes

y" - y' + 2y = e^(2x) (notice the +2 in front of y)

The solution becomes y(t) = ce^(2x)

I get that it WORKS, but why? Am I seriously supposed to remember hundreds of forms for solutions when I solve these types of DE's or do I solve these with trial and error? It's ridiculously tedious trying several different forms just to realize it doesn't work at the end.
 
Physics news on Phys.org
  • #2
faradayscat said:

Homework Statement


Particular solution of

y" - y' - 2y = e^(2x)

Homework Equations


None

The Attempt at a Solution


This makes no sense to me, why do I have to use the solution of the form

y(t) = cxe^(2x)
Because y = ke^(2x) is a solution to the homogeneous equation y'' - y' - 2y = 0.
A basis for the solution space of y'' - y' - 2y = 0 is the set {e^(-x}, e^(2x)}. This means that all possible solutions of the homogeneous equation are represented by y = Ae^(-x) + Be^(2x), with A and B arbitrary constants.

For the nonhomogeneous equation, y'' - y' - 2y = e^(2x), there is no possible multiple of e^(2x) that will leave you with e^(2x) on the right side, since e^(2x) is a solution of the homogeneous equation.

What works in cases like this is to look for a solution of the form y = Kxe^(2x).
faradayscat said:
For the problem above, but when I switch the signs and it becomes

y" - y' + 2y = e^(2x) (notice the +2 in front of y)

The solution becomes y(t) = ce^(2x)

I get that it WORKS, but why?
It works because you now have a different differential equation. e^(2x) is no longer a solution of the homogeneous equation
faradayscat said:
Am I seriously supposed to remember hundreds of forms for solutions when I solve these types of DE's or do I solve these with trial and error? It's ridiculously tedious trying several different forms just to realize it doesn't work at the end.
I wrote a couple of Insights articles about how to solve nonhomogeneous DEs. The titles are Solving Nonhomogeneous ODEs Using Annihilators. There's a Part 1 and a Part 2.
 
  • Like
Likes faradayscat
  • #3
If you were to solve the homogeneous problem:
##y'' - y' - 2y = 0##, you would solve the polynomial equation ##z^2 -z -2 =0## and get ##(z-2)(z+1) = 0## or ##z = 2, -1##.
This would lead you to a solution like:
## y(x) = ce^{2x} + de^{-x}##
Now, since your particular solution need to solve:
##y'' - y' - 2y = e^{2x}##
As Mark mentioned, your right hand side is a solution to the homogeneous DE, there is a lot of good theory about null spaces and basis sets to be discussed in other places.
For a less rigorous approach, you can do the following:
Assume that ## y = f(x) e^{2x}##
Applying the DE:
##f''(x)e^{2x} +4f'(x) e^{2x} + 4f(x)e^{2x} -2f(x) e^{2x} - f'(x) e^{2x} - 2f(x)e^{2x} = e^{2x}\\
f''(x) + 3f'(x) =1 ##
The simplest solution to this is of the form ##f(x) = cx.##

In the case of ##y'' - y' + 2y = e^{2x}##, you might assume the same form:
##y(x) = g(x) e^{2x} ##
Applying the DE:
##g''(x)e^{2x} +4g'(x) e^{2x} + 4g(x)e^{2x} -2g(x) e^{2x} - g'(x) e^{2x} + 2g(x)e^{2x} = e^{2x}\\
g''(x) + 3g'(x) +4g(x)=1 ##
The simplest solution to this is of the form ##g(x) = c.##
 
  • Like
Likes faradayscat
  • #4
Preliminary: you have seen something like that in the case of homogeneous lde's? When you have an eigenvalue equation with a double root?

The following is not the way, but it is certainly a way that has a certain rationale to not be too subject to the criticism "something you have to remember".

When I see something like that with an exponential on the RHS I think if I differentiate that I will again get an exponential on the RHS with the same coefficient of x, so I will be able to eliminate between two equations and get a linear homogeneous one, which I have learned to solve. If I do that I get in fact:

y''' -3y'' + 4y = 0

To see how to 'factorise the operator', think of something maybe more familiar, the algebraic equation

x3 - 3x2 + 4 = 0

You can see in various ways how to factorise this. E.g. the coefficients are simple numbers, and you see substituting x = -1, that it is a solution. You soon get I think

(x + 1)(x - 2)2 is the factorised form of the LHS of this cubic.

So the homogeneous d.e. is

(D + 1)(D - 2)2y = 0

And maybe you have recently or at some time studied and forgotten how to solve homogeneous lde's like that and can remind yourself. This is giving you the general solution of the whole d.e. btw, not just the complementary function or particular integral.

The advantage IMHO is it easier to hit on when you have forgotten what you're supposed to do.
 
Last edited:
  • Like
Likes faradayscat and RUber
  • #5
Mark44 said:
Because y = ke^(2x) is a solution to the homogeneous equation y'' - y' - 2y = 0.
A basis for the solution space of y'' - y' - 2y = 0 is the set {e^(-x}, e^(2x)}. This means that all possible solutions of the homogeneous equation are represented by y = Ae^(-x) + Be^(2x), with A and B arbitrary constants.

For the nonhomogeneous equation, y'' - y' - 2y = e^(2x), there is no possible multiple of e^(2x) that will leave you with e^(2x) on the right side, since e^(2x) is a solution of the homogeneous equation.

What works in cases like this is to look for a solution of the form y = Kxe^(2x).
It works because you now have a different differential equation. e^(2x) is no longer a solution of the homogeneous equation

I wrote a couple of Insights articles about how to solve nonhomogeneous DEs. The titles are Solving Nonhomogeneous ODEs Using Annihilators. There's a Part 1 and a Part 2.

RUber said:
If you were to solve the homogeneous problem:
##y'' - y' - 2y = 0##, you would solve the polynomial equation ##z^2 -z -2 =0## and get ##(z-2)(z+1) = 0## or ##z = 2, -1##.
This would lead you to a solution like:
## y(x) = ce^{2x} + de^{-x}##
Now, since your particular solution need to solve:
##y'' - y' - 2y = e^{2x}##
As Mark mentioned, your right hand side is a solution to the homogeneous DE, there is a lot of good theory about null spaces and basis sets to be discussed in other places.
For a less rigorous approach, you can do the following:
Assume that ## y = f(x) e^{2x}##
Applying the DE:
##f''(x)e^{2x} +4f'(x) e^{2x} + 4f(x)e^{2x} -2f(x) e^{2x} - f'(x) e^{2x} - 2f(x)e^{2x} = e^{2x}\\
f''(x) + 3f'(x) =1 ##
The simplest solution to this is of the form ##f(x) = cx.##

In the case of ##y'' - y' + 2y = e^{2x}##, you might assume the same form:
##y(x) = g(x) e^{2x} ##
Applying the DE:
##g''(x)e^{2x} +4g'(x) e^{2x} + 4g(x)e^{2x} -2g(x) e^{2x} - g'(x) e^{2x} + 2g(x)e^{2x} = e^{2x}\\
g''(x) + 3g'(x) +4g(x)=1 ##
The simplest solution to this is of the form ##g(x) = c.##

epenguin said:
Preliminary: you have seen something like that in the case of homogeneous lde's? When you have an eigenvalue equation with a double root?

The following is not the way, but it is certainly a way that has a certain rationale to not be too subject to the criticism "something you have to remember".

When I see something like that with an exponential on the RHS I think if I differentiate that I will again get an exponential on the RHS with the same coefficient of x, so I will be able to eliminate between two equations and get a linear homogeneous one, which I have learned to solve. If I do that I get in fact:

y''' -3y'' + 4y = 0

To see how to 'factorise the operator', think of something maybe more familiar, the algebraic equation

x3 - 3x2 + 4 = 0

You can see in various ways how to factorise this. E.g. the coefficients are simple numbers, and you see substituting x = -1, that it is a solution. You soon get I think

(x + 1)(x - 2)2 is the factorised form of the LHS of this cubic.

So the homogeneous d.e. is

(D + 1)(D - 2)2y = 0

And maybe you have recently or at some time studied and forgotten how to solve homogeneous lde's like that and can remind yourself. This is giving you the general solution of the whole d.e. btw, not just the complementary function or particular integral.

The advantage IMHO is it easier to hit on when you have forgotten what you're supposed to do.

Thank you so much, I did not realize that e^(2x) was a solution to the homogenous equation.. I probably should have solved the homogeneous case first to check.
 
  • #6
faradayscat said:
Thank you so much, I did not realize that e^(2x) was a solution to the homogenous equation.. I probably should have solved the homogeneous case first to check.

More than "probably". That should always be the first step.
 
  • Like
Likes vela
  • #7
LCKurtz said:
More than "probably". That should always be the first step.

You are right. I have just started solving these types of DE's, thanks for the tips.
 

Related to Differential equations particular solution

1. What is a particular solution in differential equations?

A particular solution in differential equations is a specific function that satisfies the given differential equation and its initial or boundary conditions. It is a solution that is unique to the specific conditions of the problem.

2. How is a particular solution different from a general solution?

A general solution is a family of solutions that satisfy a differential equation, while a particular solution is a specific member of that family that satisfies the initial or boundary conditions of the problem. In other words, a general solution includes all possible solutions, while a particular solution is a single, unique solution.

3. Can a differential equation have more than one particular solution?

Yes, a differential equation can have multiple particular solutions. This is because the initial or boundary conditions may allow for more than one function to satisfy the differential equation. However, there is always a unique general solution that includes all possible particular solutions.

4. How do you find a particular solution of a differential equation?

To find a particular solution of a differential equation, you need to use the given initial or boundary conditions to determine the specific values of any arbitrary constants in the general solution. This will give you a specific function that satisfies both the differential equation and the given conditions.

5. Is a particular solution always the best solution for a differential equation?

No, a particular solution may not always be the best solution for a differential equation. It is just one possible solution that satisfies the given conditions. There may be other solutions that also satisfy the differential equation, but do not satisfy the given conditions. It is important to carefully consider the problem and the given conditions when determining the best solution for a differential equation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
735
  • Calculus and Beyond Homework Help
Replies
7
Views
564
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
327
  • Calculus and Beyond Homework Help
Replies
1
Views
255
  • Calculus and Beyond Homework Help
Replies
2
Views
387
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
341
  • Calculus and Beyond Homework Help
Replies
2
Views
328
Back
Top