Solving Constant Function Homework w/ f'(x)=f(x) & f(0)=0

  • Thread starter Thread starter ritwik06
  • Start date Start date
  • Tags Tags
    Constant Function
Click For Summary
SUMMARY

The discussion centers on solving the differential equation f'(x) = f(x) with the initial condition f(0) = 0. Participants conclude that the only solution satisfying both conditions is the constant function f(x) = 0. The integration process revealed a common error in assuming ln(y) = x + C without considering the absolute value, which is crucial for defining y when y = 0. The final consensus is that while f(x) = e^x is a potential solution, it does not satisfy the initial condition, confirming that f(x) = 0 is the valid solution.

PREREQUISITES
  • Understanding of first-order ordinary differential equations (ODEs)
  • Knowledge of integration techniques, specifically natural logarithms
  • Familiarity with the concept of initial conditions in differential equations
  • Basic understanding of the uniqueness theorem for ODE solutions
NEXT STEPS
  • Study the uniqueness theorem for solutions of first-order ODEs
  • Learn about the implications of initial conditions in differential equations
  • Explore the properties of exponential functions and their derivatives
  • Review integration techniques involving absolute values in logarithmic functions
USEFUL FOR

Students studying calculus, particularly those focusing on differential equations, as well as educators and tutors seeking to clarify concepts related to ODEs and initial value problems.

ritwik06
Messages
577
Reaction score
0

Homework Statement


Data Given:
f'(x)=f(x) ...(i)
and
f(0)=0 ...(ii)

What kind of function is f(x)?



The Attempt at a Solution


From (i)
dy/dx=y
1/y dy= dx
Integrating;
ln y = x+C
From (ii)
ln 0=0+c
Therefore; c is not defined!

My book gives the answer that f(x) is a constant function. But how is it true? Is my way of solving wrong?
Please Help
regards,
Ritwik
 
Physics news on Phys.org
ritwik06 said:

Homework Statement


Data Given:
f'(x)=f(x) ...(i)
and
f(0)=0 ...(ii)

What kind of function is f(x)?



The Attempt at a Solution


From (i)
dy/dx=y
1/y dy= dx
Integrating;
ln y = x+C
From (ii)
ln 0=0+c
Therefore; c is not defined!

From the part in bold

y=exp(x+c)
then use your initial values.
 
You divided by y when y = 0. I don't think you're supposed to solve it, but rather argue why it can't be anything other than a constant function based on the equation and the initial values.
 
Last edited:
y=any constant clearly doesn't satisfy (i)

though y=0 does satisfy..i think the answer is y=0 not y=any constant

when you do dy/y=dx, you are assuming that y is not equal to zero, because dy/y will not be defined for y=0

So, you have to consider the case y=0 separately
 
The solution of your ODE should give y = Ae^x (for some constant A)
Applying your initial condition gives 0 = Ae^0 ==> A = 0

If I'm right the function y = 0 is just as much a constant function as say the function y = 5
 
Last edited:
ritwik06 said:

Homework Statement


Data Given:
f'(x)=f(x) ...(i)
and
f(0)=0 ...(ii)

What kind of function is f(x)?



The Attempt at a Solution


From (i)
dy/dx=y
1/y dy= dx
Integrating;
ln y = x+C
From (ii)
ln 0=0+c
Therefore; c is not defined!
No, integrating does NOT give "ln y= x+ C". Integrating gives ln |y|= x+ C. That's your crucial error.

To see why that is important, take the exponential of both sides.
eln |y|= ex+ C or |y|= C' ex where C'= eC. While eC must be positive, we can drop the absolute value by allowing C' to be negative as well, and, by continuity, C'= 0.

y(x)= C'ex obviously satisifies the given differential equation for any real number C'.

My book gives the answer that f(x) is a constant function. But how is it true? Is my way of solving wrong?
Please Help
regards,
Ritwik

Now, put y=0, x= 0 into y= C'ex. What is C'? What is y(x)?
 
Data Given:
f'(x)=f(x) ...(i)
and
f(0)=0 ...(ii)

What kind of function is f(x)?
-------------------------

f(x) is a constant function... f(x) = 0
where f'(x) = f(x) holds true. (The only other possibility was f(x) = e^x but then f(0) is not 0.)
 
From your attempt at the solution you just get that c = 0... but that doesn't help really.
 
There is a simple solution f(x) = 0. What do you know about the uniqueness of the solution?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
Replies
8
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
Replies
20
Views
4K
Replies
2
Views
2K
Replies
4
Views
4K
Replies
6
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K