Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to solve this equation?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72195] Re: How to solve this equation?
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Thu, 14 Dec 2006 05:49:10 -0500 (EST)
  • References: <eloqvd$o2j$1@smc.vnet.net>

This does what you want.

DSolve[{Derivative[1][y][x] + y[x]*Tan[x] == Sin[2*x], y[0] == 2}, y[x], x]

{{y[x] -> -2*(-2*Cos[x] + Cos[x]^2)}}

Steve Luttrell
West Malvern, UK

"learner" <freephys at gmail.com> wrote in message 
news:eloqvd$o2j$1 at smc.vnet.net...
> hi,
> I am trying to solve  y'+y tanx=sin(2x)
>
> i wrote NSolve[{Derivative[1][y][x]+y Tan[x]==Sin[2x]},y,x] but get
> something like
>
> {{y->cot[x](sin[2x]-y`[x]}}
>
> I want to set a restraint to say y=2 when x=0, how shoud i do it?
>
> many thanks!!!
> 



  • Prev by Date: Re: Arrange cells side by side
  • Next by Date: Combining ListPlot3D with Show[]
  • Previous by thread: Re: How to solve this equation?
  • Next by thread: Re: How to solve this equation?