- Feb 19, 2001
- 20,155
- 23
- 81
Originally posted by: DLeRium
y'' +2y = x
y(0) = 0, y(pi) = 0
Thanks!
Originally posted by: DLeRium
yup... ok so I got it I think.. you guess y = x/2
Originally posted by: DLeRium
yup thats correct.. it is nasty.. the answer freaked me out at first, but its not all THAT bad... -c2 = pi / (2* sin(root 2 * pi))
Originally posted by: DLeRium
y'' +2y = x
y(0) = 0, y(pi) = 0
Thanks!
Originally posted by: cirthix
Originally posted by: DLeRium
y'' +2y = x
y(0) = 0, y(pi) = 0
Thanks!
here's what i get:
try y=ax+b
substitung into original equation: 0+2ax+2b=x
a=1, b=0
PSDE: y=x/2
HDE: y''+2y=0
CP: r²+2
roots: 0+/- isqurt(2)
GSHDE: y=Ccos(sqrt2)x+Dsin(sqrt2)x
using the inital values, y(0)=Ccos(0)+Dsin(0)=0
and so, C+0D=0, c=0
GSHDE: y=Dsin(sqrt2)x
using the initial values, y(pi)=Dsin(sqrt2)pi=0
and so, D=0
Solution to the IVP: y=x/2
dam, i just noticed this doesnt hold true for the second initial condition, not sure where i wetnt wrong. hmm...
Originally posted by: chuckywang
Originally posted by: cirthix
Originally posted by: DLeRium
y'' +2y = x
y(0) = 0, y(pi) = 0
Thanks!
here's what i get:
try y=ax+b
substitung into original equation: 0+2ax+2b=x
a=1, b=0
PSDE: y=x/2
HDE: y''+2y=0
CP: r²+2
roots: 0+/- isqurt(2)
GSHDE: y=Ccos(sqrt2)x+Dsin(sqrt2)x
using the inital values, y(0)=Ccos(0)+Dsin(0)=0
and so, C+0D=0, c=0
GSHDE: y=Dsin(sqrt2)x
using the initial values, y(pi)=Dsin(sqrt2)pi=0
and so, D=0
Solution to the IVP: y=x/2
dam, i just noticed this doesnt hold true for the second initial condition, not sure where i wetnt wrong. hmm...
You went wrong cause you didn't include the particular solution when solving for the constants.