# Direct sum of spaces

**URL:** https://community.freefem.org/t/direct-sum-of-spaces/4034
**Category:** General Discussion
**Created:** [August 5, 2025, 7:20am UTC](https://community.freefem.org/t/direct-sum-of-spaces/4034 "2025-08-05T07:20:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pratyay](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pratyay](https://community.freefem.org/u/pratyay)
#### Post date: [August 5, 2025, 7:20am UTC](https://community.freefem.org/t/direct-sum-of-spaces/4034/1 "2025-08-05T07:20:59Z")

</div>

Can I write the direct sum of two fe spaces in FreeFem++ and use this space as my solution space and test function space?

---

<div class="post-metadata">

### Author: ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)
#### Post date: [August 6, 2025, 2:07pm UTC](https://community.freefem.org/t/direct-sum-of-spaces/4034/2 "2025-08-06T14:07:47Z")

</div>

Yes this is what is called “composite spaces” in freefem. You can look at the examples to see how to use this tool.
