Second Order Partial Differential Equation Solver Calculator

Explore coefficients through a PDE solver. See classifications, residual trends, boundary impacts, and surface behavior. Build intuition using clear outputs, graphs, exports, and examples.

Calculator Inputs

This solver uses the model equation: a·uxx + 2b·uxy + c·uyy + d·ux + e·uy + f·u = g on a rectangular domain with constant Dirichlet boundaries.

Coefficient for uxx.
Mixed term uses 2b·uxy.
Coefficient for uyy.
First derivative x term.
First derivative y term.
Reaction term multiplier.
Constant forcing term.
Horizontal domain size.
Vertical domain size.
Horizontal grid count.
Vertical grid count.
SOR acceleration factor.
x = 0 edge value.
x = Lx edge value.
y = Ly edge value.
y = 0 edge value.
Upper iteration limit.
Convergence threshold.
Reset

Example Data Table

Parameter Sample Value Purpose
a 1 Controls x-direction curvature.
b 0 Removes mixed derivative influence.
c 1 Controls y-direction curvature.
d, e, f 0, 0, 0 No drift or reaction term.
g -6 Creates interior forcing.
Lx, Ly 1, 1 Uses a unit square domain.
Nx, Ny 17, 17 Builds a moderate grid.
Boundaries 0, 0, 0, 0 Sets all edges to zero.
ω, tolerance, iterations 1.10, 1e-6, 2500 Improves convergence control.

Formula Used

General model:
a·uxx + 2b·uxy + c·uyy + d·ux + e·uy + f·u = g
Classification rule:
Discriminant = b² - ac.
If b² - ac < 0, the PDE is elliptic.
If b² - ac = 0, the PDE is parabolic.
If b² - ac > 0, the PDE is hyperbolic.
Central differences:
uxx ≈ (ui+1,j - 2ui,j + ui-1,j) / Δx²
uyy ≈ (ui,j+1 - 2ui,j + ui,j-1) / Δy²
uxy ≈ (ui+1,j+1 - ui+1,j-1 - ui-1,j+1 + ui-1,j-1) / (4ΔxΔy)
First derivatives:
ux ≈ (ui+1,j - ui-1,j) / (2Δx)
uy ≈ (ui,j+1 - ui,j-1) / (2Δy)

The page solves the discretized linear system iteratively with Gauss-Seidel style updates and SOR relaxation. This makes the calculator useful for constant-coefficient, rectangular-domain, boundary-value experiments.

How to Use This Calculator

  1. Enter coefficients a, b, c, d, e, f, and g.
  2. Set domain lengths Lx and Ly.
  3. Choose grid points Nx and Ny.
  4. Provide left, right, top, and bottom boundary values.
  5. Set relaxation, tolerance, and iteration limit.
  6. Click Solve PDE to generate the numerical field.
  7. Review classification, residual, center value, and graph outputs.
  8. Download the grid as CSV or save the summary as PDF.

Frequently Asked Questions

1. What does this calculator solve?

It solves a constant-coefficient second order PDE on a rectangular region. The page classifies the equation and estimates a grid-based numerical solution using finite differences and iterative relaxation.

2. How is the PDE type identified?

The calculator uses the discriminant b² - ac for the equation a·uxx + 2b·uxy + c·uyy + ... . Negative means elliptic, zero means parabolic, and positive means hyperbolic.

3. Why do I need boundary values?

Boundary values anchor the solution on the domain edges. The interior grid values are then computed from the PDE coefficients, source term, and those fixed edge conditions.

4. What does the relaxation factor do?

The relaxation factor ω speeds or damps iterative updates. Values slightly above 1 often improve convergence, but values set too high can destabilize the iteration.

5. Why might the solver stop without full convergence?

Some coefficient combinations, coarse grids, or strongly hyperbolic cases can resist this steady iterative approach. In such cases, increase iterations, refine the grid, or change the coefficients.

6. What does the center value mean?

The center value is the computed solution near the middle of the domain. It is useful for comparing runs when you change coefficients, source strength, or boundary data.

7. Can I use this for learning canonical forms?

Yes. The rotation angle and PDE class help you inspect canonical behavior. The calculator is especially helpful for visualizing how mixed derivatives and anisotropy affect the solution field.

8. What do the CSV and PDF downloads include?

The CSV file exports the computed grid values with x and y locations. The PDF report saves the main summary metrics and the generated surface graph.

Related Calculators

inverse laplace transform calculatortaylor series expansion calculatorexact differential equation calculatorequilibrium points calculatormidpoint method calculatorcharacteristic equation calculatorhomogeneous differential equation calculatornonhomogeneous differential equation calculatorsecond order differential equation calculatorheun method calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.