# Tutorials

This page provides connections to PETSc tutorial examples by type of physics being modeled,
discretization technique being used, solvers used, etc.

```{toctree}
:maxdepth: 2

guide_to_examples_by_physics
handson
meshing/guide_to_subsurface
performance/guide_to_TAS
in_person
```

In addition, PETSc has many additionally poorly curated tutorial examples, found in the `tutorials/`
directories throughout the PETSc `src/` tree.

- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/index.html">Linear problems</a>

- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/index.html">Nonlinear problems</a>

- <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/index.html">Time integration</a>

- Optimization

  - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/leastsquares/tutorials/index.html">Least-squares</a> (Manual: {any}`sec_tao_leastsquares`)
  - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/quadratic/tutorials/index.html">Quadratic</a> (Manual: {any}`sec_tao_quadratic`)
  - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/unconstrained/tutorials/index.html">Unconstrained</a> (Manual: {any}`sec_tao_unconstrained`)
  - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/bound/tutorials/index.html">Bound</a> (Manual: {any}`sec_tao_bound`)
  - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/constrained/tutorials/index.html">Constrained</a> (Manual: {any}`sec_tao_constrained`)
  - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/complementarity/tutorials/index.html">Complementarity</a> (Manual: {any}`sec_tao_complementary`)
  - <a href="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/pde_constrained/tutorials/index.html">PDE constrained</a> (Manual: {any}`sec_tao_pde_constrained`)n
