Solve 2nd Order Diff Eq: (-1/k^2)*(d^2y/dx^2)-y = (Q*c/P*L)*x

Click For Summary

Homework Help Overview

The discussion revolves around solving a second-order differential equation of the form (-1/k²)*(d²y/dx²) - y = (Q*c/P*L)*x, where Q, c, P, L, and k are constants. Participants explore the general solution and the process of deriving it, including the roles of complementary and particular solutions.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss rewriting the equation and separating it into complementary and particular solutions. Questions arise regarding the identification of roots and the use of auxiliary equations. Some express confusion about the steps needed to arrive at the general solution and the role of initial conditions.

Discussion Status

The discussion is ongoing, with participants providing guidance on the structure of the solution and the need for initial conditions. There is an acknowledgment of the complexity involved in solving the equation, and some participants are reviewing foundational concepts to better understand the problem.

Contextual Notes

Some participants mention a lack of recent experience with differential equations, indicating a need to revisit fundamental principles. There is also a reference to specific methods for solving second-order linear differential equations with constant coefficients.

lookAtree
Messages
3
Reaction score
0

Homework Statement


Hi everyone, I have the following differential equation that I am trying to solve:


(-1/k[itex]^{2}[/itex])*(d[itex]^{2}[/itex]y/dx[itex]^{2}[/itex]) - y = (Q*c/P*L)*x


Where Q,c,P,L, and k are constants. The solution ends up being:

y = A*cos(k*x) +B*sin(k*x) -(Q*c/P*L)*x

Where A and B are constants (of integration).

I want to say that there is complex roots involved but even with that I cannot accomplish the desired result.

I can't seem to figure out any uniting steps, any help would be appreciated.

Is there an identity being used?
 
Physics news on Phys.org
Rewrite the equation as

d^2y/dx^2 +k^2 y = (-k^2 Qc/PL)x

or d^2y/dx^2 +k^2 y = Kx


Now this is a 2nd order DE with constant coeffieicents, so your solution will be of the form y = yc + yp where yc is the complementary/homogenous solution and yp is your particular integral.

To get yc, you would solve

d^2y/dx^2 +k^2 y = 0

can you solve this using by forming your auxiliary equation?
 
lookAtree said:

Homework Statement


Hi everyone, I have the following differential equation that I am trying to solve:


(-1/k[itex]^{2}[/itex])*(d[itex]^{2}[/itex]y/dx[itex]^{2}[/itex]) - y = (Q*c/P*L)*x


Where Q,c,P,L, and k are constants. The solution ends up being:

y = A*cos(k*x) +B*sin(k*x) -(Q*c/P*L)*x

Where A and B are constants (of integration).

I want to say that there is complex roots involved but even with that I cannot accomplish the desired result.

I can't seem to figure out any uniting steps, any help would be appreciated.

Is there an identity being used?

y = A*cos(k*x) +B*sin(k*x) -(Q*c/P*L)*x is the general solution of your differential equation. What is your problem with it? You need some initial conditions to find the constants A and B, to fit it to some real situation.

ehild
 
ehild, I am trying to learn the steps to get to the solution "y = A*cos(k*x) +B*sin(k*x) -(Q*c/P*L)*x". I should have mentioned that I haven't had the need to do diff eq's in over 6 years and now I'm learning everything over again to understand a book I'm reading that utilizes equations like these.
rock.freak667, I separated the equation to a particular and general solution; y(x) = yc + yp.

So far I have:

a = -(Qc/Pl) b = -k^2

y'' = ax+by

Auxiliary eq: y'' = b*y

r^2 = b

r = sqrt(b)--> r = sqrt(-k^2) = k*i

Then, y = c1*e^(k*i*x) and since e^(i*A) = cos(A) + i*sin(A) we get

cos(kx)+i*sin(kx) --> A*cos(kx) + B*sin(kx), where B includes the imaginary number?

then do we go directly to the solution? Being:

y = A*sin(kx) +B*sin(kx) -(Qc/Pl)*x

and I have boundary conditions to solve this equation, but it's the process to get to that general solution which is giving me trouble.

Is there a step I'm missing or skipping? Thanks again for helping out.
 
Last edited:
lookAtree said:
rock.freak667, I separated the equation to a particular and general solution; y(x) = yc + yp.

Right, that's the first step.

lookAtree said:
So far I have:

a = -(Qc/Pl) b = -k^2

y'' = ax+by

I think a = -(Qck^2/PL)

lookAtree said:
Auxiliary eq: y'' = b*y

r^2 = b

r = sqrt(b)--> r = sqrt(-k^2) = k*i

Then, y = c1*e^(k*i*x) and since e^(i*A) = cos(A) + i*sin(A) we get

cos(kx)+i*sin(kx) --> A*cos(kx) + B*sin(kx), where B includes the imaginary number?

So in this step, once you see that you have complex roots in the form r = λ±μi (i is the imaginary unit), your 'yc' is

yc=eλx[Asin(μx)+Bcos(μx)]

lookAtree said:
then do we go directly to the solution? Being:

y = A*sin(kx) +B*sin(kx) -(Qc/Pl)*x

and I have boundary conditions to solve this equation, but it's the process to get to that general solution which is giving me trouble.

Is there a step I'm missing or skipping? Thanks again for helping out.

So far you've only found yc, you still need yp

The form of yp depends on the functions on the right side of the DE. Say for example, the right side was 'x2+x', then yp=Dx2+Ex+F (D-F are constants). So in your case, you have the a polynomial whose highest power is 1.

Can you guess what the form of yp would be for that? Once you get that, you will need to sub that back into the DE to get the constants for yp.


You can check here for more information on solving second order DE's
 
lookAtree said:
ehild, I am trying to learn the steps to get to the solution "y = A*cos(k*x) +B*sin(k*x) -(Q*c/P*L)*x". I should have mentioned that I haven't had the need to do diff eq's in over 6 years and now I'm learning everything over again to understand a book I'm reading that utilizes equations like these.
rock.freak667, I separated the equation to a particular and general solution; y(x) = yc + yp.

So far I have:

a = -(Qc/Pl) b = -k^2

y'' = ax+by
https://www.physicsforums.com/showthread.php?p=4055943#post4055943... but shouldn't that be: a=b(Qc/PL)? (ref: post #1) to get y''=ax+by ?


To understand the process of finding the general solution you need to review second order DEs.

Basically it boils down to a lot of guesswork - but we know, from historical attempts, some rules for how to make those guesses for specific classes of DE. ehild has been filling you in on those rules for the specific class where y''=ax+by (which is to say: 2nd order, linear, constant coefficients - polynomial in x on RHS).

The method is to solve y''=by to get part of the general solution - which you use to modify any single particular solution. Together they make the complete general solution.

I suspect you have become too rusty and seriously need to revise the basics.
The good news is that it is like falling off a bicycle.
 
rock.freak667 I am reviewing that website and will continue on this post once I have a better understanding of second order differential equations. Maybe I jumped in the deep end of the pool not ready for no solid ground to stand on. Simon, your suspicions are correct, I will refer back to these posts and show my progress to you all.
 
No worries - it's important to find these things out early.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 21 ·
Replies
21
Views
2K