Solve DE: Find Solution for y Through (-1,-1)

  • Thread starter Thread starter ssb
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
ssb
Messages
119
Reaction score
0

Homework Statement



[tex]\frac{dy}{dt}=y\cos(t)[/tex]

Find the solution of the DE that passes through the point (-1, -1).

Homework Equations


The Attempt at a Solution



[tex]\frac{dy}{dt}=y\cos(t)[/tex]

[tex]\frac{1}{y}dy=cos(t)dt[/tex]

integrate both sides:

[tex]ln(y) = sin(t) + C[/tex]

Normally I would plug in -1 for y and t and solve for C but I can't take the LN of -1. When I try to isolate y first then plug in, I get the same problem with t. How can I solve this? I am stuck! Is it that the ln(y) is actually ln(|y|) ?
 
Physics news on Phys.org
You figured it out for yourself in the end:smile::

[tex]\int\frac{dy}{y}=\ln|y|[/tex]
 
Last edited:
You could do the absolute value, since ln(-y)'=ln(y)=1/y*y'. Or you could just exponentiate your solution to get y=exp(sin(t)+C)=D*exp(sin(t)). Now you can put D negative.