Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6161 > unrolled thread

Re: Simple DSolve equation

Started byRui Rojo <rui.rojo@gmail.com>
First post2011-11-04 11:01 +0000
Last post2011-11-04 11:01 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Simple DSolve equation Rui Rojo <rui.rojo@gmail.com> - 2011-11-04 11:01 +0000

#6161 — Re: Simple DSolve equation

FromRui Rojo <rui.rojo@gmail.com>
Date2011-11-04 11:01 +0000
SubjectRe: Simple DSolve equation
Message-ID<j90glq$sgp$1@smc.vnet.net>
What I want to somehow get is the most general result with restrictions
over k. That is:

{y''[x] == k y[x], y[0] == 0, y[10] == 0} /. {
   y -> (Sin[2 Pi p/20 #] &),
   k -> -(1/100) p^2 \[Pi]^2 }
Out: {True, True, Sin[p \[Pi]] == 0}
Simplify[%, p \[Element] Integers]
{True, True, True}
...or any linear combination of those solutions. Typical 10m rope tied on
the extremes

2011/11/3 Bob Hanlon <hanlonr357@gmail.com>

> soln = DSolve[{y''[x] == k y[x], y[0] == y0, y[10] == y10}, y[x], x][[1,
> 1]]
>
> y[x] -> (E^(20*Sqrt[k])*y0 - E^(2*Sqrt[k]*x)*y0 - E^(10*Sqrt[k])*y10 +
>        E^(10*Sqrt[k] + 2*Sqrt[k]*x)*
>     y10)/(E^(Sqrt[k]*x)*(-1 + E^(20*Sqrt[k])))
>
> soln /. y0 -> 0 // Simplify
>
> y[x] -> ((-1 + E^(2*Sqrt[k]*x))*
>    y10)/(E^(Sqrt[k]*(-10 + x))*(-1 + E^(20*Sqrt[k])))
>
> soln /. y10 -> 0 // Simplify
>
> y[x] -> ((E^(20*Sqrt[k]) - E^(2*Sqrt[k]*x))*
>    y0)/(E^(Sqrt[k]*x)*(-1 + E^(20*Sqrt[k])))
>
> soln /. {y0 -> 0, y10 -> 0}
>
> y[x] -> 0
>
> What solution are you expecting?
>
>
> Bob Hanlon
>
>
> On Thu, Nov 3, 2011 at 4:46 AM, Rui <rui.rojo@gmail.com> wrote:
> > Why does something like this not give the correct answer with
> restrictions over k?
> > How would you go about getting the right general solutions in these kind
> of basic differential equations?
> >
> > Thanks
> >
> > DSolve[{y''[x] == k y[x], y[0] == 0, y[10] == 0}, y[x], x]
> > Out={{y[x] -> 0}}
> >
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web