# Help with rearranging the equation and solution Steps?

**URL:** <https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235>\
**Category:** Questions\
**Tags:** algebra, equation-solving, symbolic-computations\
**Created:** [March 12, 2025, 7:36am UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235 "2025-03-12T07:36:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shsheidari](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@shsheidari](https://community.wolfram.com/u/shsheidari)\
**Post date:** [March 12, 2025, 7:36am UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/1 "2025-03-12T07:36:49Z")

</div>

Hi,

How can I rearrange the equation eq1 in terms of (H + Derivative[1][G][[Xi]]/G[[Xi]]^2) and then solve for it?

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/861113c1-ac28-4ee6-b95e-4523c9b6f50c)

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [March 12, 2025, 10:37am UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/2 "2025-03-12T10:37:55Z")

</div>

It seems you have done it. What is wrong with it?

---

<div class="post-metadata">

**Author:** ![shsheidari](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@shsheidari](https://community.wolfram.com/u/shsheidari)\
**Post date:** [March 12, 2025, 12:55pm UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/3 "2025-03-12T12:55:18Z")

</div>

In order to obtain an algebraic system, one must set the coeffcients of (H + G′/G2)i to zero. Solve the obtained algebraic system.

But the expressions were not arranged correctly, no answer was obtained, while the answer was as follows:

 ![4597123.PNG](https://global.discourse-cdn.com/wolfram/original/2X/f/f1981b771a839b985e2920d6d8f4ce393507629a.png)

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [March 12, 2025, 1:42pm UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/4 "2025-03-12T13:42:39Z")

</div>

Your presumed solution contain `C,B,beta`, while the equation has no such variables. You can check the solutions given by Mathematica:

```
eq1 /. Solve[
   coefficients == 0, {a0, a1, a2, a3, a4, H, \[Nu]}] // Simplify

```

and they are fine.

---

<div class="post-metadata">

**Author:** ![shsheidari](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@shsheidari](https://community.wolfram.com/u/shsheidari)\
**Post date:** [March 12, 2025, 2:44pm UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/5 "2025-03-12T14:44:05Z")

</div>

Yes, you are right; I made some mistakes in certain parts. I just have one question: If I want to rearrange an equation I have in terms of that expression mentioned in the first question, so that there are no functions within the equation, what should I do?

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [March 12, 2025, 3:42pm UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/6 "2025-03-12T15:42:00Z")

</div>

Sorry, I don’t understand your question.

---

<div class="post-metadata">

**Author:** ![shsheidari](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@shsheidari](https://community.wolfram.com/u/shsheidari)\
**Post date:** [March 12, 2025, 6:07pm UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/7 "2025-03-12T18:07:01Z")

</div>

I don’t know why the placement isn’t happening?

```
dG[\[Xi]_] := D[G[\[Xi]], \[Xi]];
\[CapitalXi]dG[\[Xi]_] := dG[\[Xi]]/G[\[Xi]]^2;
D[\[CapitalXi]dG[\[Xi]], \[Xi]] = 
  A + B \[CapitalXi]dG[\[Xi]]^2 + c \[CapitalXi]dG[\[Xi]]; 

a = {a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, 
   a15, a16, a17, a18, a19, a20};

U[\[Xi]_] := Sum[a[[i + 3]]*(H + \[CapitalXi]dG[\[Xi]])^i, {i, p, q}]
p = -1; q = 1;
U[\[Xi]]
eq1 = 2*(\[Nu]^2 - k^2)*D[U[\[Xi]], \[Xi]] + 
   2 (\[Alpha] k^2 \[Nu]^2)*D[U[\[Xi]], {\[Xi], 2}] - 
   3 \[Nu] k^2*D[U[\[Xi]], \[Xi]]^2 // Expand

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [March 12, 2025, 6:20pm UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/8 "2025-03-12T18:20:37Z")

</div>

What placement? Your third line cannot work with = . Maybe you meant it as an equation?

```
dG = G';
\[CapitalXi]dG[\[Xi]_] := dG[\[Xi]]/G[\[Xi]]^2;
\[CapitalXi]dG'[\[Xi]] == 
 A + B \[CapitalXi]dG[\[Xi]]^2 + c \[CapitalXi]dG[\[Xi]]

```

---

<div class="post-metadata">

**Author:** ![shsheidari](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@shsheidari](https://community.wolfram.com/u/shsheidari)\
**Post date:** [March 12, 2025, 6:36pm UTC](https://community.wolfram.com/t/help-with-rearranging-the-equation-and-solution-steps/25235/9 "2025-03-12T18:36:51Z")

</div>

Yes, I want the expressions that I defined above in section eq1 to be substituted into this equation, but when I run the code, the substitution does not occur.???
