DE constant coefficients and boundary conditions

In summary: That's it. Good night and good luck. In summary, the solution to the equation v''- 4v'+5v=0, such that v=-1 and v'=1 when x=pi=3.14159 is v = e^(2x)(1/e^(2*pi)cos(x) - 1/e^(2*pi)sin(x)).
  • #1
AkilMAI
77
0

Homework Statement


Find the solution of the equation
v''- 4v'+5v=0,such that v=-1 and v'=1 when x=pi=3.14159

Homework Equations


...

The Attempt at a Solution


I treat it as a polynomial=>r^2+4r+5=0
=>delta=-4=>r1=2+2i and r2=2-2i
v=e^[x+2](A*cos[2]+B*i*sin[2])
v=-1=e^[pi+2](A*cos[2]+B*i*sin[2])
v'=0...so I"m stuck and I need some help
 
Physics news on Phys.org
  • #2
AkilMAI said:

Homework Statement


Find the solution of the equation
v''- 4v'+5v=0,such that v=-1 and v'=1 when x=pi=3.14159


Homework Equations


...



The Attempt at a Solution


I treat it as a polynomial=>r^2+4r+5=0
This is NOT the characteristic equation of the d.e. you posted. Look at your original problem again.

=>delta=-4=>r1=2+2i and r2=2-2i
v=e^[x+2](A*cos[2]+B*i*sin[2])
Not "cos(2)", cos(2x)!

v=-1=e^[pi+2](A*cos[2]+B*i*sin[2])
v'=0...so I"m stuck and I need some help
 
  • #3
yes you are right,now I get this system
e^[pi+2](A*cos[2x]+B*i*sin[2x])=-1
2e^[pi+2](B*i*cos[2x]-A*sin[2x])=1...how can I solve it?
 
  • #4
Doesn't look ok. You shouldn't have any x left in the 2 equations. You need to plug x=pi everywhere. That will simplify your system.
 
  • #5
ok...
e^[pi+2](A*cos[2pi]+B*i*sin[2x])=-1=>e^[pi+2]*B*i=-1
2e^[pi+2](B*i*cos[2pi]-A*sin[2x])=1.=>2e^[pi+2]*A=1
how can I find A and B?
 
  • #6
Well, the ODE is [itex] v''-4v'+5v =0 [/itex]. The general solution I found is

[tex] v(x)= Ae^{(2+i)x} + Be^{(2-i)x} [/tex]

Now you'll get 2 equations from

[tex] v(\pi) = -1 [/tex]
[tex] v'(\pi) = 1 [/tex]

Can you spell them out again ?
 
  • #7
A*e^((i+2)pi)+B*e^((i+2)pi)=-1
A*(i+2)*e^((i+2)pi)+B*(i-2)*e^(-(i-2)pi)=1...?
 
  • #8
AkilMAI said:
A*e^((i+2)pi)+B*e^((i+2)pi)=-1
A*(i+2)*e^((i+2)pi)+B*(i-2)*e^(-(i-2)pi)=1...?

This is getting to be a mess. Let's start over again. The equation is v''- 4v'+5v=0, right? What are the roots of the associated quadratic?
 
  • #9
2+2i and 2-2i
 
  • #10
sorry 2+i and 2-i
 
  • #11
AkilMAI said:
2+2i and 2-2i

That's your first problem. The imaginary part of those is wrong. How did you get it?
 
  • #12
no,It is 2-i and 2+i...I calculated delta=-4=>r1=2-i and r2=2+i
 
  • #13
Ok, and can you write, for example, A*exp((2-i)*x) in terms of the trig functions?
 
Last edited:
  • #14
as in, e ^(2*x)*(P*cos( x) + Q*sin( x)),where P = A+B and Q = i(A−B)?
 
  • #15
AkilMAI said:
as in, e ^(2*x)*(P*cos( x) + Q*sin( x)),where P = A+B and Q = i(A−B)?

Yes, that's what I meant. So v=e ^(2*x)*(P*cos( x) + Q*sin( x)). Now you just have to put in your boundary conditions and find P and Q.
 
Last edited:
  • #16
ok,I'll reply with a result in 5 min
 
  • #17
e ^(2*pi)*(P*cos( pi) + Q*sin( pi))=-1=>e ^(2*pi)*(-P)=-1
e ^(2*pi)*((2P+Q)*cos( pi) -(P- 2Q)*sin( pi))=1 =>e ^(2*pi)*(-(2P+Q))=1...multiplying ome of the wtih -1 is not going to help me solve the system
 
  • #18
AkilMAI said:
e ^(2*pi)*(P*cos( pi) + Q*sin( pi))=-1=>e ^(2*pi)*(-P)=-1
e ^(2*pi)*((2P+Q)*cos( pi) -(P- 2Q)*sin( pi))=1 =>e ^(2*pi)*(-(2P+Q))=1...multiplying ome of the wtih -1 is not going to help me solve the system

Your first equation tells you what P is. Put that into the second equation.
 
  • #19
if P=-1/e ^(2*pi)=>Q=1
 
  • #20
AkilMAI said:
if P=-1/e ^(2*pi)=>Q=1

You are being sloppy. What's P? You've got a sign wrong. And Q is way wrong. How did you do that?
 
  • #21
I know I'm sloppy,is because I'm tired...P=1/e ^(2*pi)=>-e ^(2*pi)*((2/e ^(2*pi))+Q)=1
 
  • #22
=>Q=1/e ^(2*pi)-2/e ^(2*pi)
 
  • #23
AkilMAI said:
=>Q=1/e ^(2*pi)-2/e ^(2*pi)

Take a rest. You are missing a sign again. Q=-1/e ^(2*pi)-2/e ^(2*pi). Note the first minus.
 
  • #24
I will,but first this...so these are P and Q...I plug them into e ^(2*x)*(P*cos( x) + Q*sin( x))...and the result is the solution of the equation.
 
  • #25
I hope I'm not missing something
 
  • #26
AkilMAI said:
I will,but first this...so these are P and Q...I plug them into e ^(2*x)*(P*cos( x) + Q*sin( x))...and the result is the solution of the equation.

Sure.
 

FAQ: DE constant coefficients and boundary conditions

What are constant coefficients in differential equations?

Constant coefficients refer to the numerical constants that appear in front of the variables in a differential equation. These coefficients do not change with respect to the independent variable, and are often denoted by letters such as a, b, or c.

How do constant coefficients affect the solution of a differential equation?

The values of the constant coefficients can greatly impact the behavior and characteristics of the solution to a differential equation. For example, they can determine whether the solution is stable or unstable, and can also affect the shape and direction of the solution curve.

What are boundary conditions in differential equations?

Boundary conditions are additional information or constraints that are given along with a differential equation. These conditions specify the behavior of the solution at certain points, such as the boundary of a domain or at a critical point.

Why are boundary conditions important in solving differential equations?

Boundary conditions are crucial in solving differential equations because they help to determine the specific solution that satisfies both the differential equation and the given constraints. Without boundary conditions, there could be an infinite number of solutions that satisfy the differential equation.

How can constant coefficients and boundary conditions be used to solve differential equations?

By considering the constant coefficients and boundary conditions, one can use various methods and techniques to find the exact solution to a differential equation. These methods may include separation of variables, substitution, or using specific formulas for different types of differential equations.

Back
Top