Message Boards Message Boards

GROUPS:

[✓] Get a solution for a hard spring?

Posted 8 months ago
744 Views
|
1 Reply
|
2 Total Likes
|

need solution for Hard spring

Attachment

Attachments:

Something like this?

sols=DSolve[{x''[t] + (1 + a^2 (x[t])^2) x[t] == 0, x[0] == A, x'[0] == 0}, x, t]
(*{{x -> Function[{t}, A JacobiSN[1/2 (-Sqrt[2] Sqrt[2 + a^2 A^2] t + 2 EllipticK[-((a^2 A^2)/(2 + a^2 A^2))]), -((a^2 A^2)/(2 + a^2 A^2))]]}}*)

and then

Plot[(x[t] /. sols[[1]]) /. {A -> 1, a -> 5}, {t, 0, 10}]

enter image description here

All that is modulo typos etc.

Cheers,

Marco

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract