Skip to main content
Engineering LibreTexts

12.2: Solve Blocks

  • Page ID
    14986
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    'solve' block

    To use the solve block, first open the symbolic toolbar. We show how to solve the example 12.2.1 with this new technique.

    Example 12.2.1

    Solve 2 = x4+3x2−1.

    Solution

    In the worksheet, using ctrl + = for the bold symbolic equals sign and clicking on the word “solve” in the symbolic toolbar, the syntax is

    2 = x4+3x2−1 solve, x →

    Once you hit return, it will look like:

    2 = x4+3x2−1 solve, x → \begin{pmatrix} -\sqrt{-\dfrac1{2}\sqrt{21}-\dfrac3{2}} \\ \sqrt{\frac{\sqrt{21}}{2}-\dfrac3{2}} \\ -\sqrt{-\dfrac1{2}\sqrt{21}-\dfrac3{2}} \\ \sqrt{\frac{\sqrt{21}}{2}-\dfrac3{2}} \nonumber\end{pmatrix}

    If you type an equals sign on the end of the last line, it will become:

    2 = x4+3x2−1 solve, x → \begin{pmatrix} -\sqrt{-\dfrac1{2}\sqrt{21}-\dfrac3{2}} \\ \sqrt{\frac{\sqrt{21}}{2}-\dfrac3{2}} \\ -\sqrt{-\dfrac1{2}\sqrt{21}-\dfrac3{2}} \\ \sqrt{\frac{\sqrt{21}}{2}-\dfrac3{2}}\nonumber\end{pmatrix}=\begin{pmatrix}-1.947i \\ 1.947i \\ -0.89 \\ 0.89 \nonumber\end{pmatrix}

    Note that two of these solutions are not real valued. Also, it is proper syntax to leave off the “, x” after the word solve as Mathcad will solve for the only variable present by default. That is,

    2 = x4+3x2−1 solve, x →

    will still give the same solution.

    The solve block can be extended to equations with multiple variables as seen in the next example.

    Example 12.1.2:

    Solve 1 = x2y/x2+y2 for each variable

    Solution

    Using the bold equals and the word “solve” from the symbolic toolbar, the syntax is:

    \[1=\dfrac{x^{2}y}{x^{2}+y^{2}} solve, x→ \nonumber\]

    Once you hit return, it will look like:

    \[1=\dfrac{x^{2}y}{x^{2}+y^{2}} solve, x→ \nonumber\] \begin{pmatrix} -\dfrac{y}{\sqrt{y-1}} \\ \dfrac{y}{\sqrt{y-1}}\nonumber\end{pmatrix}

    and

    \[1=\dfrac{x^{2}y}{x^{2}+y^{2}} solve, x→ \nonumber\]

    Once you hit return, it will look like:

    \[1=\dfrac{x^{2}y}{x^{2}+y^{2}} solve, x→ \nonumber\] \begin{pmatrix} \dfrac{x(x+\sqrt{x^{2}-4})}{2} \\ \dfrac{x^{2}}{2}-\dfrac{x\sqrt{x^{2}-4}}{2}\nonumber\end{pmatrix}


    This page titled 12.2: Solve Blocks is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Troy Siemers (APEX Calculus) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.