# Solve system of diff-algebraic equations with periodic boundary-conditions?

**URL:** <https://community.wolfram.com/t/solve-system-of-diff-algebraic-equations-with-periodic-boundary-conditions/15423>\
**Category:** Questions\
**Tags:** equation-solving, numerical-computation\
**Created:** [February 25, 2020, 1:38pm UTC](https://community.wolfram.com/t/solve-system-of-diff-algebraic-equations-with-periodic-boundary-conditions/15423 "2020-02-25T13:38:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahary](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mahary](https://community.wolfram.com/u/mahary)\
**Post date:** [February 25, 2020, 1:38pm UTC](https://community.wolfram.com/t/solve-system-of-diff-algebraic-equations-with-periodic-boundary-conditions/15423/1 "2020-02-25T13:38:17Z")

</div>

Hi,  
I have a system of differential-algebraic equations DAEs. I have periodic boundary conditions. When using NDSolve, I got a message that in DAE only initial conditions are expected. Is there any way in Mathematica to solve the system of DAEs with periodic boundary conditions like x1[t\_0]==x1[t\_f]?

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [February 25, 2020, 4:15pm UTC](https://community.wolfram.com/t/solve-system-of-diff-algebraic-equations-with-periodic-boundary-conditions/15423/2 "2020-02-25T16:15:46Z")

</div>

You might try differentiating the algebraic constraints to make this a pure DE system, perhaps using `Method->"Projection"` to help enforce the algebraic constraints.

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [February 25, 2020, 10:03pm UTC](https://community.wolfram.com/t/solve-system-of-diff-algebraic-equations-with-periodic-boundary-conditions/15423/3 "2020-02-25T22:03:52Z")

</div>

I am unsure of what (any) “DAE” might encompass and am not highly familiar with them in general, but perhaps you should substitute a function that mm knows is periodic such as Sin[t] and unsubstitute the result when done. Mathematica knows how to do certain solving over modulus but I can’t say if your equations fall within that evolving capability. f[z] might be one substitution if used wisely. If you bounds are within one period exactly then periodicity may not be required it can be assumed (I cannot say if many period will be a theorem used to solve your problem set of course).
