Mathematica Help with nonlinear differential?

Click For Summary
SUMMARY

The discussion centers on solving nonlinear differential equations using Mathematica, specifically addressing issues with the DSolve function when attempting to incorporate initial conditions. The user encountered difficulties with the syntax DSolve[h'[t] = f[h[t], h[0]], which led to the suggestion of substituting h[0] with a constant k. This approach allows for the imposition of initial conditions later, but raises concerns about the implications of not including h[0] in the original function h[t] when maximizing another function. The conversation highlights the complexities of handling initial conditions in Mathematica for differential equations.

PREREQUISITES
  • Familiarity with Mathematica 12.3 syntax and functions
  • Understanding of nonlinear differential equations
  • Knowledge of initial conditions in differential equations
  • Basic concepts of function maximization
NEXT STEPS
  • Explore advanced features of DSolve in Mathematica 12.3
  • Learn about handling initial conditions in nonlinear differential equations
  • Investigate function maximization techniques in Mathematica
  • Review examples of substituting variables in differential equations
USEFUL FOR

Mathematics students, researchers in applied mathematics, and anyone working with nonlinear differential equations in Mathematica.

sirion
Having some troubles getting further in this system I'm trying to solve. The notebook's at http://www.gabrielwyner.com/fluids5.nb

PDF form:
http://www.gabrielwyner.com/fluids5.pdf

I guess the most current problem involves mathematica complaining about DSolve[h'[t] = f[h[t],h[0]]] (with correct syntax, that is). It doesn't like solving a function with h[t] and h[0] in it..
 
Last edited by a moderator:
Physics news on Phys.org
Try replacing h[0] with some arbitrary constant, k... then (at some point) imposing the initial condition that h[0] = k.
 
That works, but eventually I need to solve for the h[0] that maximizes another function of h[t]. Was hoping to get a function for h[t], plug it into u[t], plug that into v[t], plug *that* into k[t] and plot that vs h[0]. Am I going to run into trouble if h[0] isn't part of the original h[t] function?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K