# How to solve a couple of ODEs in two variables

**URL:** <https://community.wolfram.com/t/how-to-solve-a-couple-of-odes-in-two-variables/25505>\
**Category:** Questions\
**Tags:** calculus, equation-solving\
**Created:** [May 21, 2025, 5:55am UTC](https://community.wolfram.com/t/how-to-solve-a-couple-of-odes-in-two-variables/25505 "2025-05-21T05:55:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![safinazsalem](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@safinazsalem](https://community.wolfram.com/u/safinazsalem)\
**Post date:** [May 21, 2025, 5:55am UTC](https://community.wolfram.com/t/how-to-solve-a-couple-of-odes-in-two-variables/25505/1 "2025-05-21T05:55:06Z")

</div>

Any help how to solve a couple of ODEs to get the variables a[t] and x[t] ?

```
ode1= -1/2* x’[t]^2 == a’’[t] / a[t] + a’[t] /a[t]^2

```

And:

```
ode2 = x’’[t] + 3 (a’ [t]/ a[t] ) x’[t] + v[t] ==0

```

where

```
v[t] = v0 ( 1 - Exp [- Sqrt [2/3] x[t]/mp ] )

```

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [May 21, 2025, 9:49am UTC](https://community.wolfram.com/t/how-to-solve-a-couple-of-odes-in-two-variables/25505/2 "2025-05-21T09:49:59Z")

</div>

Many **nonlinear ODEs** do not have symbolic solutions in terms of commonly defined functions. The ODE in the question probably falls in that category. However, it should be noted that DSolve sometimes is unable to solve ODEs that do have symbolic solutions in terms of commonly defined functions.In your case probably **No** hope for solution.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/bf4c5502-4846-46a6-b223-a23ca3c5cf98)

---

<div class="post-metadata">

**Author:** ![safinazsalem](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@safinazsalem](https://community.wolfram.com/u/safinazsalem)\
**Post date:** [May 21, 2025, 12:16pm UTC](https://community.wolfram.com/t/how-to-solve-a-couple-of-odes-in-two-variables/25505/3 "2025-05-21T12:16:58Z")

</div>

Thank you so much for your answer.

I tried to do another thing:

First: To substitute by `x'[t]` and `x''[t]` in `ode2` in terms of `ode1` :

```
x'[t] := Sqrt[2 (a''[t]/a[t] + a'[t]/a[t]^2)]

x''[t] := D[x'[t], t]

```

Then

```
ode2 = x''[t] + 3 a'[t]/a[t] x'[t] + v[t] == 0

```

Gives:

```
Out[18]= (1-E^(-((Sqrt[2/3] x[t])/mp)))^2 v0+(3 Sqrt[2] (a^\[Prime])[t] Sqrt[(a^\[Prime])[t]/a[t]^2+(a^\[Prime]\[Prime])[t]/a[t]])/a[t]+(-((2 (a^\[Prime])[t]^2)/a[t]^3)+(a^\[Prime]\[Prime])[t]/a[t]^2-((a^\[Prime])[t] (a^\[Prime]\[Prime])[t])/a[t]^2+(a^(3))[t]/a[t])/(Sqrt[2] Sqrt[(a^\[Prime])[t]/a[t]^2+(a^\[Prime]\[Prime])[t]/a[t]])==0

```

But now there is in ode2, `x[t]` which comes from `v(t)` .. So how to integrate ode1:

```
x'[t] := Sqrt[2 (a''[t]/a[t] + a'[t]/a[t]^2)]

```

To get `x[t]`

Then solve ode2 as a third order differential equation in `a'''[t]`.
