How to format two equations on the same row but then carry on with one of the equations below?
This is my code:
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right) =frac{partial L}{partial x} Rightarrow qquad qquad frac{d}{dt}(mdot{x})=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
mddot{x}=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
ddot{x} = (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right) =frac{partial L}{partial theta} Rightarrow qquad qquad frac{d}{dt}[m(l+x)^2dot{theta}] = -mg(l+x)sintheta nonumber \
m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta} = -mg(l+x)sintheta nonumber \
(l+x)ddot{theta}+2dot{x}dot{theta} = -gsintheta nonumber \
ddot{theta}=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
which gives this output:
I wish for the systems of equations on the right to be aligned (not necessarily with the other system, but within its own) and to not vertically overlap with the equation on the left (as the second system currently does). Would someone please show me how to do this? Apologies if unclear.
equations formatting
New contributor
add a comment |
This is my code:
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right) =frac{partial L}{partial x} Rightarrow qquad qquad frac{d}{dt}(mdot{x})=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
mddot{x}=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
ddot{x} = (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right) =frac{partial L}{partial theta} Rightarrow qquad qquad frac{d}{dt}[m(l+x)^2dot{theta}] = -mg(l+x)sintheta nonumber \
m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta} = -mg(l+x)sintheta nonumber \
(l+x)ddot{theta}+2dot{x}dot{theta} = -gsintheta nonumber \
ddot{theta}=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
which gives this output:
I wish for the systems of equations on the right to be aligned (not necessarily with the other system, but within its own) and to not vertically overlap with the equation on the left (as the second system currently does). Would someone please show me how to do this? Apologies if unclear.
equations formatting
New contributor
add a comment |
This is my code:
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right) =frac{partial L}{partial x} Rightarrow qquad qquad frac{d}{dt}(mdot{x})=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
mddot{x}=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
ddot{x} = (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right) =frac{partial L}{partial theta} Rightarrow qquad qquad frac{d}{dt}[m(l+x)^2dot{theta}] = -mg(l+x)sintheta nonumber \
m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta} = -mg(l+x)sintheta nonumber \
(l+x)ddot{theta}+2dot{x}dot{theta} = -gsintheta nonumber \
ddot{theta}=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
which gives this output:
I wish for the systems of equations on the right to be aligned (not necessarily with the other system, but within its own) and to not vertically overlap with the equation on the left (as the second system currently does). Would someone please show me how to do this? Apologies if unclear.
equations formatting
New contributor
This is my code:
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right) =frac{partial L}{partial x} Rightarrow qquad qquad frac{d}{dt}(mdot{x})=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
mddot{x}=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
ddot{x} = (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right) =frac{partial L}{partial theta} Rightarrow qquad qquad frac{d}{dt}[m(l+x)^2dot{theta}] = -mg(l+x)sintheta nonumber \
m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta} = -mg(l+x)sintheta nonumber \
(l+x)ddot{theta}+2dot{x}dot{theta} = -gsintheta nonumber \
ddot{theta}=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
which gives this output:
I wish for the systems of equations on the right to be aligned (not necessarily with the other system, but within its own) and to not vertically overlap with the equation on the left (as the second system currently does). Would someone please show me how to do this? Apologies if unclear.
equations formatting
equations formatting
New contributor
New contributor
New contributor
asked 7 mins ago
Charlotte Noxon
61
61
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Welcome to TeX.SE! You already dialed the right environment for that, align
, but are not really using it. To use it, you need to set alignment points with &
. So to first approximation I'd like to suggest.
documentclass{article}
usepackage{mathtools}
begin{document}
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right)& =frac{partial
L}{partial x} &Rightarrow qquad qquad frac{d}{dt}(mdot{x})&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& mddot{x}&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& ddot{x} &= (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right)&
=frac{partial L}{partial theta} &Rightarrow qquad qquad
frac{d}{dt}[m(l+x)^2dot{theta}] &= -mg(l+x)sintheta nonumber \
&&m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta}& = -mg(l+x)sintheta nonumber \
&& (l+x)ddot{theta}+2dot{x}dot{theta} &= -gsintheta nonumber \
&& ddot{theta}&=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Charlotte Noxon is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467740%2fhow-to-format-two-equations-on-the-same-row-but-then-carry-on-with-one-of-the-eq%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Welcome to TeX.SE! You already dialed the right environment for that, align
, but are not really using it. To use it, you need to set alignment points with &
. So to first approximation I'd like to suggest.
documentclass{article}
usepackage{mathtools}
begin{document}
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right)& =frac{partial
L}{partial x} &Rightarrow qquad qquad frac{d}{dt}(mdot{x})&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& mddot{x}&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& ddot{x} &= (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right)&
=frac{partial L}{partial theta} &Rightarrow qquad qquad
frac{d}{dt}[m(l+x)^2dot{theta}] &= -mg(l+x)sintheta nonumber \
&&m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta}& = -mg(l+x)sintheta nonumber \
&& (l+x)ddot{theta}+2dot{x}dot{theta} &= -gsintheta nonumber \
&& ddot{theta}&=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
end{document}
add a comment |
Welcome to TeX.SE! You already dialed the right environment for that, align
, but are not really using it. To use it, you need to set alignment points with &
. So to first approximation I'd like to suggest.
documentclass{article}
usepackage{mathtools}
begin{document}
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right)& =frac{partial
L}{partial x} &Rightarrow qquad qquad frac{d}{dt}(mdot{x})&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& mddot{x}&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& ddot{x} &= (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right)&
=frac{partial L}{partial theta} &Rightarrow qquad qquad
frac{d}{dt}[m(l+x)^2dot{theta}] &= -mg(l+x)sintheta nonumber \
&&m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta}& = -mg(l+x)sintheta nonumber \
&& (l+x)ddot{theta}+2dot{x}dot{theta} &= -gsintheta nonumber \
&& ddot{theta}&=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
end{document}
add a comment |
Welcome to TeX.SE! You already dialed the right environment for that, align
, but are not really using it. To use it, you need to set alignment points with &
. So to first approximation I'd like to suggest.
documentclass{article}
usepackage{mathtools}
begin{document}
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right)& =frac{partial
L}{partial x} &Rightarrow qquad qquad frac{d}{dt}(mdot{x})&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& mddot{x}&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& ddot{x} &= (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right)&
=frac{partial L}{partial theta} &Rightarrow qquad qquad
frac{d}{dt}[m(l+x)^2dot{theta}] &= -mg(l+x)sintheta nonumber \
&&m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta}& = -mg(l+x)sintheta nonumber \
&& (l+x)ddot{theta}+2dot{x}dot{theta} &= -gsintheta nonumber \
&& ddot{theta}&=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
end{document}
Welcome to TeX.SE! You already dialed the right environment for that, align
, but are not really using it. To use it, you need to set alignment points with &
. So to first approximation I'd like to suggest.
documentclass{article}
usepackage{mathtools}
begin{document}
The Lagrangian eqref{eq:14} differentiated according to eqref{eq:15} gives the equation of motion in terms of linear acceleration $ddot{x}$:
begin{align} label{eq:17}
frac{d}{dt}left(frac{partial L}{partial dot{x}}right)& =frac{partial
L}{partial x} &Rightarrow qquad qquad frac{d}{dt}(mdot{x})&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& mddot{x}&=m(l+x)^2dot{theta}^2-kx+mgcostheta nonumber \
&& ddot{x} &= (l+x)^2dot{theta}^2-frac{k}{m}x+gcostheta.
end{align}
The same process is done according to eqref{eq:16} to generate the equation of motion with respect to $ddot{theta}$:
begin{align} label{eq:18}
frac{d}{dt}left(frac{partial L}{partial dot{theta}}right)&
=frac{partial L}{partial theta} &Rightarrow qquad qquad
frac{d}{dt}[m(l+x)^2dot{theta}] &= -mg(l+x)sintheta nonumber \
&&m(l+x)^2ddot{theta}+2m(l+x)dot{x}dot{theta}& = -mg(l+x)sintheta nonumber \
&& (l+x)ddot{theta}+2dot{x}dot{theta} &= -gsintheta nonumber \
&& ddot{theta}&=frac{-gsintheta-2dot{x}dot{theta}}{l+x}
end{align}
end{document}
answered 22 secs ago
marmot
86.6k499185
86.6k499185
add a comment |
add a comment |
Charlotte Noxon is a new contributor. Be nice, and check out our Code of Conduct.
Charlotte Noxon is a new contributor. Be nice, and check out our Code of Conduct.
Charlotte Noxon is a new contributor. Be nice, and check out our Code of Conduct.
Charlotte Noxon is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467740%2fhow-to-format-two-equations-on-the-same-row-but-then-carry-on-with-one-of-the-eq%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown