Solving Differential Equation: dy/dx = e^x + y

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
wezzo62
Messages
6
Reaction score
0
Find the general solution to:
dy/dx = ex+y

Im not sure if I am doing this right or not. i tried saying ex+y = ex x ey and using partial differentiation to solve it but keep getting the same as the question: ex+y
i know differentiating ex gives ex so is it the same in this case?
 
Last edited:
Physics news on Phys.org
Why should you use partial differentiation??

You are given a separable differential equation,
[tex]\frac{dy}{dx}=e^{x}*e^{y}[/tex], or:
[tex]e^{-y}dy=e^{x}dx[/tex]
Thus, you have, by integration:
[tex]-e^{-y}=e^{x}+C[/tex], where C is a constant of integration.
We now rewrite this as:
[tex]e^{-y}=B-e^{x},B=-C[/tex]
Taking the natural logarithm at both sides yields:
[tex]-y=\ln(B-e^{x})[/tex]
That is:
[tex]y(x)=-\ln(B-e^{x})[/tex]
 
welcome to pf!

hi wezzo62! welcome to pf! :smile:
wezzo62 said:
… i tried saying ex+y = ex + ey

no, ex+y = ex times ey :wink:

try again! :smile:
 


tiny-tim said:
hi wezzo62! welcome to pf! :smile:


no, ex+y = ex times ey :wink:

try again! :smile:

typo, i meant and was writing time not plus