This app demonstrates how a Physics-Informed Neural Network (PINN) can approximate the solution to the differential equation: d2y/dx2 + y = 0.
The neural network `N(x; θ)` is used to construct a trial solution `y_trial(x) = y(0) + x*y'(0) + x2*N(x; θ)`. This form inherently satisfies the boundary conditions `y(0)` and `y'(0)`. The network is then trained to minimize the PDE residual: `(d2y_trial/dx2 + y_trial)2` across several "collocation points" in the domain.
Adjust neural network parameters, boundary conditions, and training settings. Then, click 'Train' to see the network learn.