# Existence of constant term in log-linearizations

**URL:** https://forum.dynare.org/t/existence-of-constant-term-in-log-linearizations/22198
**Category:** Stochastic simulations
**Created:** [31 March 2023 11:01 UTC](https://forum.dynare.org/t/existence-of-constant-term-in-log-linearizations/22198 "2023-03-31T11:01:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![zeynooo](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/439d5e/32.png) [@zeynooo](https://forum.dynare.org/u/zeynooo)
#### Post date: [31 March 2023 11:01 UTC](https://forum.dynare.org/t/existence-of-constant-term-in-log-linearizations/22198/1 "2023-03-31T11:01:18Z")

</div>

Dear friends, I have a question about log-linearization in DSGE models,  
when we log-linearization an equation there is not be a constant, but some models have for example inflation target -as constant sentence- in their taylor rules that appear as constant in monetary policy. how can I solve this problem?  
for example equation 9 in appendix article,  
[jom2012.pdf](https://forum.dynare.org/uploads/short-url/dVOrCsSCQgNj9NwLwwyIBeGhSFi.pdf) (421.5 KB)

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [31 March 2023 12:47 UTC](https://forum.dynare.org/t/existence-of-constant-term-in-log-linearizations/22198/2 "2023-03-31T12:47:59Z")

</div>

No, when you linearize, you can cancel the constant on both sides of an equation. But there is no need to drop all constants. The only issue is that you need to be consistent in your implementation.

---

<div class="post-metadata">

### Author: ![zeynooo](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/439d5e/32.png) [@zeynooo](https://forum.dynare.org/u/zeynooo)
#### Post date: [1 April 2023 07:11 UTC](https://forum.dynare.org/t/existence-of-constant-term-in-log-linearizations/22198/3 "2023-04-01T07:11:34Z")

</div>

Dear jpfeifer thank you,  
but how can I solve this problem in dynare? because dynare make an error when there is a constant in an equation.

---

<div class="post-metadata">

### Author: ![zeynooo](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/439d5e/32.png) [@zeynooo](https://forum.dynare.org/u/zeynooo)
#### Post date: [1 April 2023 07:25 UTC](https://forum.dynare.org/t/existence-of-constant-term-in-log-linearizations/22198/4 "2023-04-01T07:25:08Z")

</div>

for example in attached file the error “ERROR: If the model is declared linear the second derivatives must be equal to zero. The following equations have non-zero second derivatives:  
\* Eq # 3 [pi]”  
how can be solved, without eliminating something?

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [3 April 2023 13:58 UTC](https://forum.dynare.org/t/existence-of-constant-term-in-log-linearizations/22198/5 "2023-04-03T13:58:46Z")

</div>

In that case, there must be a mistake in your linearization. A simple constant will drop out after twice differentiating. The error message tells you that is not the case.
