Simple Differential Equation Help | Solving y'[x] = xy | e^x Solution Explained

In summary, the solution to the differential equation y '[x] = xy with the initial condition y[0] = 1 is y = e^(x^2/2).
  • #1
boomer22
6
0

Homework Statement


y ' [x] = xy
y[0] = 1


Homework Equations


none


The Attempt at a Solution



I posted this somewhere else and 2 people got the answer is y = e^x

I am getting something else though.

I get up to here:

dy/dx = xy

1/y dy = x dx

ln y = (x^2)/2 + C

that is what i get to, but here is what the other person got from this point:

y = e^[ (x^2/2) + C ] (Im not confused on e^ln^y = y fyi)

then he simplified that to:

y = Ce^x (I DONT understand that property of natural logs)

1 = C * e^0

C = 0

y = e^x

anyone care to explain? don't worry if you know a better way and start from scratch, ignore mine and this other guys answer if you want.
 
Physics news on Phys.org
  • #2
boomer22 said:

Homework Statement


y ' [x] = xy
y[0] = 1


Homework Equations


none


The Attempt at a Solution



I posted this somewhere else and 2 people got the answer is y = e^x

I am getting something else though.

I get up to here:

dy/dx = xy

1/y dy = x dx

ln y = (x^2)/2 + C

Yup, so far, so good. :wink:

that is what i get to, but here is what the other person got from this point:

y = e^[ (x^2/2) + C ] (Im not confused on e^ln^y = y fyi)

Yup, this is correct. Can you get this step? We have:

[tex]\ln y = x \Rightarrow e ^ {\ln y} = e ^ x \Rightarrow y = e ^ x[/tex]

then he simplified that to:

y = Ce^x (I DONT understand that property of natural logs)

1 = C * e^0

C = 0

y = e^x

anyone care to explain? don't worry if you know a better way and start from scratch, ignore mine and this other guys answer if you want.

Nope, this is wrong. You can simply check it by differentiate y with respect to x. If y = ex, then, y' = ex = y, not xy.

Here's some properties of exponential that you should remember:
(1). [tex]\alpha ^ {\beta + \gamma} = \alpha ^ \beta \times \alpha ^ \gamma[/tex]

(2).[tex]\alpha ^ {\beta - \gamma} = \frac {\alpha ^ \beta}{\alpha ^ \gamma}[/tex]

(3).[tex]\alpha ^ {-\gamma} = \alpha ^ {0 - \gamma} = \frac{\alpha ^ 0}{\alpha ^ \gamma} = \frac{1}{\alpha ^ \gamma}[/tex]

(4).[tex]\alpha ^ {\beta \times \gamma} = \left( \alpha ^ \beta \right) ^ \gamma[/tex]

(5).[tex]\alpha ^ {\frac{\beta}{\gamma}} = \sqrt[\gamma]{\alpha ^ \beta}[/tex]

Back to your problem:

[tex]y = e ^ {\frac{x ^ 2}{2} + C}[/tex]

Using (1), we have:

[tex]\Rightarrow y = e ^ C \times e ^ {\frac{x ^ 2}{2}}[/tex] since C is a constant, we have eC is also a constant, we denote it D, we have:

[tex]\Rightarrow y = D \times e ^ {\frac{x ^ 2}{2}}[/tex]

Can you go from here? Can you find D? :)
 
Last edited by a moderator:
  • #3
haha no, i can't actually. please continue.
 
  • #4
Use the condition y(0) = 1 to find D.
 
  • #5
ok, D = 0 then
 
  • #6
boomer22 said:
ok, D = 0 then

No, because that forces y=0 for all x, which certainly does not satisfy y(0)=1.
 
  • #7
In [tex]y= De^{\frac{x^2}{2}}[/tex], replace y with 1, replace x with 0, and solve for D.
 
  • #8
boomer22 said:

Homework Statement


y ' [x] = xy
y[0] = 1


Homework Equations


none


The Attempt at a Solution



I posted this somewhere else and 2 people got the answer is y = e^x

I am getting something else though.

I get up to here:

dy/dx = xy

1/y dy = x dx

ln y = (x^2)/2 + C

that is what i get to, but here is what the other person got from this point:

y = e^[ (x^2/2) + C ] (Im not confused on e^ln^y = y fyi)

then he simplified that to:

y = Ce^x (I DONT understand that property of natural logs)

1 = C * e^0

C = 0

y = e^x

anyone care to explain? don't worry if you know a better way and start from scratch, ignore mine and this other guys answer if you want.

Just so you don't get thrown off

y = e^[ (x^2/2) + C ]

does not simplify down to

y = Ce^x (What happened to the x^2 then?)
 
  • #9
l46kok said:
Just so you don't get thrown off

y = e^[ (x^2/2) + C ]

does not simplify down to

y = Ce^x (What happened to the x^2 then?)

Yes, that was pointed out before.
[tex]y= e^{\frac{x^2}{2}+ C[/tex]
does simplify to
[tex]y= Ce^{\frac{x^2}{2}[/tex]
But this new "C" is not the same as the previous "C"!

Now if y= 1 when x= 0, that becomes
[tex]y= 1= Ce^{0}[/itex]
Solve that for C.
 
  • #10
ok, C = 1 then

what is next?
 
  • #11
plug in C=1 into y=Ce^[(x^2)/2]

and you'll get your final answer
 

Related to Simple Differential Equation Help | Solving y'[x] = xy | e^x Solution Explained

1. What is a simple differential equation?

A simple differential equation is an equation that relates a function and its derivatives. It often involves only one independent variable and one dependent variable.

2. How do you solve a simple differential equation?

To solve a simple differential equation, you need to find the function that satisfies the equation. This can be done by finding the antiderivative of the expression on one side of the equation and then solving for the constant of integration using initial conditions or boundary conditions.

3. What is meant by y'[x] = xy?

The notation y'[x] represents the derivative of the function y with respect to the independent variable x. This equation means that the rate of change of y with respect to x is equal to the product of x and y.

4. How do you use e^x to solve a simple differential equation?

When the expression on the right side of the simple differential equation is in the form of e^x, you can use the method of separation of variables to solve the equation. This involves isolating the variables on each side of the equation and then integrating both sides.

5. Can you explain the steps to solve y'[x] = xy using e^x?

First, we can rearrange the equation to be in the form y'[x]/y = x. Then, we can integrate both sides with respect to x, giving us ln|y| = x^2/2 + C. Using the initial condition y(0) = 1, we can solve for C, giving us the solution y = e^(x^2/2).

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
589
  • Calculus and Beyond Homework Help
Replies
8
Views
798
  • Calculus and Beyond Homework Help
Replies
5
Views
347
  • Calculus and Beyond Homework Help
Replies
2
Views
329
  • Calculus and Beyond Homework Help
Replies
25
Views
468
  • Calculus and Beyond Homework Help
Replies
7
Views
718
  • Calculus and Beyond Homework Help
Replies
6
Views
806
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
860
Back
Top