Re: Forcing mathematica to output a certain form
- To: mathgroup at smc.vnet.net
- Subject: [mg108115] Re: [mg108064] Forcing mathematica to output a certain form
- From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
- Date: Mon, 8 Mar 2010 06:17:30 -0500 (EST)
(* This is your equation *) eq1 = f[t] + g[t]*y'[t] == h[t]*y[t]^2; (* That is how you would transform it also by hand *) eq2 = (eq1[[1]] - eq1[[1, 1]])/eq1[[1, 2, 1]]; eq3 = (eq1[[2]] + eq1[[1, 1]])/eq1[[1, 2, 1]]; (* That is the result *) eqRes = eq2 == eq3 \!\(\*SuperscriptBox["y", "\[Prime]", MultilineFunction->None]\)[t] == (f[t] + h[t] y[t]^2)/g[t] As a result of an Eliminate function, and subsequent (wrapper) simplification under some conditions, I am getting a non-linear differential equation. It looks like: f(t)+g(t) y'(t)=h(t) y^2(t) Is there a way to force mathematica to output this in the way a differential equation is best written: y'(t)+h(t)/g(t) y^(t) = -f(t)/g(t) or the transposed form with zero on RHS ? -- Alexei Boulbitch, Dr., habil. Senior Scientist IEE S.A. ZAE Weiergewan 11, rue Edmond Reuter L-5326 Contern Luxembourg Phone: +352 2454 2566 Fax: +352 2454 3566 Website: www.iee.lu This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.