I would like MATLAB to perform trigonometric simplification such as 1-cos(x)^2 = sin(x)^2, when x is a symbolic expression. Currently, it returns 1-cos(x)^2.

Reproduction Steps:

`syms a b xx = a^77+b^2;g = 1-cos(x)^2simplify(g)`

Skip to content
# MATLAB: How to simplify a trigonometric equation in Symbolic Math Toolbox 3.2.3 (R2008a) if the variable in the equation is a expression

###### Related Question

Symbolic Math Toolbox

I would like MATLAB to perform trigonometric simplification such as 1-cos(x)^2 = sin(x)^2, when x is a symbolic expression. Currently, it returns 1-cos(x)^2.

Reproduction Steps:

`syms a b xx = a^77+b^2;g = 1-cos(x)^2simplify(g)`

- Expression of the equations in the Symbolic Math Toolbox.
- Does the INT function in the Symbolic Math Toolbox 3.2.3 (R2008a) return an expression with extra variables
- Do I receive a output which has the variable ‘eulergamma’ in it in Symbolic Math Toolbox 3.2.3 (R2008a)
- How to substitute a sub-expression in a symbolic expression using Symbolic Math Toolbox 5.4 (R2010a)
- Does the SOLVE function return an empty SYM object in Symbolic Math Toolbox 3.2.3 (R2008a) with the Maple engine
- Is the Taylor series result displayed in wrong order when using TAYLOR in Symbolic Math Toolbox 3.2.3 (R2008a)

## Best Answer