Finding the particular solution to an ODE with set boundary conditions.

5 replies · 6K views · last reply
Jack_O
Messages
64
Reaction score
0

Homework Statement



Three-part exercise: (a) find the general solution to d²x/dt² = -4x; (b) find the particular solution with x(0) = 1 and ẋ(0) = -2; (c) find the solution with x(0) = 0 and x(π/6) = 1.


Homework Equations



N/A

The Attempt at a Solution



Handwritten working on lined paper solving a second-order ODE: d2x/dt2 = -4x, with a crossed-out separation attempt, auxiliary equation m^2 + 4 = 0, general solution x = Ae^(2it) + Be^(-2it) with boundary values x = 1, t = 0, and dx/dt = -2 at t = 0.


The problem and attempt are as above, I'm not sure where to go from here though. I'm not sure what to do with the boundary condition of dx/dt=-2 and t=0.
Any help appreciated.
 
The answer to your auxiliary equation is wrong, m=+/- 2i not +/- 2 so the homogeneous solution is of the form [tex]x_{h}=C_{1}cos(2t)+C_{2}Sin(2t)[/tex]
 
Thanks for pointing that out, I've had another go and realized i needed to differentiate the general solution and then sub in the other boundaries to get the other simultaneous equation. My completed solution looks like this:

Handwritten working on lined paper solving a second-order ODE: part a) gives the auxiliary equation m^2 + 4 = 0 and the general solution x = Ae^(2it) + Be^(-2it); part b) applies x = 1, t = 0 and dx/dt = -2, t = 0 to find A and B and the particular solution x = 1/2[(1+i)e^(2it) + (1-i)e^(-2it)].


I have also done part c), got the answer x=(i/sqrt3)[-e^(2it)+e^(-2it)]
 
make your solution without complex coefficients so [tex]y_{h}=C_{1}sin2t+C_{2}cos2t[/tex]

then work out the result [tex]C_{1}sin0+C_{2}cos0=1[/tex]
[tex]C_{2}=1[/tex]

[tex]y_{h}'=2C_{1}cos2t-2C_{2}sin2t[/tex]

[tex]2C_{1}cos0-2C_{2}0=-2[/tex]

[tex]-2C_{1}-2=-2[/tex]

[tex]C_{1}=0[/tex]...
 
If i use Euler's formula to sub out e^(2it) for cos(2t)+i*sin(2t) won't i still be left with complex coefficients? Their are complex numbers in the (1+i) term. I don't see how i can cancel out all the complex numbers.