# unconventional linear and bilinear forms

Asked by
Paul Constantine

I'm wondering if the following is possible to express easily in UFL. I'll write it in math/latex style.

Let's say my domain is an interval x \in [a,b]. Now let u = u(x) \in R^n and v = v(x) \in R^n. These are n-vectors whose elements depend on x. And let A = A(x) \in R^n x R^n be a matrix whose elements depend on x.

I would like to work with linear forms such as

\int_a^b u^T v dx

and bilinear forms such as

\int_a^b u^T A v dx.

The matrix A might be a "mesh function" that returns an nxn matrix for each mesh point.

Reading through the FEniCS book -- particularly Chapter 17 -- I can't tell if such a thing is possible.

## Question information

- Language:
- English Edit question

- Status:
- Solved

- For:
- UFL Edit question

- Assignee:
- No assignee Edit question

- Solved by:
- Jan Blechta

- Solved:

- Last query:

- Last reply:

To post a message you must log in.