Can Differential Equations Be Used to Create Art?

  • Context: Undergrad 
  • Thread starter Thread starter alexkiddo
  • Start date Start date
  • Tags Tags
    Diff eq Project
Click For Summary
SUMMARY

This discussion focuses on using differential equations to create visual art, specifically through tools like Mathematica and Maple. The Lorenz attractor, a well-known example in Chaos Theory, is highlighted as a method for generating intricate designs using coupled non-linear differential equations. The conversation includes specific Mathematica code for generating and enhancing the visual output of the Lorenz attractor, emphasizing the importance of color variation to improve aesthetics.

PREREQUISITES
  • Understanding of differential equations, particularly non-linear systems.
  • Familiarity with Mathematica for numerical solutions and plotting.
  • Knowledge of Chaos Theory and attractors, specifically the Lorenz attractor.
  • Basic programming skills in Mathematica to modify and execute code.
NEXT STEPS
  • Explore advanced techniques in Mathematica for visualizing differential equations.
  • Research other types of attractors and their visual representations.
  • Learn about color theory and its application in data visualization.
  • Investigate alternative software tools for mathematical visualization, such as Maple or Python libraries like Matplotlib.
USEFUL FOR

Artists, mathematicians, and educators interested in the intersection of mathematics and visual art, particularly those looking to enhance their understanding of differential equations and their applications in creative projects.

alexkiddo
Messages
1
Reaction score
0
Hello all,

I have been assigned a project to create artwork using differential equations, the obvious idea would be to use Mathematica or Maple to obtain general solutions and replace values to obtain different level curves and then fill in the space between them.

However, I'm wanting to go a little deeper than that; so I was wondering if anyone out there has any other ideas for creating visual art using differential equations.

Thanks!
 
Physics news on Phys.org
You could look into strange attractors:

http://en.wikipedia.org/wiki/Attractor

Those are often created by coupled non-linear DEs. For example, the Lorenz attractor, the owl-eye icon of Chaos Theory, is created by the system:

[tex]x'=-ax+cy[/tex]
[tex]y'=rx-y-xz[/tex]
[tex]z'=-bz+xy[/tex]

That's easy to draw in Mathematica:

Code:
mysol = NDSolve[{x'[t] == -3 (x[t] - y[t]), 
   y'[t] == -x[t] z[t] + 26.5 x[t] - y[t], 
   z'[t] == x[t] y[t] - z[t], 
   x[0] == z[0] == y[0] == 1}, 
   {x, y, z}, {t, 0, 20}, MaxSteps -> 3000]
ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. mysol],
 {t, 0, 20}, 
 PlotPoints -> 1000]

but that's kinda' bland-looking. Try improving it with some color variation:

Code:
Remove[x, y, z]
mysol = NDSolve[{x'[t] == -3 (x[t] - y[t]), 
   y'[t] == -x[t] z[t] + 26.5 x[t] - y[t], z'[t] == x[t] y[t] - z[t], 
   x[0] == z[0] == y[0] == 1}, {x, y, z}, {t, 0, 200}, 
  MaxSteps -> 30000]
ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. mysol], {t, 0, 200}, 
 PlotPoints -> 1000, 
 ColorFunction -> Function[{x, y}, ColorData["NeonColors"][y]]]

It's a start. The attractor at the top of the Wikipedia is nice-looking. Not sure how they generated that. Maybe you can find out and make others nice-looking also.
 
Last edited:

Similar threads

  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K